From 4.0A a generic function is available for calculating service years.
The function is based on rules to be maintained in customizing tables. This gives flexibility to change the rules to your company's needs. At the same time it is possible to define new rules an let the function calculate other time periods than service years.
In the standard, this function is currently utilized in HRMS Japan for the retirement function.
For more information about the function module, please refer to the function module HR_EVALUATE_TIME_PERIOD.
The standard delivery contain the proper setup for the retirement function.
For more information please refer to the implementation guide for calculation of time periods