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

function module for date

Former Member
0 Likes
457

hi

i want the print the date field. that should be calulate like this( sy-datum + 13 ).

how i do this using thing. i want the name of the function module which deal with this kind of scenerio.

plz, reply me..

1 ACCEPTED SOLUTION
Read only

ferry_lianto
Active Contributor
0 Likes
441

Hi,

If you want to use FM, then try FM RP_CALC_DATE_IN_INTERVAL.


data: wa_date  like sy-datum.

call function 'RP_CALC_DATE_IN_INTERVAL'
  exporting
    date      = sy-datum
    days      = 13
    months    = 0
    signum    = '+'
    years     = 0
  importing
    calc_date = wa_date.

write: / wa_date.

Regards,

Ferry Lianto

3 REPLIES 3
Read only

Former Member
0 Likes
441

Hi,

To add 13 days to sy-datum , just add 13 days

 data : V_date like sy-datum.

v_date = sy-datum + 13.

write : v_date.

Read only

ferry_lianto
Active Contributor
0 Likes
442

Hi,

If you want to use FM, then try FM RP_CALC_DATE_IN_INTERVAL.


data: wa_date  like sy-datum.

call function 'RP_CALC_DATE_IN_INTERVAL'
  exporting
    date      = sy-datum
    days      = 13
    months    = 0
    signum    = '+'
    years     = 0
  importing
    calc_date = wa_date.

write: / wa_date.

Regards,

Ferry Lianto

Read only

0 Likes
441

HI ferry,

thx for the answer. its solved.