Ansicht
Dokumentation
HR_KSABS_YRS_MTHS_DAYS - Calculate years, months, days & calender days between 2 given dates
ABAP Short Reference CL_GUI_FRONTEND_SERVICES - Frontend ServicesThis documentation is copyright by SAP AG.
Functionality
This routine accepts 2 input parameters, namely the start and the end date. Its main objective is to compute the period between the 2 given dates. The routine returns the period in years, months and days format. Additionally, it returns the period in number of calender days too.
Routine converts 31 days to a month and 12 months to a year when computing the period.
Example
If start date is 19.08.1963 and end date is 17.06.1973, routine will return the period as 9 years, 9 months and 30 days. It will also return the period as 3,591 calender days.
If start date is 19.08.1963 and end date is 18.06.1973, routine will return the period as 9 years, 10 months and 0 days. It will also return the period as 3,592 calender days.
Parameters
BEG_DAEND_DA
NO_CAL_DAY
NO_DAY
NO_MONTH
NO_YEAR
Exceptions
DATEINT_ERRORFunction Group
0SA3CL_GUI_FRONTEND_SERVICES - Frontend Services General Material Data
This documentation is copyright by SAP AG.
Length: 1106 Date: 20240523 Time: 114731 sap01-206 ( 32 ms )