Application Development and Automation 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: 
Read only

Function module

Former Member
0 Likes
493

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
Read only

Former Member
0 Likes
468

data:

w_date type sy-datum.

w_date = sy-datum.

w_date = w_date - 1.

write w_date.

Read only

Former Member
0 Likes
468

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

Read only

Former Member
0 Likes
468

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.

Read only

Former Member
0 Likes
468

Hi,

You can use HAZMAT_GET_PREVIOUS_DAY function module.

Reward if helpful.

Regards,

Harini.S