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: 

selection screen must show current date + 1

Former Member
0 Kudos

Hi Guys,

In my selection screen i have given


parameters: date like sy-datum default sy-datum.

I have added + 1 after sy-datum.

But i am not getting tommorows date.

So can I display current date = current day + 1 Day in selection screen itself.

Thanks,

Prasad.

1 ACCEPTED SOLUTION

former_member376453
Contributor
0 Kudos

In INITIALIZATION event:


date = sy-datum + 1. 

Pass this value to your selection parameter.


parameters: date like sy-datum default sy-datum.

Edited by: Kuntal Nandi on Mar 20, 2009 11:44 AM

3 REPLIES 3

Sm1tje
Active Contributor
0 Kudos

in INITIALIZATION add 1 to your date parameter.

date = sy-datum + 1.

BTW: If you do so, you can forget about the 'DEFAULT' addition.

Edited by: Micky Oestreich on Mar 20, 2009 5:38 PM

Former Member
0 Kudos
parameters: date like sy-datum default sy-datum.
INITIALIZATION.
DATE = sy-datum + 1.          " Tommorows date will be display on the selection screen.

OR:

parameters: date like sy-datum default sy-datum.
AT SELECTION_SCREEN OUTPUT.
DATE = sy-datum + 1.

Regards,

Gurpreet

former_member376453
Contributor
0 Kudos

In INITIALIZATION event:


date = sy-datum + 1. 

Pass this value to your selection parameter.


parameters: date like sy-datum default sy-datum.

Edited by: Kuntal Nandi on Mar 20, 2009 11:44 AM