Application Development 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: 

Function module

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

data:

w_date type sy-datum.

w_date = sy-datum.

w_date = w_date - 1.

write w_date.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

You can use HAZMAT_GET_PREVIOUS_DAY function module.

Reward if helpful.

Regards,

Harini.S