SAP HR Payroll Schemas and Personnel Calculation Rules (PCR's)
Transaction Code: PE01

Menu Path:

Human Resources Payroll Europe Great Britain 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:

Line Command

Description

D

Deletes a line

I

Inserts a line

M

Moves a line

C

Copies a line

DD

Indicates the start of a block to be deleted

DD

Indicates the end of a block to be deleted

CC

Indicates the start of a block to be copied

CC

Indicates the end of a block to be copied

MM

Indicates the start of a block to be moved

MM

Indicates the end of a block to be moved

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.

Line Command

Description

A

Places the block after the chosen line

B

Places the block before the chosen line

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

Function

Description

PIT

Process Input Table

PRT

Process Results Table

COPY

Calls a schema placed in PAR1.

BLOCK

Defines the start and end of a nested node

IF/ELSE/ENDIF

The schema is processed if the condition is fulfilled

Pxxx

Processes the information held in infotype xxxx.

ACTIO

Actio calls a PCR. It is processed, irrespective of whether the wage type exists or not.

Commonly used Parameters

Parameter

Description

GEN

Process any wage type

9000

Processes only wage type 9000

NOAB

Process for any EE sub-group groupings

1

Processes the rule only for EE sub-group grouping of 1

Payroll PCR's

Transaction Code: PE02

Menu Path:

Human Resources Payroll Europe Great Britain Tools Maintenance Tools Rules

Commonly used operations in payroll configuration

Operation

Description

*

This covers all the remaining entries not already specified. If you leave the line blank for the operation then the WT is dropped. Remember you always have to have an option for * in your PCR.

ADDCU

Cumulates the wage type into the relevant cumulation (/101...) and valuation(/201...) wage types

ADDNA *

From the IT, Number and Amt are cumulated into the OT. Blank is OT whilst E refers to the RT.

ADDNA 4067

Current Num and Amt are added in to wage type 4067.

ADDWSE9N03

This operation is very similar to ADDWT. The only difference is that it writes the value to table V0 as well

ADDWSI*

Store the current wage type in the IT.

ADDWT *

Store wage type in IT/OT

ADDWT 1103

All the current values for amt, num and rte are added to the values that are currently held in wt 1103

ADDWT&T

Adds the current wage type to the variable table as T - which can be used at a later stage

ADDWTA*

The values in the wage type are copied to the previous employer table VAG - called in the rules XDPI, XDPR & XDPT

ADDWTC*

The values in the current wage type are added into the CRT

ADDWTC/101

The values in the current wage type are added into the CRT for the technical wage type /101

ADDWTD*

The values in the current wage type are added into the Difference table DT

ADDWTD/551

The values in the current wage type are added into the difference table DT for the technical wage type /551

ADDWTD/APO

Add the current wage type to the difference table (DT)

ADDWTE

Store amount in Results Table (RT) - difference with line below

ADDWTE*

Add the current wage type to the results table RT

ADDWTE/101

Add the current wage type to the results table as /101

ADDWTH/201

Add the current wage type to the old results table (ORT) as wage type /201

ADDWTI*

Add the current wage type to the input table IT

ADDWTI/101

The values in the current wage type are added into the input table IT for the technical wage type /101

ADDWTL*

Add the current wage type to the results table last payroll (LRT)

ADDWTN

Used in XLON

ADDWTN/LRP

(Loans - XLON)

ADDWTW

Add the current wage type to the wage maintenance table

AMT- 9023

Subtract amount field from wage type 9023 from Table IT (if wage type 9023 is available.)

AMT%33.33

Multiply the amount by 33.33%

AMT%KSAPRO

Multiply the amount by the value SAPRO held in table T511k

AMT-& T

Amount minus the value held in variable T

AMT*-1

Amount multiplied by negative 1

AMT*12

Multiply amount by 12

AMT*KGENAU

Multiply the amount by the constant GENAU held in table T511k. GENAU is used to factor up by 4 or 5 factors of 10 to avoid the issue of errors caused by rounding.

AMT-.04

Subtract 0.4 from the amount field

AMT/2

Divide the amount by 2

AMT/KGENAU

Divide the amount by the factor GENAU held in the constants table T511k

AMT/KPKWPR

Amount divided by the constant PKWRP held in table T511K

AMT/KZF001

Amount is divided by constant ZF001 from table T511K

AMT? *

Compare the value held in the amount field for all wage types

AMT? /GPY

Compare the value held in the amount field for wage type /GPY

AMT?& ZAPR

Compare the value held in the amount field against the constant ZAPR

AMT?0

Compare the value held in the amount field against 0

AMT?E /167

Compare the amount against the value of the amount held in the results table RT for wage type /167

AMT?IGRUEB

Compare the current amount against the limit held for the bank transfer

AMT+ /564

Add the amount from wage type /564 from the IT

AMT+ 0001

Add amount field from wage type 0001 from Table IT (if wage type 0001 is available.)

AMT+ 9013

Add amount field from wage type 9013 from Table IT (if wage type 9013 is available.)

AMT+& ZSAP

Add the value held in the variable ZSAP to the amount for the current wage type being processed

AMT+E 910B

Add the current amount to the RT and place in wage type 910B