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

SELECTION SCREEN ISSUE

Former Member
0 Likes
701

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

6 REPLIES 6
Read only

Former Member
0 Likes
651

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.

Read only

Former Member
0 Likes
651

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.

Read only

Former Member
0 Likes
651

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

Read only

Former Member
0 Likes
651

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

Read only

Former Member
0 Likes
651

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 .

Read only

Former Member
0 Likes
651

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