Sie sind auf Seite 1von 13

The following internal tables are used for processing in Time Management.

TIP - The system imports time data which has been entered manually for the day to be
evaluated. Time data available Intotyopes 2001 & 2002.

TZP - P.W time data for the employees DWS is transferred to this table for the curent day
substitution from IT 2003 that replace the employees DWS are also imported if any.

TES - All time balances of the day are finally totaled into this table. The balances are finally
transferred to output table ZES in cluser B2.

DZL - Time wage tyes created from planned working time are stored in this table.

ZML - Time Wage types created from over time wage types are stored in this table.

Time wage type data from DZL and ZML are transferred to output table ZL in B2.

TIME AND PAYROLL INTEGRATION

ZL Table and xT00

DZL table w/type selection for planned working time

ZML Table for w/type selection for overtime.

Time Management results are stored in cluster table in PCL2.

TIP - All your daily working times are stored in the internal table TIP Eg. when you came to
work, what time you went for lunch etc

TES - It stores your day balance. Whatever day balances are their for the day for which you are
running time evaluation they are stored in this table

TEVEN - After time posting from Time terminals the time events ( clock in, clock out etc ) are
stored in table TEVEN

ZL, C1 and ALP for the interface between Time management and Payroll and have Time wage
types, Cost assignment and Different payment information in these tables respectively.

SALDO will hold periodic balances like month etc

DZL will have daily time wage types


There is a report RPCLSTB2 which you run for employee and period for which you have run
time evaluation and you will be able to see the data in these tables.

These are stored in cluster tables and not transparent tables so you cannot access them via SM30
etc

You will get a lot of information on internet as well as on forum on your questions.

TIP

The internal table TIP (daily input) is the work table for time evaluation. The time pairs
determined on the basis of the time postings are inserted in TIP.

TES

All time types that are formed or processed in rule processing are stored in the internal table TES
(daily balances) during time evaluation. All calculated balances are stored in TES.

TEVEN

The time events are saved in table TEVEN.

DZL/ZL

All wage types that are generated during time evaluation are stored in the internal table DZL for

each employee and day. The wage types are updated to table ZL using function CUMBT.

C1

An account assignment split (C1 split) is assigned to each time pair that is linked with a time
ticket in table WST. The account assignment is transferred to table C1. The account assignment
split points to this entry. This means that all time wage types generated from this time pair also
inherit the account assignment split.

ALP

Table ALP contains the specifications on a different rate of payment.

SALDO

Table SALDO stores all cumulated balances. The balances are added from table TES to SALDO
in month-end processing.
COIFT

If you also evaluate the data of external employees, the interface table COIFT is updated.

NT1

Table NT1 contains pointers to all unprocessed time events. It is used in pair formation, and to
recognize the necessity for a recalculation.

NT2

Table NT2 contains pointers to time events that lead to a processing error.

PCL1

All clusters for entry data are contained in file PCL1. This also includes Cluster B1 which stores
several tables containing information on the employeeu2019s time events and on status data for
time evaluation.

Cluster B1

Cluster B1 stores several tables containing information on the employeeu2019s time events and
on status data for time

evaluation.

Cluster B2

Cluster B2 stores the result tables of time evaluation.

Cluster

A data cluster is a grouping of several data objects. Elementary fields, field strings and internal
tables can be grouped in a data cluster. Clusters B1 and B2 in files PCL1 and PCL2 are relevant
to time evaluation, as is cluster PS

This and many more information is vailable in this document:


http://help.sap.com/printdocu/core/print40b/EN/pdf/pt.pdf

which stores the generated schema.

Line
Description
Command
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
Description
Command
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
Compare time pairs in TIP with OT approvals from the current
GOT
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
Calls a PCR in which information from the Absence Quotas
P2006
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 calls a PCR. It is processed, irrespective of whether time
ACTIO
pairs exist .

Commonly used Parameters

Parameter 2 Description
GEN Call rule for all time types
blank Call rule for specific time types
When used with function SORT, sorts the values of the table in
DES
descending order
Any number entered specifies of a particular grouping or type
nn
related to the function being processed

Time PCRs

Transaction Code: PE02

Menu Path:

Human Resources Payroll Europe Great Britain Tools Maintenance

Tools Rules

Commonly used operations in time configuration

Operation Description
Adds the value of current number of hours field (HRS) to the
ADDDB
specified time type
Adds the value of HRS to time type 0600. The control
ADDDB0600T indicator T moves the planned working hours from the
employees work schedule into HRS
Overwrites the value in time type 0600 with that currently
ADDDB0600Z
held in HRS
Cumulates the value in the HRS field of the current time type
ADDMB*
into the period balances table (SALDO)
Adds the wage types to the table of over time wage types
ADDOT
(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)
Creates an entry for quota 01 in the in Attendance Quotas
BITQU01 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
BITQU01PP 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
COLER01E
internal table FEHLER and time processing is terminated
Error message 01 is passed to table FEHLER and time
COLER01F 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,
COLOP
to make the time pair available for further processing
Keeps the current time type when data is transferred to the
COLOP*
TOP
Stores the data in the current time type in an alternative time
COLOPATIM1
type TIM1 in table TOP
Replaces the Start time of the original time pair with that of
COLPAB
the current active time pair
Replaces the End time of the original time pair with that of
COLPAE
the current active time pair
Replaces overlapping time pairs with new time pairs to create
COMOT
one continuous record with no overlaps
Replaces the employees work schedule with DWS 0712 from
DAYPG0712
table T550A
If DWS OFF does not exist, the first valid DWS with 0
DAYPGOFF
planned hours and DWS class 0 is used
Assigns a new DWS dynamically to an employee. The system
determines from a set of configured DWSs the one where the
DYNDP
employees 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
Enters additional information, such as start and end times, or
FILLW
infotype number, to a wagetype
GCY TE21 Branch to another Personnel Calculation Rule TE21
Personnel Calculation Rule TE21 is accessed for all time
GCYGTE21 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
GENOT
defined in T556P is used up
Splits the current wagetype according to the HRS field, from
GENOWB 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
GENTG
type being processed
Creates a new time pair entry in the TIP table using variable
GENTG0600
0600
Splits the current TIP entry according to the HRS value, from
GENTPE
the End of the time pair, and enters this into the TOP table
Separates part of the wagetype being processed, according to
GENTWB 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
Subtracts the latest time started at work from the value in the
HRS-SWTE
HRS field
Compares the value in the current HRS field to the value of
HRS?CTETOL
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
Exist the current PCR being processed. Processing continues
LEAVE
form the next line in the schema
Outputs a message with the current processed personnel
MESSG
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
Enters pay scale group data from the alternate payment table
OUTALTRFGR
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
Enters the absence type of the current time pair into the
OUTTPABTYP
variable key
Enters the attendance type of the current time pair into the
OUTTPPRTYP
variable key
OUTWP Allocates data from various fields to the variable key
OUTWPCOMPY Enters the code from IT0001
OUTWPCOSTC Enters the cost center from IT0001
OUTWPSHIFT Enters the work schedule rule from IT0007
OUTWPTRFAR Enters the pay scale type from IT0008
OUTWPMASSN Enters the action type from IT0000
Selects data from the ZL table and assigns it to the variable
OUTZL
key
Sets the Employee subgroup grouping for PCR according to
PAYTP A
table T503
PAYTP 1 Sets the Employee subgroup grouping for PCR according to 1
Branches to a personnel calculation rule TE20 and returns to
PCY TE20
the current PCR when processing of TE20 is complete
Processes the attendance or absence reason based on the
PPINC
return code from PPINC
Reads the attendance or absence reason and assigns a return
R555D
value to the variable key
RETCD Returns a resulting query code
ROUND Rounds the value of time pair or HRS Field
ROUNDC>10 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
ROUNDG 99
in rounding rule 99 in T559L
Used in conjunction with IF...ELSE...ENDIF, sets the
SCOND=T
condition to True
SORTP Sorts the time pairs in the TIP table
SORTP1 Sorts the time pairs in the TIP table with processing type 1
SUBST ** checks whether an employee has any substitutions
SUBST 01 checks whether an employee has any substitutions of type 01
Cumulation of time type 0600 over a standard week (Mon-
SUM 0600
Fri)
Cumulation of time type 0209 over the current working week
SUMWW0209
of the employee being processed -according to IT0007
SUMPP3001 Cumulation of time type 3001 over the current payroll period
Cumulation of time type 1008 over the current time
SUMTP1008
evaluation period
Provides access to data stored in the personnel areas/subareas
TABLE 001P
table
TABLE 508A Provides access to data stored in the work schedule rule table
Exits schema processing. Recalculation and final processing
TEXIT
options are set depending on the subsequent parameters
Changes status indicators controlling how the day is
TFLAG
processed
TFLAGA 0 Changes the day to a non-absence day
TFLAGA 1 Changes the day to a full absence day
Checks where the current time pair is in relation to any
TIPOS preceding or subsequent time pairs in the TIP. A return code
is given
Check if the day being processed is within a reduced working
TKUZR hours period. The value entered into the variable key is Y or
N
TSORTTIP Sorts the TIP table in ascending order
TSORTTIP- Sorts the TIP table in descending order
TSORTOWT Sorts the OT wagetypes table
TSORTOWTT Sorts the OT wagetypes table according to start/end time
Automatically updates an employees entitlement on leave
UPDLE01
type 01 (IT0005)
Automatically updates an employees entitlement on absence
UPDTQ01
quota 01 (IT2006)
VARABTYP Provides the current absence category
VARABVCL Provides the current absence valuation rule
Provides information on whether the current absence is a full-
VARABDAY
day absence or not
VARPRTYP Enters the current attendance type into the variable key
Enters the current attendance type valuation rule into the
VARPRVCL
variable key
Queries various fields or provides information for the field
VARST
interrogated
VARSTDAYTY Provides the current day type from table T553A
Determines if the current day has 0 planned working hours.
VARSTFREE
Return code is Y or N
VARSTSUBST Provides the current substitution type
Enters the value of processing class 20 for a wage type. Used
VWTCL 20
in conjunction with function PZL or POVT

Time Evaluation, performed by Time Evaluation report RPTIME00, evaluates recorded


employee time data in several processing steps, which are carried out in a defined
sequence.

Time Evaluation is generally run once daily and it is a scheduled over night job. Time
Evaluation can be run for an individual employee or for group of employees. It can be
run for past period or for a future period. Evaluating future periods can be useful in
situation when it is required to determine an employees anticipated absence
entitlements when absence quotas are accrued automatically.

Contents:
Schemas: Logically and sequentially arrangement of functions/PCR is called schema.
They are different type of schemas is there in Time Management and also Payroll.

Transaction code for Schemas: PE01

1. TM00: Time Evaluation with Personnel Time

2. TM01: Time Evaluation for Work Schedule Deviations

3. TM02: Time Evaluation for External Services Management

4. TM04: Time Evaluation Without Clock Time

Personnel Calculation Rule: Collection of Operations is called PCR. They are different
type of PCR is there in Time Management and also Payroll based on scenario.

Transaction code for PCR: PE02

Example

1. TE10 : Adjust Absence

2. TP10 : Reduce Absence

3. TP20 : Absence with Time Compensation

4. TC40 : Overtime Compensation

5. TR10 : Form Day Balance

6. TR30 : Flexi time Balance/Overtime/Productive Hours

7. TMON: Define Grouping

8. TW15: Overtime after X Hours/day

9. TW30 : Overtime after 40 hours/Working Week

10. TR90 : Remuneration Balance 0005

Operations: They are different type of Operation is available. These operation we have
to setup in the personnel calculation rule (PCR).Base on the scenario like absence and
overtime after x hours PCR.

Transaction Code for Operation: PE04


Examples:

OUTTPPTYPE-Pair Type

COLOP- Transfer data to internal table

COLER Transfer to error table

HRS Number of hours field

VARST Provide General Fields

PRSNT Employee at work?

PRSWD Employee at work for full day? (infotype 2002)

ABSCE Employee absent?

Type of Time Evaluation: Two type of Time evaluation is there one is Positive time
management and second one is negative time management.

Positive Time Management will capture employees all working times and absence
times are recorded.

Schema for Positive Time Management: TM00 and TM01

Negative Time Management will capture only planned working time

Schema for Negative Time Management: TM04

The others are common in TIP table process in PT schema and they say:

HRS+PEND: Add end time of current pair to HRS

FILLPVM: Change processing type of current pair to M(overtime)


FILLPB: Change start time of time pair with value of HRS

I have never used B with FILLP operation

What you are looking for in this sample code? If you say your scenario maybe I can help you

By the way for more information use PE04 Tcode. You can find help of HRS and FILLP.

Das könnte Ihnen auch gefallen