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
786

hi experts,

i want a function module thats gives me the date 30 days back cpmpareing system date...

can u please suggest me on that...

thx.

Rajan

points ll be rewarded ...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
753

Hi

Why you need a fun module for this

simply substract 30 days from date

data: date1 like sy-datum, date2 like sy-datum.

date2 = date1 - 30.

date2 will give you the required date

Regards

Anji

5 REPLIES 5
Read only

Former Member
0 Likes
754

Hi

Why you need a fun module for this

simply substract 30 days from date

data: date1 like sy-datum, date2 like sy-datum.

date2 = date1 - 30.

date2 will give you the required date

Regards

Anji

Read only

0 Likes
753

thx anji..

my problem is solved

but i wat to put this two date system date and 30 days lesser date into select-option.

i hv tried but not working...

pls help me out..

thx.

Rajan

Read only

Former Member
0 Likes
753

The FM is CALCULATE_DATE

Hope it helps..reward if it does

Regards

Read only

Former Member
0 Likes
753

hi rajan,

try using :

RP_CALC_DATE_IN_INTERVAL : Add days / months to a date

or try using :

MONTH_PLUS_DETERMINE : Add or subtract months from a date. To subtract a month, enter a negative value for the 'months' parameter.

pls reward if useful..