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

Calculate Date

former_member386202
Active Contributor
0 Likes
1,298

Hi friends,

i want to calculate next 2 months dates from current date.

Is there any function module for that?

Thanks,

Prashant

6 REPLIES 6
Read only

gopi_narendra
Active Contributor
0 Likes
801

Check this FM: RE_ADD_MONTH_TO_DATE

Regards

Gopi

Read only

0 Likes
801

Hi,

I want all the dates for next 2 months.

thanks,

Prashant

Read only

Former Member
0 Likes
801

Hi,

Use FM CALCULATE_DATE.

But the START_DATE needs to be passed as YYYYMMDD

Regards,

Himanshu

Read only

Former Member
0 Likes
801

<b>CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'

EXPORTING

date = DATE

days = 0

months = 01

signum = '+'

years = 0

IMPORTING

calc_date = DATE.

It will add 1 month to your date,

Hope this helps!!</b>

Read only

Former Member
0 Likes
801

hi prashant,

you can use the following function modules.

CALCULATE_DATE : Calculates the future date based on the input .

RP_CALC_DATE_IN_INTERVAL : Add days / months to a date.

reward if useful..

Read only

Former Member
0 Likes
801

Hi Prashant,

You can try FM, RE_ADD_MONTH_TO_DATE or RP_CALC_DATE_IN_INTERVAL

Reward if Useful.

Regards,

Chitra