‎2008 Jun 20 11:20 AM
Hi folks,
In my select-options, i need to set multiple values as default. The values would be approximately 10. Could any body suggest me how to do this.
Thanls,
Ram.
‎2008 Jun 20 11:21 AM
Hi,
You can do it in different ways, check the below code...
S_MATNR-SIGN = 'I' . <The possible values are 'I' or 'E'>
S_MATNR-OPTION = 'BT'. <The possible values are 'BT' or 'EQ'>
S_MATNR-LOW = '000000000000000018'.
S_MATNR-HIGH = '000000000000000027'.
append s_matnr.
or
Check the F1 help for select-options there are so many ways to do this.
Rgds,
Bujji
Edited by: Bujji on Jun 20, 2008 12:21 PM
‎2008 Jun 20 11:22 AM
‎2008 Jun 20 11:25 AM
hi
for giving multiple default values in select option,,,selection screen...
do 1 thing...
while declaring the code for select options....in the declaration...
in front of each value...simply write default...it wll take those values as default...
reward points if useful...
‎2008 Jun 20 11:26 AM
Hi,
1) first way:
create system variant for your programs.
(se38 variant with prefix name 'CUS&' )
in this variant fill selection-options with your default values.
create transaction (se93) for your report with this variant.
2) second way:
in INITIALIZATION event.
add code:
s_value-opti = 'EQ'.
s_value-sign = 'I'.
s_value-low = 'value1'.
append s_value.
s_value-low = 'value2'.
append s_value.
Best regards.
‎2008 Jun 20 11:26 AM
Hi,
you can use default values [Default Values for Selection Criteria|http://help.sap.com/saphelp_nw70/helpdata/EN/9f/dba75335c111d1829f0000e829fbfe/frameset.htm], code it ([Selection Tables|http://help.sap.com/saphelp_nw70/helpdata/EN/9f/dba71f35c111d1829f0000e829fbfe/frameset.htm]) e.g. within AT SELECTION-SCREEN OUTPUT or INITIALIZATION like
SO_OPT-SIGN = 'I'.
SO_OPT-OPTION = 'EQ'.
SO_OPT-LOW = gv_value.
APPEND SO_OPT.
or you can use variants ([Variant Maintenance|http://help.sap.com/saphelp_nw70/helpdata/EN/c0/980374e58611d194cc00a0c94260a5/frameset.htm]).
Regards Rudi
‎2008 Jun 20 11:31 AM
hi in the initialization write like this..
report .
tables:mara .
select-options:s_matnr for mara-matnr .
initialization.
s_matnr-SIGN = 'I'.
s_matnr-OPTION = 'EQ'.
s_matnr-LOW = '00000000001'.
APPEND s_matnr.
s_matnr-SIGN = 'I'.
s_matnr-OPTION = 'EQ'.
s_matnr-LOW = '00000000002'.
APPEND s_matnr.
s_matnr-SIGN = 'I'.
s_matnr-OPTION = 'EQ'.
s_matnr-LOW = '00000000003'.
APPEND s_matnr.
s_matnr-SIGN = 'I'.
s_matnr-OPTION = 'EQ'.
s_matnr-LOW = '00000000004'.
APPEND s_matnr.
s_matnr-SIGN = 'I'.
s_matnr-OPTION = 'EQ'.
s_matnr-LOW = '00000000005'.
APPEND s_matnr.
s_matnr-SIGN = 'I'.
s_matnr-OPTION = 'EQ'.
s_matnr-LOW = '00000000006'.
APPEND s_matnr.
s_matnr-SIGN = 'I'.
s_matnr-OPTION = 'EQ'.
s_matnr-LOW = '00000000007'.
APPEND s_matnr.
‎2008 Jun 20 11:34 AM
Hi
Under initialization
you can use the following
select single parva from usr05 into data1(variable) where
parid = 'VKO'.
and pass this value as default value to you selection screen.
PS: DO award points if it helps