Transaction Code: PE01 for schema. PE02 for PCR. (T-code PDSY is really important because it contains SAP documents to explain how function / operation works).
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.
Double-clicking on any of the rules (PCR's) will take you to the rule editor. You can tell the difference between sub-schemas a rules by looking at the parameters. The name of the sub-schema can be found in the Par 1 column. The main schema generally calls all the different sub-schemas. The sub-schemas will then call the payroll rules. In most cases, when a rule is called, there will be parameters in the Par 2 or Par 3 columns.
In the main, most sub-schemas are called by the "copy" command.
Schemas, rules and features in SAP use the following line editor commands. This allows you to move, delete, copy and insert lines. All the commands are entered in the area used for the line numbers. Overwrite any of the numbers with the commands shown below. For the commands using 1 letter - hit the return key once you have entered the letter. For the commands using 2 letters - hit the return key after the first 2 letters have been entered or after both sets have been entered.
The most commonly used commands are:
Once you have chosen the block to move or copy, you need to show where to move or copy it to in the schema. The following commands indicate where you can copy or move the lines to.
Remember when calling the PCR from the schema: GEN means that the wagetype is **** i.e. you haven't specified one and NOAB means that it will look at any EE Sub-Grouping. If you want the rule to use specific wage types or groupings, then leave either blank.
Use the print option and VAR (PAR 2) in the schema to output the variable table during processing.
Position is very important for schemas. Look to see where a similar piece of processing has taken place. If in doubt, place the rule after the similar data has been read and processed.
Commonly used Functions
Commonly used Parameters
Transaction Code: PE02
Menu Path: Human Resources --> Payroll -> Tools --> Maintenance Tools -> Rules
Commonly used operations in payroll configuration
Wishing to retrieve previous payroll period results to be used in a PCR?
You can do so by using the operation IMPRE with parameter NN (NN periods before current payroll period). Also have a look at the documentation of IMPRE.
An example in using this operation is as follows (reading the period 6 months ago):
D ZERO = NRA IMPRE 6 SUBRC?IMP *
0 AMT = O 1001SETIN A=01SETIN R=3 ZERO= NR ADDWTI1001
As above explained Schemas & PCR commands following are the 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,
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.