Calculate number of days, months and years in SAP ABAP
by rmsb on Friday, April 17th, 2009 | No Comments
In ABAP there is a function to calculate the number of days, months and years!
Example:
CALL FUNCTION 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
EXPORTING
I_DATE_FROM = '20081008'
I_DATE_TO = '20090116'
IMPORTING
E_DAYS = T_DAYS
E_MONTHS = T_MONTHS
E_YEARS = T_YEARS.
Result : T_DAYS = 466
T_MONTHS = 16
T_YEARS = 2

