Please help, Default values in user selection
HI,
I'm asked to create a user selection by allowing multiple selection for sales document types but allow only display.
I have to set 4 default values which are :-
a)ZRPV
B)ZRGV
C)ZRIC
D)ZIR1
Does that mean i have to set default values in a select option?
I tried doing like below but i think it's incorrect:-
SELECT-OPTIONS:
s_type FOR vbak-auart NO-EXTENSION. " Sales Type
*Append default data into select options
s_type-low = 'ZRPV'.
s_type-option = 'EQ'.
s_type-sign = 'I'.
APPEND s_type.
How do i go about it?
Thanks in advance.
may be u can do like this
SELECT-OPTIONS:
s_type FOR vbak-auart default 'zpvr'.
or create a variant and execute using variant.
try this,
SELECT-OPTIONS:
s_type FOR vbak-auart NO INTERVALS.
INITIALIZATION.
*Append default data into select options
s_type-low = 'ZRPV'.
s_type-option = 'EQ'.
s_type-sign = 'I'.
APPEND s_type.
s_type-low = 'ZRGV'.
s_type-option = 'EQ'.
s_type-sign = 'I'.
APPEND s_type.
.....
.....
AT SELECTION-SCREEN OUTPUT .
LOOP AT SCREEN.
IF screen-name = 'S_TYPE-LOW'.
SCREEN-INPUT = 2.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Hi SAPNewbie,
You are on the right way, but you should fill the table at INITIALIZATION.