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 to get the next year date

Former Member
0 Likes
2,038

Hai Friends,

I want a function module for the following requirement:

i have the current date: 30-07-2008

No of days in this year: 365

I want the date for the next year. 29-07-2009

I have function module to get the date for the previous year

"RM_GO_BACK_N_DAYS".

I want the date for the next year.

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,003

Hi!

Please try out the RE_ADD_MONTH_TO_DATE fm.

Add 12 months to the given old date.

Regards

Tamá

3 REPLIES 3
Read only

Former Member
0 Likes
1,004

Hi!

Please try out the RE_ADD_MONTH_TO_DATE fm.

Add 12 months to the given old date.

Regards

Tamá

Read only

Former Member
0 Likes
1,003

T,

HR_JP_ADD_MONTH_TO_DATE

call function 'HR_JP_ADD_MONTH_TO_DATE'
     exporting
       iv_monthcount = 12
       iv_date       = sy-datum
     importing
       ev_date       = result.

Amit.

Read only

Former Member
0 Likes
1,003

Thanks a lot for your timely help. Its working well