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

Adding 1 to date

Former Member
0 Likes
722

Hello,

I want the code for adding one to date.

urgent.

regards.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
669

I want do:

Last posting document date(from BKPF) +1 .

This will include the concept of leap year and many more issues.

regards.

5 REPLIES 5
Read only

Former Member
0 Likes
669

Hi Sangeetha

if u want to add 1 day to current date use this one

date = sy-datum + 1.

reward points to all helpful answers

kiran.M

Read only

Former Member
0 Likes
669

Hi,

Data: Date type sy-datum.

Date = Sy-datum + 1.

Regards

Sudheer

Read only

Former Member
0 Likes
670

I want do:

Last posting document date(from BKPF) +1 .

This will include the concept of leap year and many more issues.

regards.

Read only

0 Likes
669

Hi Sangeeta,

The sy-datum or DATS8 will itself look about things like leap year and all.

Just do as follows.

BKPF-BUDAT = BKPF-BUDAT + 1.

Plz reward if helpful

Thanks,

Vinay

Read only

Former Member
0 Likes
669

hi Sangeeta,

Its better to use some FM for Adding date, Since it will take care of all the leap years and last day of the month.

Try to search with date in SE37

Ali