03-31-2009 6:53 PM
Hi All,,
I need to get a date which is prior to 18 months from the current date. . if today date is 31/03/2009
I need to get a date of 18months older than current date..Can any body tell me how we can get this date..
Thanks in advance.
03-31-2009 7:03 PM
Hi,
[Search|https://wiki.sdn.sap.com/wiki/display/ABAP/FunctionModulerelatedonDate+calculations] the SCN you can find lot of threads for your question.
03-31-2009 7:07 PM
use fm : HR_99S_DATE_ADD_SUB_DURATION
* CALL FUNCTION 'HR_99S_DATE_ADD_SUB_DURATION'
* EXPORTING
* im_date = lv_ersda " from date
* im_operator = '+' " add or subtract
* im_duration = t_duration " structure to add days/ months/ years
* IMPORTING
* ex_date = lv_vfdat. "output date
Please search next time before you post a new question.
03-31-2009 9:46 PM