11-02-2007 12:17 PM
Hi all,
Is there any function module to get 1 day less than the date available.
eg. I have a date Nov1,2007 and i need Oct31,2007 or if i enter Jan1,2007 then output should be dec31,2006.
Thanks in advance
Neerja
11-02-2007 12:19 PM
data:
w_date type sy-datum.
w_date = sy-datum.
w_date = w_date - 1.
write w_date.
11-02-2007 12:20 PM
Use this HAZMAT_GET_PREVIOUS_DAY
Import parameters Value
I_DATE 10/10/2007
Export parameters Value
E_DAY_BEFORE 10/09/2007
regards
shiva
11-02-2007 12:21 PM
Hi,
If you want to get a date which is 1 less than the system date then you can just do:
lv_date = sy-datum.
lv_date1 = lv_date - 1.
Thanks,
Sandeep.
11-02-2007 12:21 PM
Hi,
You can use HAZMAT_GET_PREVIOUS_DAY function module.
Reward if helpful.
Regards,
Harini.S