Skip to Content
-2

Payroll Schema Function Operation and PCR Secondary Wage Type

Hello experts,

I have confusion about payroll run. would someone please explain me the differences among various payroll building block like schema,function, operation and PCR? How are they executed while payroll run ? how is the value of secondary wage type calculated from primary wage type mentioned in basic pay info type 0008 ?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Apr 26, 2017 at 10:17 AM

    Hi

    Write up on schema for easy understanding

    Payroll Schema

    The payroll schema contains calculation rules to be used by the payroll driver during payroll. SAP has developed country-specific schemas. A schema consists of Personnel Calculation Rules, Operations and Functions. A schema performs the following:

    Schema

    IMG Menu Path or Transaction code

    Menu Path: Human Resources --> Payroll -> Tools --> Maintenance Tools -> Schemas

    Double-clicking on a sub-schema will take you to the maintenance screen for that schema

    Transaction Code PE01

    General Rules followed in Schemas

    XINO

    This means Initialization XBDO Read Basic Data XLRO Import Last Payroll Results XTOO Gross XA99 Import Additional payments/Deductions XAL9 Partial Period Factory X9A9 Cummulate Net amount XRRO Retro Active Account

    XNNO NET PAYMENT XEND Final Processing

    Procedure

    BLOCK

    BEG INITIALIZATION UPD YES

    NO

    UPDATE DATABASES

    IN CASE OF SIM RUN

    OPT INFT READ ALL BASIC USED INFOTYPES OPT TIME IMPORT ALL TIME INFOTYPES (0050) ENAME EMPLOYEE NAME WPBP READ WORK CENTRE BASIC PAY [READ 0001,0007,0008,0027) GON CONTINUE IF DATA COMPLETE

    IMPRT IMPORT LAST PAYROLL RESULTS

    Examples:

    As above explained Schemas & PCR commands following are some examples of the PCRs which state you all how to write a PCR’s

    Scenario: Company ABC Ltd wants to give a allowance say SAF Allowance monthly. So following is the policy for that allowance,

    SAF Allowance should calculate 15 % on the Basic Salary.

    Solution: Following is the step we need to do,

    Step 1: Create a Wage type say 1570 SAF Allw.

    Step 2: Config this WT for IT0014

    Step 3: Create Customer specific Constant in Table T511K as ZSUPR and maintain value as 15.

    Step 4: Write a PCR as Z026 as follows,

    *

    ****

    ADDWT * (Store wage type in IT/OT)

    3

    ****

    WGTYP? (Usually part of a decision - where the wage type is queried)

    ****

    ADDWT * (* (Store wage type in IT

    1570

    AMT= 1100

    AMT+ 1101

    AMT*KZSUPR

    AMT/100

    ADDWT 1570

    Place this in Schema INAL after the PCR XVAL processing.

    Note: Here in rule 1100 & 1101 are the base WT on which the calculation will be done for 1570 WT.

    Add comment
    10|10000 characters needed characters exceeded