2008 Aug 07 7:14 AM
hai i want to give multiple value ranges in select options in initialization event.i appended those values in select-options internal table but it is taking only single values not ranges.
2008 Aug 07 7:16 AM
Hi,
If you use a select-options , it will
check the code
INITIALIZATION.
airp_fr-sign = 'I'.
airp_fr-option = 'EQ'.
airp_fr-low = 'JFK'.
APPEND airp_fr.
airp_to-sign = 'I'.
airp_to-option = 'EQ'.
airp_to-low = 'FRA'.
APPEND airp_to.
carrid-sign = 'I'.
carrid-option = 'BT'.
carrid-low = 'AA'.
carrid-high = 'LH'.
APPEND carrid.
REF: http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9a2135c111d1829f0000e829fbfe/content.htm
Regards,
anirban
2008 Aug 07 7:16 AM
Hi,
If you use a select-options , it will
check the code
INITIALIZATION.
airp_fr-sign = 'I'.
airp_fr-option = 'EQ'.
airp_fr-low = 'JFK'.
APPEND airp_fr.
airp_to-sign = 'I'.
airp_to-option = 'EQ'.
airp_to-low = 'FRA'.
APPEND airp_to.
carrid-sign = 'I'.
carrid-option = 'BT'.
carrid-low = 'AA'.
carrid-high = 'LH'.
APPEND carrid.
REF: http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9a2135c111d1829f0000e829fbfe/content.htm
Regards,
anirban
2008 Aug 07 7:20 AM
when i click the arrow in selection screen i didn't get all ranges.it shoes low and high values for the first entry only.
2008 Aug 07 7:18 AM
If possible, put those values as default values directly on selection screen.
Regards,
Aparna Gaikwad
2008 Aug 07 7:22 AM
2008 Aug 07 7:22 AM
Sudheer,
see this code:
SELECT-OPTIONS: KD_LIFNR FOR LFA1-LIFNR MATCHCODE OBJECT KRED.
AT selection-screen on kd_lifnr.
kd_lifnr-option = 'EQ'. " AG2007/03/12
kd_lifnr-sign = 'I'. " AG2007/03/12
SELECT lifnr FROM lfb1 INTO kd_lifnr-low "
WHERE mindk = min_ind. "
APPEND kd_lifnr. "here am filling the value in select options
endselect.
Amit.
2008 Aug 07 7:27 AM
Hi,
INITIALIZATION :
This event occurs before the standard selection screen is called. During this event block, the input fields of the standard selection screen can only be initialized once after the program has been started.
During INITIALIZATION (but also during AT SELECTION-SCREEN OUTPUT) the standard values for parameters or selection criteria, which are declared in logical databases, can be changed. To change a selection criterion, you must fill at least the components seltab-sign, seltab-option and seltab-low of the selection table seltab, otherwise it remains undefined.
Example :
INITIALIZATION.
s_matnr-sign = 'I'.
s_matnr-option = 'BT'.
s_matnr-low = 'AA'.
s_matnr-high = 'LH'.
APPEND s_matnr.
Or if you need to fill default values we can have this way :
DATA: wa_mara TYPE mara.
SELECT-OPTIONS: s_matnr FOR wa_mara-matnr
DEFAULT 'test-100'
TO 'test-200'
OPTION NB
SIGN I.
Hope this helps.
thanx,
dhanashri.
.
Edited by: Dhanashri Pawar on Aug 7, 2008 8:32 AM
2008 Aug 07 7:39 AM
2008 Aug 07 7:43 AM
looks like the APPEND statement is missing after each low-high value addition. can you post your code here?