‎2007 Oct 17 5:51 AM
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 ...
‎2007 Oct 17 5:53 AM
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
‎2007 Oct 17 5:53 AM
‎2007 Oct 17 5:53 AM
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
‎2007 Oct 17 6:19 AM
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
‎2007 Oct 17 6:01 AM
The FM is CALCULATE_DATE
Hope it helps..reward if it does
Regards
‎2007 Oct 17 6:03 AM
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..