Sei sulla pagina 1di 6

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 subschemas 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 D I M C DD DD CC CC MM MM Deletes a line Inserts a line Moves a line Copies a line Indicates the start of a block to be deleted Indicates the end of a block to be deleted Indicates the start of a block to be copied Indicates the end of a block to be copied Indicates the start of a block to be moved Indicates the end of a block to be moved Description

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 A B Description Places the block after the chosen line 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 RTIP PTIP GOT GWT SORT P2001 P2006 COPY BLOCK IF/ELSE/ENDIF ACTIO Commonly used Parameters Parameter 2 GEN blank DES nn Call rule for all time types Call rule for specific time types When used with function SORT, sorts the values of the table in descending order Any number entered specifies of a particular grouping or type related to the function being processed Description Description Reads the time data table TIP, but does not process it Processes the time data table TIP Compare time pairs in TIP with OT approvals from the current day (IT2007) Generates time wage types from time pairs in table TIP Sorts the values in a specified internal table Imports the absences for the day being processed Calls a PCR in which information from the Absence Quotas table ABWKONTI can be accessed Calls a subschema placed in PAR1. Defines the start and end of a nested node The schema is processed if the condition is fulfilled Actio calls a PCR. It is processed, irrespective of whether time pairs exist .

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 ADDDB ADDDB0600T ADDDB0600Z ADDMB* ADDOT ADDVS DAY1 ADDZL BITQU BITQU01 BITQU01PP COLER01E Description Adds the value of current number of hours field (HRS) to the specified time type 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 Overwrites the value in time type 0600 with that currently held in HRS Cumulates the value in the HRS field of the current time type into the period balances table (SALDO) Adds the wage types to the table of over time wage types (ZML) Adds the value of HRS to the variable DAY1 Adds the value of the current HRS field to the ZL table Creates an entry in the in Attendance Quotas infotype (2007) 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 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 Error message 01 according to table T555E is passed to internal table FEHLER and time processing is terminated Error message 01 is passed to table FEHLER and time processing continues. The current day is processed again when time evaluation is next run Transfers data from the input table TIP to output table TOP, to make the time pair available for further processing Keeps the current time type when data is transferred to the TOP Stores the data in the current time type in an alternative time type TIM1 in table TOP Replaces the Start time of the original time pair with that of the current active time pair Replaces the End time of the original time pair with that of the current active time pair Replaces overlapping time pairs with new time pairs to create one continuous record with no overlaps Replaces the employee's work schedule with DWS 0712 from table T550A If DWS OFF does not exist, the first valid DWS with 0 planned hours and DWS class 0 is used 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. Enters the start time of a time pair from the HRS field Deletes the start time of a time pair Enters additional information, such as start and end times, or infotype

COLER01F

COLOP COLOP* COLOPATIM1 COLPAB COLPAE COMOT DAYPG0712 DAYPGOFF

DYNDP FILLPB FILLPBFILLW

number, to a wagetype GCY TE21 GCYGTE21 GENOT GENOWB GENTG GENTG0600 GENTPE Branch to another Personnel Calculation Rule TE21 Personnel Calculation Rule TE21 is accessed for all time types and the same employee subgroup grouping is kept and processed Flags a time pair, or part thereof, as OT until the OT quota, as defined in T556P is used up Splits the current wagetype according to the HRS field, from the start time, and enters a portion into the OT wagetypes table ZML Creates a new time pair entry in the TIP table using the time type being processed Creates a new time pair entry in the TIP table using variable 0600 Splits the current TIP entry according to the HRS value, from the End of the time pair, and enters this into the TOP table 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 Enters the current day in the HRS field Subtracts the latest time started at work from the value in the HRS field Compares the value in the current HRS field to the value of TETOL in the constants table T511K Insert locked records in table TIP 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 Exist the current PCR being processed. Processing continues form the next line in the schema Outputs a message with the current processed personnel number Set employee grouping for absence valuation to 01 Set quota type selection rule group to 05 Set the time wagetype selection group (T510S) to 02 Enters pay scale group data from the alternate payment table ALP Assigns the current quota type from the ABWKONTI table Gives the wagetype of the overtime being processed Enters data from the attendance quota into the variable key Enters the employee subgroup grouping for PCR from IT0050 Enters the absence type of the current time pair into the variable key Enters the attendance type of the current time pair into the variable key Allocates data from various fields to the variable key Enters the code from IT0001 Enters the cost center from IT0001 Enters the work schedule rule from IT0007 Enters the pay scale type from IT0008

GENTWB HRS=BCURDY HRS-SWTE HRS?CTETOL INSLR INSTPA1010 LEAVE MESSG MODIF A=01 MODIF Q=05 MODIF W=02 OUTALTRFGR OUTAQTYP OUTOTWGTYP OUTPQ OUTTIABART OUTTPABTYP OUTTPPRTYP OUTWP OUTWPCOMPY OUTWPCOSTC OUTWPSHIFT OUTWPTRFAR

OUTWPMASSN OUTZL PAYTP A PAYTP 1 PCY TE20 PPINC R555D RETCD ROUND ROUNDC>10 ROUNDG 99 SCOND=T SORTP SORTP1 SUBST ** SUBST 01 SUM 0600 SUMWW0209 SUMPP3001 SUMTP1008 TABLE 001P TABLE 508A TEXIT TFLAG TFLAGA 0 TFLAGA 1 TIPOS TKUZR TSORTTIP TSORTTIPTSORTOWT TSORTOWTT

Enters the action type from IT0000 Selects data from the ZL table and assigns it to the variable key Sets the Employee subgroup grouping for PCR according to table T503 Sets the Employee subgroup grouping for PCR according to 1 Branches to a personnel calculation rule TE20 and returns to the current PCR when processing of TE20 is complete Processes the attendance or absence reason based on the return code from PPINC Reads the attendance or absence reason and assigns a return value to the variable key Returns a resulting query code Rounds the value of time pair or HRS Field Start time of time pair is rounded up to the nearest 10 minutes End time of time pair is rounded up to the next interval as set in rounding rule 99 in T559L Used in conjunction with IF...ELSE...ENDIF, sets the condition to True Sorts the time pairs in the TIP table Sorts the time pairs in the TIP table with processing type 1 checks whether an employee has any substitutions checks whether an employee has any substitutions of type 01 Cumulation of time type 0600 over a standard week (Mon-Fri) Cumulation of time type 0209 over the current working week of the employee being processed -according to IT0007 Cumulation of time type 3001 over the current payroll period Cumulation of time type 1008 over the current time evaluation period Provides access to data stored in the personnel areas/subareas table Provides access to data stored in the work schedule rule table Exits schema processing. Recalculation and final processing options are set depending on the subsequent parameters Changes status indicators controlling how the day is processed Changes the day to a non-absence day Changes the day to a full absence day Checks where the current time pair is in relation to any preceding or subsequent time pairs in the TIP. A return code is given Check if the day being processed is within a reduced working hours period. The value entered into the variable key is Y or N Sorts the TIP table in ascending order Sorts the TIP table in descending order Sorts the OT wagetypes table Sorts the OT wagetypes table according to start/end time

UPDLE01 UPDTQ01 VARABTYP VARABVCL VARABDAY VARPRTYP VARPRVCL VARST VARSTDAYTY VARSTFREE VARSTSUBST VWTCL 20

Automatically updates an employee's entitlement on leave type 01 (IT0005) Automatically update's an employee's entitlement on absence quota 01 (IT2006) Provides the current absence category Provides the current absence valuation rule Provides information on whether the current absence is a full-day absence or not Enters the current attendance type into the variable key Enters the current attendance type valuation rule into the variable key Queries various fields or provides information for the field interrogated Provides the current day type from table T553A Determines if the current day has 0 planned working hours. Return code is Y or N Provides the current substitution type Enters the value of processing class 20 for a wage type. Used in conjunction with function PZL or POVT

Potrebbero piacerti anche