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 ..on Dates

Former Member
0 Likes
773

Hi All,

I want a function module, where in i can pass a date and ADD or SUBTRACT some number from it in order to get a new date.

Ex : 23.10.2008 add 15 and get output 08.11.2008

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
741

Hi,

Try using FM:

MONTH_PLUS_DETERMINE u2013 subtract months from date

RP_CALC_DATE_IN_INTERNAL u2013 add/subtract year/month/days from a date

Edited by: Neenu Jose on Nov 18, 2008 7:51 AM

6 REPLIES 6
Read only

GauthamV
Active Contributor
0 Likes
741

hi,

use this function module.

DATE_IN_FUTURE .

Read only

Former Member
0 Likes
742

Hi,

Try using FM:

MONTH_PLUS_DETERMINE u2013 subtract months from date

RP_CALC_DATE_IN_INTERNAL u2013 add/subtract year/month/days from a date

Edited by: Neenu Jose on Nov 18, 2008 7:51 AM

Read only

Former Member
0 Likes
741

Hi,

Make use of the FM RP_CALC_DATE_IN_INTERVAL.

In SIGNUM, use + for add no. of days add to the given data, and -minus for subtract no. of days from the given date.

Thanks,

Sriram Ponna.

Read only

Former Member
0 Likes
741

Hi,

check these..


SG_PS_ADD_MONTH_TO_DATE
BKK_ADD_MONTH_TO_DATE
RE_ADD_MONTH_TO_DATE
HR_ECM_ADD_PERIOD_TO_DATE
HR_JP_ADD_MONTH_TO_DATE
ISP_ADDING_MONTHS_TO_DATE

Arunima

Read only

Former Member
0 Likes
741

Hi

if u r doing add or subtract the days then no need of any FM

just add or subtract the days from a date value.

then it will give correct date for the specified days

Read only

Former Member
0 Likes
741

Hi:

use the fm /SAPHT/DRM_CALC_DATE

Regards

Shashi