Anda di halaman 1dari 28

Payroll Schemas and Rules

Workshop

Wage Types

Object in Payroll and Personnel Administration in which the user or the system stores amounts and time units that are used.

Types:

Primary Wage Types

Dialog (I.e. IT 0015) Time Wage Types (I.e. IT 2001)

Secondary- Technical Wage Types

A wage type consists of the following fields:


RTE (Rate) NUM (Number) AMT (Amount)

Wage Type Clasification


1. Primary Wage Type Wage Types that can be captured on UnitsAmount 2. Seccondary Wage Type Wage Types created by payroll calculation

1.1. Dialog Wage Types Captued on an Infotype

1.2. Time Types Created by System according configuration.

to

Wage Type Stucture


Salary Bonus Trsp = = ($ 3,000.00) * (2.5%) = $ 3,000.00 $75.00

NUMBER NUM

RATE RTE

AMOUNT AMT

Wage Type Views Configuration


V_T511 V_T539J V_T512T V_512W_O V_511_B V_T512Z V_T51AV_2W V_T51AV_P V_T54C3 V_T51P1 V_T51P6 WT Characteristics. Indicates possible combinations (AMT, NUM), Set as Re-writable, Indicates Indirect Valuation Method Used for Indirect Valuation (ANSAL, PRNZT, SUMME) WT Long and Short Text WT Valuatin Basis, WT derivates, Processing Classes, Cumulations, Evaluation Classes Permissibility (According to groupings on V_001P_ALL. WKTYP and/or V_503_ALL. ABTYP) Permitted primary WTs per Infotype WT as part of an avarage Base WT valuated with an average Rule WT special cumulations when PC30=T Deduction WT behaviour when it surpasses employee perceptions WT Deduction prority , arrears and retroactive behaviours

Important Definitions

Valuation Basis- Indicates the basis for a WT to determine their final Amount. Processing Classes- Indicates the behaviour of a WT in calculation process. It is called by a Function or by a PCR-Personnel Calculation Rule. Cumulation- indicates if Wage Types is stored into technical wage types .I.e. Total Perceptions Evaluation Classes- Indicates the where and how a WT will be used in specific reports. USEFUL REPORT: RPDLGA20 !!

Report to backup T512W

Standard contains some reports:


RPU12W0S : creates a backup of T512W in T599U or reloads such a backup in T512W. RPU12W0C : reloads individual processing classes, cumulations, and evaluation classes from the backup. RPU99U0V : displays T599U. RPU5XX0D: Generically deletes entries in T599U, T512W or T512T . Be very careful with T512W and T512WT

General Schema 5X00 Structure

Payroll Cycle Internal Tables

Internal Tables Exportable to PCL2


WPBP Work Place/Basic Pay Table WPBP is filled by the IT0000, IT0001, IT0007, IT0008 and IT0027. It contains important organizational and payment-relevant data, and different partial period parameters. Table RT contains the result wage types of the current period for which payroll is run Table CRT contains the cumulations of wage types in table RT over a certain time period Every entry in the Bank Transactions table (BT) of an employee, corresponds to a payment that was created in a payroll period for this employee. However, the employee is not necessarily the payment recipient of all payments Table C0 contains global information about the cost distribution for wage types. Table C1 contains information about the individual cost assignment for individual wage types

RT CRT BT

Results Table Cumulated Result Table Payment Information

C0 C1

Cost Distribution Cost Assignment from Different Infotypes

Internal Tables to PCL2


V0 Variable Assigment Table V0 contains various additional information about the wage types.

GRT
ARRRS DDNTK

Output Table from Gross Part


Arrears Deductions not taken

Table GRT is table RT according to the gross amount in a split payroll schema
Table ARRRS contains deductions that could not be taken and so are transferred to the following period Table DDNTK contains deductions that could not be taken in the current period Contains information about frozen averages Table MODIF contains various modifiers that can be used as additional keys for access to Customizing tables. The system sets the modifiers in payroll with the function MOD (Determine Employee Groupings) and operation MODIF (Set Employee Groupings). Cumulated rsults of WTs used for Tax Year End Reports

AVERAGE MODIF

Frozen Averages Modifiers

MXCRT

Mexican Cumulated Result Table

Internal Tables not Exported PCL2


IT/OT Input Table/ Output Table During the payroll run table IT is filled with data that is to be processed. Table IT must be empty by the end of the payroll run or the personnel number is rejected (X070). Table OT is used to create InputOutput Cycles for nex processing step. Table DT is used to transfer retroactive accounting differences within retroactive chains.

DT

Difference Table

ORT

Old Result Table

Table ORT is table RT from the last payroll result (usually from the previous payroll period). Tables LRT and VORT are also formed from table ORT.
It is formed from table ORT but only contains the wage types that are relevant to the current period and required often . (X006, PC06) Table VORT is a version of table ORT in which certain splits are eliminated.

LRT

Last Result Table

VORT

Sumarized ORT

Schemas

A Payroll Schema determines the sequence of how calculations should be made. Main Schema contain various sub-schemas to ease sequence order. Schema will use Payroll & Time Functions which are capable to call a Personnel Calculation Rules (PCR) Schemas will be edited by using transaction PE01 User MUST work on copies from original Schema Schema is created in tables T52C0- Command Lines and T52C2- Schema Text Important Report: RPDASC00 Allow to expand schema incluiding their PCRs.

Common Used Functions in Schemas


COPY: To Call Schema COM: Set Comments on Payroll Log PRINT: Print Content of an Internal Table PXXXX: Process an Infotype P&&&: Process an Internal Table I.e. PIT, PORT, PRT, etc. IF/ELSE/ENDIF: Set Conditions on Schema sequence BLOCK BEG/END: Set Block on an schemasubschema ACTIO: Used to process a PCR. Commonly used as an equivalent of PIT XXXX GEN NOAB.

Local Functions on Schemas (MX)


MXHRE: Weekly Overtime Calculation MXLFA: Delimit Saving Fund Contributions MXLVA: Delimit Pantry Voucher Contributions MXSI: Calculate IMSS Basis and Contributions MXIST: Calculate SDI MXPRV: Calculate Provisions MXNOM: Modify Payroll Tax Basis MXTAX: Calculate Income Tax MXNOM: Calculate State Tax MXGAR: Helps calculate MX Garnishments. MXRND: Rounds payment when Cash Payment exists and reads previous periods MXSIC: Checks correct SDI calculation and allow generation in case a change occurs.

Payroll Sequence (MX)

Payroll Log (1)

WPBP SPLIT

RTE

NUM

AMT

V_503_ALL-ABART

Personnel Calculation Rules

PCRs are the way where formulas are written in SAP. PCRs are edited by using transaction PE02. PCRs are called on schemas by a PY function or by another PCR using operation GCY A rule is created in table T52C5- Command Line. When formulation is very complex and do not use information from a single working-Internal table, it may be neccesary to use ABAP to create a Customer Payroll or Time Function/Operation

Common used PY Operations


AMT, NUM, RTE ADDWT OUTWP ZERO= FILLF MULTI DIVID GCY & PCY TABLE VARGB VWTCL CMPER

Calling a PCR

When using PIT to call a PCR


PIT PCR blank blank NOAB GEN blank NOAB Par 1. Par 2.

Par 3

Calling PCRs Examples

WPBP Split

Are automatically created by Payroll using function WPBP when changes in Master data occur or due to a natural month split on weekly-bi Weekly Payrolls.

Common used Operations for Splits


ELIMI RESET SPLIT SETIN WPALL

Use of Variables

WIth help of ADDWT&VARX you can create a Variable to store WT Info. Main use:

Store Info of a WT to make operations regardless of Splits and grouping. Create a traceable step by step PCR by using PRINT&VARX and ZERO=&VARX.

Note: Take into consideration that by adding a WT into a var when split exists it may duplicated stored result.

Good Practices for PCR writing


1.

2. 3. 4. 5. 6. 7.

8. 9.

10.

Do not modify standard, make copy or create new instead (Apply for schemas too) Add comments and documentation Follow standard naming convention Consider when writing Rule Grouping Consider when writing WPBP Splits Consider Internal Table ORDER when wrtiting PCR Do not forget to send to OT required WTs for calculating following schema steps. (addwt *) Do not use fix values, use constants (T511K) Optimize PCR calls through schemas TEST, TEST, TEST !!!

Functions and Operations


Are created by using transaction PE04. By using this transaction you can consult documentation.

Schemas and Rules useful reports


RPUCTF00 Change Attributes for Schemas and PCRs (change owner) RPUCTI00 Lists Subschemas not called up in any other schema RPUCTJ00 Lists Personnel Calculation Rules which are not called up RPUCCOSE Source text search in PC rules RPUCTX00 Copy Personnel Calculation Rules from client 000 to other clients RPUSCD10 Schema directory useful after HRSP to see changed schemas, also shows who changed it last and when RPUCTC00 Displays PCRs full source text RPUCTE00 Environment Analyzer: Functions, Operations, Schemas, PCRs RPUSCC00 Compare Schemas

Anda mungkin juga menyukai