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

previous date arrival

Former Member
0 Likes
440

Hi all,

Based on the current date i have to arrive at the 18 months before date.

Please can you guide me how to do it.

Thanks

Suresh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
417

Hi,

See this FM

Data: v_date LIKE sy-datum.
CALL FUNCTION 'CCM_GO_BACK_MONTHS'
  EXPORTING
    currdate         = sy-datum
    backmonths       = '18'
 IMPORTING
   NEWDATE          = v_date
          .
          write v_date.

3 REPLIES 3
Read only

Former Member
0 Likes
417

do this way

call function 'RP_CALC_DATE_IN_INTERVAL'
exporting
date = sy-datum
*days = 3
months = 18
signum = '-'
years = 0
importing
calc_date = wa_date.

Read only

Former Member
0 Likes
418

Hi,

See this FM

Data: v_date LIKE sy-datum.
CALL FUNCTION 'CCM_GO_BACK_MONTHS'
  EXPORTING
    currdate         = sy-datum
    backmonths       = '18'
 IMPORTING
   NEWDATE          = v_date
          .
          write v_date.

Read only

Former Member
0 Likes
417

did you try with my answer???