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:
to
NUMBER NUM
RATE RTE
AMOUNT AMT
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 !!
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
RT CRT BT
C0 C1
GRT
ARRRS DDNTK
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
MXCRT
DT
Difference Table
ORT
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
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.
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.
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.
WPBP SPLIT
RTE
NUM
AMT
V_503_ALL-ABART
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
AMT, NUM, RTE ADDWT OUTWP ZERO= FILLF MULTI DIVID GCY & PCY TABLE VARGB VWTCL CMPER
Calling a PCR
Par 3
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.
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.
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 !!!
Are created by using transaction PE04. By using this transaction you can consult documentation.
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