‎2008 May 18 6:17 PM
In sedlction-screen I am displaying a date in select-options as i/p.I want to default the value for low and high when the input screen appears.
ie
creation date 1.5.2008 -low 17.5.2008 sy-datum-high (select options) in input screen.
Thanks in advance
‎2008 May 18 7:30 PM
Hi veera suganya
In the initialization event u can specify any default values.
Example.
Initialization.
s_Date-low = '20080501'.
s_date-high = '20080517'.
These values will come as default.
Venkat.
‎2008 May 18 7:35 PM
Hi,
You can do as below:
tables : bsis.
select-options : so_budat for bsis-budat.
INITIALIZATION.
so_budat-sign = 'I'.
so_budat-option = 'BT'.
so_budat-low = '01.05.2008'.
so_budat-high = '17.05.2008'.
append so_budat.
OR
"You can use the same code as At selection-screen output event as below.
at selection-screen output.
so_budat-sign = 'I'.
so_budat-option = 'BT'.
so_budat-low = '01.05.2008'.
so_budat-high = '17.05.2008'.
append so_budat.
Thanks,
Sriram Ponna.
‎2008 May 19 3:42 AM
Hi
Check this if it helps.
select-options : so_date for sy-datum.
INITIALIZATION.
so_date-sign = 'I' .
so_date-option = 'EQ' .
so_date-low = sy-datum - 5 .
APPEND so_date.
thanks
Praveen
‎2008 May 19 5:58 AM
Hello Veera,
The most accurate solution came from Sriram Ponna. His/her formatting is not correct: The ...-LOW and ,,,-HIGH fields require a SYSTEM date format, i.e YYYYMMDD. Your statements in either INITIALIZATION or AT SELECTION-SCREEN OUTPUT have to look like:
wa_so_date-sign = 'I'.
wa_so_date-option= 'BT'.
wa_so_date-low = '20080501'.
wa_so_date-high = '20080517'.
append wa_so_date to so_date. "using a structure instead of a header line is better!!The dates on the screen appear as you have configured your date-display (under System->User Profile->Own Data and Defaults-tab)
Have a great success,
Heinz
‎2008 May 19 6:05 AM
hi ,
if u want low value default as a first date of current month , then try this ,
select-options : date like sy-datum.
concanetate '01' date+3(10) into date-low .
date low gives u the first date of current months as a default .
‎2008 May 19 6:53 AM
Hi,
You can decalre the values in th event INITIALIZATION.
This event is the one which is triggerd before showing the selection screen. here you cann declare the deault values or frequently used values.
reward if helpful.
Rgds
Umakanth