Start of Content Area

Process documentation General Process of Employment Period Calculation Locate the document in its SAP Library structure

Purpose

With this process, you calculate an employment period within a HR application component in the SAP System. The required employment period can be a particular duration (for example, length of service on company, duration of all absences in the calendar year), or a particular key date (for example, date of 25th anniversary).

Prerequisites

To calculate the employment period, the SAP System requires a calculation process with the necessary process steps. A valuation model must be assigned to the calculation process or to its process steps. The valuation model must contain selection classes and rules, which are used by the SAP System to generate the required periods from the employee data. To make the necessary settings, see Customizing for Personnel Administration under Evaluation Bases ® Employment Period Calculation.

Note

If you have set up your system in Customizing, you can check it with report RPUSEN20 (Evaluation of IMG Settings for Employment Period Calculation).

To test the evaluation of a calculation process or valuation model for individual employees, run report RPUSEN10 (Test Utility for Employment Period Calculation).

You define the conversion rules in Customizing for Personnel Administration under Evaluation Bases ® Calculation of Employment Period ® Utilities.

Process Flow

Graphical Representation of Employment Period Calculation Process

  1. Selection of objects
  2. The SAP System first checks the required objects for the calculation process, starting at the process step up to the selection rule.

  3. Processing of objects

The SAP System then processes the selected objects in reverse order, from the selection rule to the process step.

This graphic is explained in the accompanying text

Description of a process

  1. The employment period calculation function is called by the SAP System with a special function module. When they are called, the system uses the calculation process as the import parameter (see also Technical Process of Employment Period Calculation).
  2. After the call, the SAP System checks that the calculation process is split into process steps and calls the assigned valuation model for each process step. If no process step exists, the valuation model assigned to the calculation process itself is called. Instead of the assigned valuation model, a different valuation model is called, provided this is permitted in the Customizing settings and you have made an appropriate entry in the Calculation of Employment Period infotype (0553).
  3. The SAP System then determines the selection classes that are assigned to the valuation model and selects the assigned selection rules for each selection class.
  4. Finally, the SAP System processes the individual selection rules and selection classes within a valuation model in ten individual steps. The system generates a period, based on the category of selection rule.

The subsequent processing is dependent on the calculation type that has been defined for the total employment period. One of the following values is determined for the employment period, based on the calculation type:

For more information on the calculation type, see Technical Process of Employment Period Calculation.

Processing Steps Within a Valuation Model That Are Dependent on the Calculation Type

Processing step

Determine
Start of employment period

Determine
End of employment period

Determine
Duration of employment period

4.1. Import infotypes

X

X

X

4.2. Processing according to selection rules

X
(without threshold value and maximum value)

X

X

4.3. Process priority rules for selection classes

X

X

X

4.4. Determine interruption periods

 

X

X

4.5. Threshold value and maximum value for selection classes

 

X

X

4.6. Determine remaining periods

X

X

X

4.7. Assign weighting factors according to selection classes

X

X

X

4.8. Determine periods and date-based durations

X

X

X

4.9. Calculate duration

X
(is not logged)

X
(is not logged)

X

4.10. Weight duration

X
(is not logged)

X
(is not logged)

X

  1. If a period of time is being determined, the SAP Systems rounds it off using a rounding rule. This step is only performed if a rounding rule is assigned to the calculation process or its process steps.
  2. If several process steps are given, they must be processed in a particular order. The function module for additional logic for the calculation process determines this order. This function module also determines the relationship between the results from the individual valuation models. If necessary, the function module runs a comparison calculation between the individual results.

Result

The result of the employment period calculation is a period of time or a key date that can be used for further processing or, if required, for storage in the Calculation of Employment Period infotype (0553).

End of Content Area