01-22-2009 5:12 AM
hi sap gurus,
is there any function module which returns me the past date with the input specifying no .of days.
for ex.
if i specify no.of days as 1000.
it must return me : sy-datum - 1000.
Edited by: rakesh on Jan 22, 2009 12:13 AM
01-22-2009 5:15 AM
hi,
there is no need of any FM if you use as SY-DATUM - 1000 you will get the result.
thanks,
anupama.
01-22-2009 5:15 AM
hi,
there is no need of any FM if you use as SY-DATUM - 1000 you will get the result.
thanks,
anupama.
01-22-2009 5:16 AM
01-22-2009 5:16 AM
check this:
DATA: date1 TYPE sy-datum.
CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
EXPORTING
date = sy-datum
days = 0
months = 1
signum = '-'
years = 0
IMPORTING
calc_date = date1.
WRITE date1.
01-22-2009 5:17 AM
You dont need a function module
new_date = sy-datum - 100.
will give you your required date.
01-22-2009 5:19 AM