This process is applied to ordinary, adjustment and off-cycle payroll runs using the VEABC function which is called from the process required (for example, the Work Termination process).
The following represents the general process for the seniority calculation with absence reduction:
- The internal AB table is checked for absence records applicable to the payroll period run in process. These absence records are assigned the seniority reduction indicator (ABSEN field) in the Absence Categories Attributes table (T7VEAB).
- The ABC_EVAL internal table is then maintained with the absence records found. This table contains all the information on the employee absences starting from the employee recruitment date in the company (in calendar days).
- Later, the information required for the function calculation is retrieved.
- Start date, which can be the employee recruitment date or the date in which the new Labor Act came into effect.
- End date, which indicates the final date to be used by the calculation run
- Fields in which seniority years, months and days must be stored as a result of the calculation carried out.

The above data is stored as parameters in the function that launched the function call.
- Likewise, the system looks for the internal table ABC_EVAL comprising of records between the calculation start and end dates.
- The records found are added in order to obtain the employee cumulated absences.
- The cumulated absence is then deducted from the calculation end date in order to obtain another end date that defines the period of the employee seniority.
- Finally, the function module HRVE_GET_TIME_BETWEEN_DATES is used to obtain the number of years, months and days between the original start date and the new end date.
- These values are then copied into specific fields intended for this purpose (the values coming from the function that launched the function call).