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 Calculate future date after 'x' years

0 Likes
1,711

Hi Gurus,

Can anyone tell me the Standard Function Module which will take today's date as i/p & return the date after 10 years.

e.g say input date is 18.05.2010 & input year is 10.

output = 17.05.2020

Regards,

Rohit.

Hi Gurus,

Can anyone tell me the Standard Function Module which will take today's date as i/p & return the date after 10 years.

e.g say input date is 18.05.2010 & input year is 10.

output = 17.05.2020

Regards,

Rohit.

7 REPLIES 7
Read only

Former Member
0 Likes
1,320

why would it be in 10 years 17.05.2010 and not 18.05.2010 ??

which logic do you want to use to calculate the 10 years after ?

kind regards

arthur

Read only

Former Member
0 Likes
1,320

Hi,

You want to increase 10 or more then year. tell me

Thanks

With Regards

I.Muthukumar.

Read only

Former Member
0 Likes
1,320

Hi rohit

yes use this function

is exactly for your problem HR_SEN_CRULE_0100_DATE.

regards

Marco

Read only

Former Member
0 Likes
1,320

Why not write in a few lines of code? SAP doesn't provide a function module for everything, and sometimes, you can write the code long before you find a partially useful FM....

Read only

Former Member
0 Likes
1,320

Hi ,

Try - " DATE_IN_FUTURE " - used to calculate future dates

Also try FM - "RP_CALC_DATE_IN_INTERVAL " - used to calculate the new date by adding/Sub days, months & Year

Regards,

Salil .

Read only

Former Member
0 Likes
1,320

hi

The fm for your issue is HR_SEN_CRULE_0100_DATE....

best regards

Marco

Read only

ThomasZloch
Active Contributor
0 Likes
1,320

Date question -> FAQ -> please search before posting, check forum sticky threads.

Thread locked.

Thomas