Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Getting the Date

Former Member
0 Likes
534

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.

3 REPLIES 3
Read only

Former Member
0 Likes
492

Hi,

[Search|https://wiki.sdn.sap.com/wiki/display/ABAP/FunctionModulerelatedonDate+calculations] the SCN you can find lot of threads for your question.

Read only

former_member156446
Active Contributor
0 Likes
492

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.

Read only

Former Member
0 Likes
492

Asked and answered many times before. Please search.

Rob