Schemas and Functions in Time Evaluation

Definition

The individual steps in schema processing are performed in a specific order in time evaluation. The sequence of steps is specified in Customizing tables, and is referred to as a schema . It determines the order in which the processing steps are executed in time evaluation.

You can customize the schemas in order to valuate the recorded time data according to the specific requirements of your company.

The standard system offers a selection of schemas, which all cater for different time evaluation requirements. If you want to customize schemas, we recommend that you use a standard schema as a reference.

Structure

The individual processing steps which are defined in a schema and processed in the given sequence are called functions .

Functions supply the data required for processing, process the data and write it to internal tables . The processing step performed by a function can be controlled or refined by specifying parameters.

Functions can perform a variety of different tasks. The following types of functions exist:

Functions that set a switch

These functions set “switches” when a schema is generated. They are not called again while the current schema is being executed. Functions which set switches are the only functions which can come at any position within the schema.

Please note that functions which set switches cannot be processed via an IF-ELSE-ENDIF query.

Function type

Function

Task

Function that sets a switch

OPPT

Function OPPT is used to determine whether or not the administrator responsible receives a mail if messages have been generated in time evaluation.

Note

Functions that import data

These functions enter data in the internal time evaluation tables (for example, TIP, TZP). This may be the employee’s personal work schedule, infotype records or time pairs from the pair table.

Function type

Function

Task

Function that imports data

P2001

Function P2001 is used in the standard schemas to enter the absences for the day being evaluated in the internal table TIP , where they can be referenced for further processing.

Functions that call a personnel calculation rule

If a function is not adequate for processing, it can call a personnel calculation rule to trigger a more detailed form of processing.

Functions for processing status information

Maximum: You want no more than 10 days to be reduced per accrual period for a particular absence type. In general, these functions

  • Change time types and enter them in table TES or

  • Query general status information (public holiday, name of valid work schedule, and so on.).

Function type

Function

Task

Function that calls a personnel calculation rule

ACTIO

Function ACTIO calls a personnel calculation rule, which performs processing regardless of the existence of entries in table TIP.

Functions that process internal tables line by line

These functions call personnel calculation rules in which the contents of internal tables are edited line by line according to the specified rules.

Function type

Function

Task

Function that processes a table

PTIP

Function PTIP calls a personnel calculation rule, which edits the contents of table TIP record by record according to the specified rules.

Functions with fixed processing

These functions do not call personnel calculation rules, but carry out specific tasks within time evaluation.

Function type

Function

Task

Function with fixed processing

PBRKS

Function PBRKS reads the break specifications in the daily work schedule.

The following examples provide a more detailed explanation of functions:

Function ACTIO

Fct

Par1

Par2

Par3

Par4

P

D

Text

ACTIO

TE20

Check for day with errors

Personnel calculation rule TE20 is called. It performs a check on the basis of the Zero planned working hours field in the Daily Work Schedules table (T550A) to determine whether the employee was scheduled to work on this day, for example.

Function PTIP

Fct

Par1

Par2

Par3

Par4

P

D

Text

PTIP

TO13

GEN

Check maximum daily working time

All TIP entries are made accessible. Personnel calculation rule TO13 is called for each TIP entry, and the maximum daily working time in the daily work schedule or the value in constant TGMAX is evaluated. If the employee has exceeded the maximum working time, the excess times are assigned a special indicator so that no wage types are formed for them.

Was this article helpful?

Related Articles

Leave A Comment?

You must be logged in to post a comment.