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: 

Adding 1 to date

Former Member
0 Kudos

Hello,

I want the code for adding one to date.

urgent.

regards.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

Data: Date type sy-datum.

Date = Sy-datum + 1.

Regards

Sudheer

Former Member
0 Kudos

I want do:

Last posting document date(from BKPF) +1 .

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

regards.

0 Kudos

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

Former Member
0 Kudos

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