Using Function CHECK to Select Employees

Use

When the schema is generated, function CHECK sets a program status which controls the basic functions of time evaluation.

These include:

  • Selecting employees for time evaluation

  • Importing infotypes

  • Setting a retroactive accounting run for payroll

  • Time evaluation for future dates

Note Note

The position of function CHECK in the schema is irrelevant.

End of the note.

Features

Using function CHECK to select employees

Function CHECK plays a special role in selecting employees via time evaluation. It checks whether the employee should be evaluated using the schema according to the Time Management status, which is stored for each employee in the Planned Working Time infotype (0007).

Example Example

You are recommended to use Schema TM01 to evaluate time data if you only record exceptions to the work schedule for an employee.

Only employees assigned the Time Management status 9 (time evaluation: actual times) are selected in schema TM01. This is achieved using function CHECK, parameter 2 = NEG.

End of the example.

Parameters of function CHECK for selecting employees via the time evaluation report: :

Parameters

Time Management status

PON

All other than 0

TRC

1 - Time evaluation: actual times

PDC

2 - PDC time evaluation

SRV

8 - External services

NEG

9 - Time evaluation: planned times

You can use function CHECK to select employees if you want to run time evaluation with different schemas.

On the basis of the Time Management status, employees can be selected for evaluation using a particular schema, and excluded from evaluation using another schema.

There are two methods of distinguishing employees with different Time Management statuses automatically in time evaluation. The following examples illustrate the two methods:

Example: Processing all employees in one time evaluation run

The time data of internal and external employees is evaluated in your company. You use schema TM00 (time evaluation using time events) for your own employees, and schema TM02 (time evaluation for external services) for external employees.

In order to implement different processing methods for internal and external employees in one single time evaluation run, use a main schema which starts time evaluation once daily as a background job.

You branch to two subschemas within the main schema; variants of schemas TM00 and TM02 are used.

These variants are referred to below as variant TM00 and variant TM02 .

Note Note

  • A subschema cannot be generated and therefore cannot be executed via RPTIME00 . The indicator executable schema in the schema attributes is not activated in this case.

  • Please note when you create subschemas that they must only contain day processing. The processing blocks Before day processing and Final processing must be located in the main schema.

End of the note.

Insert the following lines in the main schema:

Function

Par

Meaning

CHECK

PON

All employees with a Time Management status other than 0 are selected

IF

POS

If the employee is assigned Time Management status 1 or 2

COPY

TM00

Branch to the subschema variant TM00

ELSE

If this condition is not fulfilled,

COPY

TM02

Branch to the subschema variant TM02

ENDIF

End of IF query

Processing employees in several time evaluation runs

Your company evaluates time data for employees for whom actual times are recorded and also for employees for whom only exceptions to the work schedule are recorded. The latter employees’ time data should only be evaluated once a week, the others’ daily. Use variants of schemas TM00 and TM01 for time evaluation.

Note Note

You cannot use this example unless your internal employees are assigned Time Management status 1 or 2.

End of the note.

The following line is inserted in the variant of schema TM00:

Schema Variant TM00

Function

Par

Meaning

CHECK

TRC

Only employees assigned Time Management status 1 are selected

or

CHECK

PDC

Only employees assigned Time Management status 2 are selected

The following line is inserted in the variant of schema TM01 (time evaluation for exceptions to the work schedule):

Schema Variant TM01

Function

Par

Meaning

CHECK

NEG

Only employees assigned Time Management status 9 are selected

In the Schedule time evaluation step in the Implementation Guide, you schedule two background jobs for time evaluation: This specifies that time evaluation is run daily using the schema variant TM00, and weekly using the schema variant TM01.