Technical Process of Employment Period Calculation 
Purpose
You use this process to calculate an employment period. Employment period information consists of three elements; start, end, and duration of period.
The Elements in Employment Period Information
Depending on which element the SAP System should calculate, three different calculation types are available:
Calculation type |
Prerequisites |
Example |
( 1 ) Duration of an employment period |
Start and end date are available |
An employee started at the company at =1/01/1960 and is active up to 05/31/1999. You need the duration of this employment period. |
( 2 ) End of an employment period |
Start date and duration are available |
An employee was hired on 07/15/1980 and receives a gratuity after an actual employment period of 25 years. You need the end date of this employment period. |
( 3 ) Start of an employment period |
Duration and end date are available |
The day on which an employee's last employment year starts is important for a country-specific taxation basis. Absence periods are taken into account. You need the start date of the employment period with the end date 12/31/1999. |
Prerequisites
When the employment period calculation function is called, the SAP System must have at least the following import parameters:
In addition, two of the following three parameters must exist for a single calculation process, depending on which calculation type is used: The third parameter is determined using the calculation type:
If the calculation process uses additional logic, it is the task of the function module for the additional logic for the calculation process to determine the two required import parameters.
Each employment period calculation is started with the function module HR_SEN_CALCULATE_COMPLETE (Employment Period Calculation for Calculation Process). This function module is called within an SAP application and must be inserted at the appropriate place by the program developers. The function module is also called if you run a manual calculation in the Calculation of Employment Period infotype (0553). It is only possible to call the calculation in the Calculation of Employment Period infotype if a function module for additional logic for the employment period calculation is assigned to the calculation process.
Process Flow
When the employment period is calculated, the system differentiates between simple calculation processes and calculation processes with additional logic. The latter contains a
function module for additional logic.
The technical sequence of the individual calculation processes is very different. Therefore, the technical sequence should only be briefly mentioned and is not shown in detail here.
The technical sequence of the employment period is split into the following steps in the SAP System:
If the calculation process uses additional logic, the calculation type need not be entered (blank). However, the additional logic then determines the calculation type.
Result
When the employment period has been calculated, the SAP System has determined the required duration or date.