‎2006 Dec 01 4:38 AM
Would you please tell me how to write ABAP code to calculate the date after 10 years?
Any function module can be used: add 10 years after a specified date?
(Needs to handle ten years after 29/02/2004 will be 1/3/2014)
We want the target date.
That means to add 9.81yrs into a specified date to get a target date.
‎2006 Dec 01 4:43 AM
Hi,
search in SE37 for date
Message was edited by:
Jayanthi Jayaraman
‎2006 Dec 01 4:43 AM
call function 'RP_CALC_DATE_IN_INTERVAL'
exporting
date = sy-datum
days = 0
months = 0
signum = '+'
years = 10
importing
calc_date = wa_date.
‎2006 Dec 01 4:45 AM
‎2006 Dec 01 4:46 AM
Hi Shilpa,
You can use FM RP_CALC_DATE_IN_INTERVAL.
data: wa_output like sy-datum.
clear wa_output.
call function 'RP_CALC_DATE_IN_INTERVAL'
exporting
date = sy-datum
days = 0
months = 0
signum = '+'
years = 10
importing
calc_date = wa_output.
write: / wa_output.Regards,
Ferry Lianto