2006 Nov 10 9:56 AM
i have to get some date from the existing date or sy-datum. how to get it.
Ex: today-10/11/2006.
20 days back---21/10/2006.
2006 Nov 10 10:00 AM
Hi
DATA: OLD_DAY_10 LIKE SY-DATUM,
OLD_DAY_20 LIKE SY-DATUM.
OLD_DAY_10 = SY-DATUM - 10.
OLD_DAY_20 = SY-DATUM - 20.
Max
2006 Nov 10 10:01 AM
hi,
chk this.
data : wa_date type sy-datum.
call function 'RP_CALC_DATE_IN_INTERVAL'
exporting
date = sy-datum
days = 20 --------------------> give ur required date
months = 0
years = 0
signum = '-'
importing
calc_date = wa_date.
write 😕 wa_date. -> new minised date
<b>Note
signum = '+' "
signum = '-' "</b>
Regards
Anver
2006 Nov 10 10:01 AM
hi,
data: date like sy-datum.
date = sy-datum - 10.
regards,
Priya.
2006 Nov 10 10:03 AM
Hi dasr r ,
See this code,
DATA: V_DATE LIKE SY-DATUM.
V_DATE = SY-DATUM.
V_DATE = V_DATE - 10.
WRITE V_DATE.
Regards,
Abdul
P.S: Mark Points, if useful!