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

Next day

Former Member
0 Likes
1,107

Hello Everyone,

I am looking for one FM which gives me next day based on sy-datum.

If sy-datum today is 31 Jan 2006, this FM will give me 1st Jan 2007.

Thanks in advance for the help.

Regards,

Tarun

Hello Everyone,

I am looking for one FM which gives me next day based on sy-datum.

If sy-datum today is 31 Jan 2006, this FM will give me 1st Jan 2007.

Thanks in advance for the help.

Regards,

Tarun

8 REPLIES 8
Read only

graghavendra_sharma
Contributor
0 Likes
1,055

Hi

This can be achived with simple addition.

date_field = date_field + 1.

this will give you the next date.

DATA: d1 TYPE d, d2 TYPE d.

d1 = sy-datum.

d2 = d1 + 1.

START-OF-SELECTION.

WRITE:d1, / d2.

Read only

0 Likes
1,055

just use next_day = sy-datum + 1.

~Suresh

Read only

Former Member
0 Likes
1,055

Hi

RP_CALC_DATE_IN_INTERVAL

Read only

Former Member
0 Likes
1,055

hi,

data: l_date type d.

l_date = sy-datum + 1.

l_date would have tommorows date.

santhosh

Read only

Former Member
0 Likes
1,055

Hi Tarun,

check this FM BKK_GET_NEXT_WORKDAY

Read only

Former Member
0 Likes
1,055

Hi

Just give date = sy-datum + 1. You will get next day date.

Regards

Haritha.

Read only

Former Member
0 Likes
1,055

no need of FM...

date = sy-datum + 1...

date will contain next days date.

Read only

Former Member
0 Likes
1,055

Hi,

You can use FM 'FIMA_DATE_SHIFT_WITH_WEEKDAY' to get next date by setting number of days in import parameter of this FM.

Alternatively, you can use '/OSP/GETDATE_YEAR' to retrieve the format you mentioned.

Call function '/OSP/GETDATE_YEAR'

exporting

IV_DAY = 1

IV_MONTH = 1

IV_START_DATE = 31.01.2006

IV_TIME = 23:59:59

importing

EV_JOB_START_DATE = LV_JOB_START_DATE .

Here you can check value of LV_JOB_START_DATE . It will be 01.01.2007.

Regards,

Shikha