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

Reg: dates

Former Member
0 Likes
476

Hi all,

In my selection screen date field is mandatory. So by default it is picking up dates from today to 14 days from now. for example today is 09/07/2007.so 14 days from now will be 09/21/2007.

So in range it is taking as 09/07/2007 to 09/21/2007 by default. But i want only 7 days from now. That is 09/07/2007 to 09/14/2007 by default.

Please help me in this.

Regards,

vineel

Message was edited by:

vineel kumar

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
457

Hi,

In the INITIALIZATION event



s_date-low  = sy-datum
s_date-high = sy-datum + 7.
s_date-sign = 'I'
s_date-option = 'EQ'.
append s_date.

, a®

3 REPLIES 3
Read only

Former Member
0 Likes
457

Why dont you populate your date range accordingly in the INITIALIZE event of the report

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
457

Is this default being set in the program, or by the selection screen variant. If in the program, simply change the number of days from 14 to 7.

Or am I missing something? It is Friday afternoon, so I may be getting tired.

Regards,

RIch Heilman

Read only

former_member194669
Active Contributor
0 Likes
458

Hi,

In the INITIALIZATION event



s_date-low  = sy-datum
s_date-high = sy-datum + 7.
s_date-sign = 'I'
s_date-option = 'EQ'.
append s_date.

, a®