Workshop Relgas y

28
Payroll Schemas and Rules Workshop

description

Reglas y Esquemas SAP

Transcript of Workshop Relgas y

Page 1: Workshop Relgas y

Payroll Schemas and Rules

Workshop

Page 2: Workshop Relgas y

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)

Page 3: Workshop Relgas y

2. Seccondary Wage TypeWage Types created by payroll calculation

1.1. Dialog Wage Types Captued on an Infotype

1.2. Time Types Created by System according to configuration.

1. Primary Wage Type Wage Types that can be captured on Units-Amount

Wage Type Clasification

Page 4: Workshop Relgas y

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

NUMBERNUM

RATERTE

AMOUNTAMT

Wage Type Stucture

Page 5: Workshop Relgas y

Wage Type Views Configuration

V_T511 WT Characteristics. Indicates possible combinations (AMT, NUM), Set as Re-writable, Indicates Indirect Valuation Method

V_T539J Used for Indirect Valuation (ANSAL, PRNZT, SUMME)

V_T512T WT Long and Short Text

V_512W_O WT Valuatin Basis, WT derivates, Processing Classes, Cumulations, Evaluation Classes

V_511_B Permissibility (According to groupings on V_001P_ALL. WKTYP and/or V_503_ALL. ABTYP)

V_T512Z Permitted primary WT’s per Infotype

V_T51AV_2W WT as part of an avarage Base

V_T51AV_P WT valuated with an average Rule

V_T54C3 WT special cumulations when PC30=“T”

V_T51P1 Deduction WT behaviour when it surpasses employee perceptions

V_T51P6 WT Deduction prority , arrears and retroactive behaviours

Page 6: Workshop Relgas y

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 !!

Page 7: Workshop Relgas y

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

Page 8: Workshop Relgas y

General Schema 5X00 Structure

Page 9: Workshop Relgas y

Payroll Cycle Internal Tables

Page 10: Workshop Relgas y

Internal Tables Exportable to PCL2WPBP 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.

RT Results Table Table RT contains the result wage types of the current period for which payroll is run

CRT Cumulated Result Table Table CRT contains the cumulations of wage types in table RT over a certain time period

BT Payment Information 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

C0 Cost Distribution Table C0 contains global information about the cost distribution for wage types.

C1 Cost Assignment from Different Infotypes

Table C1 contains information about the individual cost assignment for individual wage types

Page 11: Workshop Relgas y

Internal Tables to PCL2V0 Variable Assigment Table V0 contains various additional information

about the wage types.

GRT Output Table from Gross Part

Table GRT is table RT according to the gross amount in a split payroll schema

ARRRS Arrears Table ARRRS contains deductions that could not be taken and so are transferred to the following period

DDNTK Deductions not taken Table DDNTK contains deductions that could not be taken in the current period

AVERAGE Frozen Averages Contains information about frozen averages

MODIF Modifiers 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).

MXCRT Mexican Cumulated Result Table

Cumulated rsults of WT’s used for Tax Year End Reports

Page 12: Workshop Relgas y

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 Input-Output Cycles for nex processing step.

DT Difference Table Table DT is used to transfer retroactive accounting differences within retroactive chains.

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.

LRT Last Result Table It is formed from table ORT but only contains the wage types that are relevant to the current period and required often . (X006, PC06)

VORT Sumarized ORT Table VORT is a version of table ORT in which certain splits are eliminated.

Page 13: Workshop Relgas y

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 PCR’s.

Page 14: Workshop Relgas y

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 schema-

subschema ACTIO: Used to process a PCR. Commonly used as

an equivalent of PIT XXXX GEN NOAB.

Page 15: Workshop Relgas y

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.

Page 16: Workshop Relgas y

Payroll Sequence (MX)

Page 17: Workshop Relgas y

Payroll Log (1)

RTE NUM AMTWPBP SPLIT

V_503_ALL-ABART

Page 18: Workshop Relgas y

Personnel Calculation Rules

PCR’s are the way where formulas are written in SAP.

PCR’s are edited by using transaction PE02. PCR’s 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

Page 19: Workshop Relgas y

Common used PY Operations

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

Page 20: Workshop Relgas y

Calling a PCR

When using PIT to call a PCR

PIT

GENblank

blank blankNOAB NOAB

Par 2.

Par 3

Par 1.PCR

Page 21: Workshop Relgas y

Calling PCR’s Examples

Page 22: Workshop Relgas y
Page 23: Workshop Relgas y

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.

Page 24: Workshop Relgas y

Common used Operations for Splits

ELIMI RESET SPLIT SETIN WPALL

Page 25: Workshop Relgas y

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.

Page 26: Workshop Relgas y

Good Practices for PCR writing

1. Do not modify standard, make copy or create new instead (Apply for schemas too)

2. Add comments and documentation

3. Follow standard naming convention

4. Consider when writing Rule Grouping

5. Consider when writing WPBP Splits

6. Consider Internal Table ORDER when wrtiting PCR

7. Do not forget to send to OT required WT’s for calculating following schema steps. (addwt *)

8. Do not use fix values, use constants (T511K)

9. Optimize PCR calls through schemas

10. TEST, TEST, TEST !!!

Page 27: Workshop Relgas y

Functions and Operations

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

documentation.

Page 28: Workshop Relgas y

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