SAP HR Time 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 and 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.

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

In addition, a '*' in the D column indicates that the corresponding function or rule has been commented out and will not be processed. Lines with this indicator are also not displayed in the exploded schema via RPDASC00. It is good practice when replacing a SAP standard PCR or function with a custom one, to comment out the SAP standard one rather than deleting it completely.

Remember when calling a PCR within the schema: setting PAR 2 to GEN means that the rule is called for all time types. If you want the rule to be called for specific time types, then leave this parameter blank. For PAR 3, a setting of blank indicates that the rule is called for all Ee Subgroup groupings for time evaluation, and to specify that the rule is to be called only for the Grouping for the Time Evaluation Rule set in IT0050 the setting should be ABRT.

Use the PRINT function and a specific table name in PAR 2 anywhere in the schema to output the contents of that 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

RTIP

Reads the time data table TIP, but does not process it

PTIP

Processes the time data table TIP

GOT

Compare time pairs in TIP with OT approvals from the current day (IT2007)

GWT

Generates time wage types from time pairs in table TIP

SORT

Sorts the values in a specified internal table

P2001

Imports the absences for the day being processed

P2006

Calls a PCR in which information from the Absence Quotas table ABWKONTI can be accessed

COPY

Calls a subschema 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

ACTIO

Actio calls a PCR. It is processed, irrespective of whether time pairs exist .

Commonly used Parameters

Parameter 2

Description

GEN

Call rule for all time types

Blank

Call rule for specific time types

DES

When used with function SORT, sorts the values of the table in descending order

Nn

Any number entered specifies of a particular grouping or type related to the function being processed

Time PCR's

Transaction Code: PE02

Menu Path:

Human Resources Payroll Europe Great Britain Tools Maintenance Tools Rules

Commonly used operations in time configuration

Operation

Description

ADDDB

Adds the value of current number of hours field (HRS) to the specified time type

ADDDB0600T

Adds the value of HRS to time type 0600. The control indicator 'T' moves the planned working hours from the employee's work schedule into HRS

ADDDB0600Z

Overwrites the value in time type 0600 with that currently held in HRS

ADDMB*

Cumulates the value in the HRS field of the current time type into the period balances table (SALDO)

ADDOT

Adds the wage types to the table of over time wage types (ZML)

ADDVS DAY1

Adds the value of HRS to the variable DAY1

ADDZL

Adds the value of the current HRS field to the ZL table

BITQU

Creates an entry in the in Attendance Quotas infotype (2007)

BITQU01

Creates an entry for quota 01 in the in Attendance Quotas infotype (2007), with start and end dates as the start and end of the current week

BITQU01PP

Creates an entry for quota 01 in the in Attendance Quotas infotype (2007), with start and end dates as the start and end of the current payroll period

COLER01E

Error message 01 according to table T555E is passed to internal table FEHLER and time processing is terminated

COLER01F

Error message 01 is passed to table FEHLER and time processing continues. The current day is processed again when time evaluation is next run

COLOP

Transfers data from the input table TIP to output table TOP, to make the time pair available for further processing

COLOP*

Keeps the current time type when data is transferred to the TOP

COLOPATIM1

Stores the data in the current time type in an alternative time type TIM1 in table TOP

COLPAB

Replaces the Start time of the original time pair with that of the current active time pair

COLPAE

Replaces the End time of the original time pair with that of the current active time pair

COMOT

Replaces overlapping time pairs with new time pairs to create one continuous record with no overlaps

DAYPG0712

Replaces the employee's work schedule with DWS 0712 from table T550A

DAYPGOFF

If DWS OFF does not exist, the first valid DWS with 0 planned hours and DWS class 0 is used

DYNDP

Assigns a new DWS dynamically to an employee. The system determines from a set of configured DWS's the one where the employee's first clock-in time occurs within a specified timeframe.

FILLPB

Enters the start time of a time pair from the HRS field

FILLPB-

Deletes the start time of a time pair

FILLW

Enters additional information, such as start and end times, or infotype number, to a wagetype

GCY TE21

Branch to another Personnel Calculation Rule TE21

GCYGTE21

Personnel Calculation Rule TE21 is accessed for all time types and the same employee subgroup grouping is kept and processed

GENOT

Flags a time pair, or part thereof, as OT until the OT quota, as defined in T556P is used up

GENOWB

Splits the current wagetype according to the HRS field, from the start time, and enters a portion into the OT wagetypes table ZML

GENTG

Creates a new time pair entry in the TIP table using the time type being processed

GENTG0600

Creates a new time pair entry in the TIP table using variable 0600

GENTPE

Splits the current TIP entry according to the HRS value, from the End of the time pair, and enters this into the TOP table

GENTWB

Separates part of the wagetype being processed, according to the HRS value, from the beginning of the wagetype, and enters it into the time wage types table ZL

HRS=BCURDY

Enters the current day in the HRS field

HRS-SWTE

Subtracts the latest time started at work from the value in the HRS field

HRS?CTETOL

Compares the value in the current HRS field to the value of TETOL in the constants table T511K

INSLR

Insert locked records in table TIP

INSTPA1010

Inserts an absence time pair between two recorded time pairs in the TIP with a begin and end tolerance of 10 minutes form the adjoining time pairs

LEAVE

Exist the current PCR being processed. Processing continues form the next line in the schema

MESSG

Outputs a message with the current processed personnel number

MODIF A=01

Set employee grouping for absence valuation to 01

MODIF Q=05

Set quota type selection rule group to 05

MODIF W=02

Set the time wagetype selection group (T510S) to 02

OUTALTRFGR

Enters pay scale group data from the alternate payment table ALP

OUTAQTYP

Assigns the current quota type from the ABWKONTI table

OUTOTWGTYP

Gives the wagetype of the overtime being processed

OUTPQ

Enters data from the attendance quota into the variable key

OUTTIABART

Enters the employee subgroup grouping for PCR from IT0050

OUTTPABTYP

Enters the absence type of the current time pair into the variable key