Application Development 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: 

selection screen fields

Former Member
0 Kudos
149

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
101

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

8 REPLIES 8

Former Member
0 Kudos
102

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

0 Kudos
101

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.

Former Member
0 Kudos
101

If possible, put those values as default values directly on selection screen.

Regards,

Aparna Gaikwad

0 Kudos
101

hi aparna .how can i put multiple default values

former_member181995
Active Contributor
0 Kudos
101

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.

Former Member
0 Kudos
101

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

0 Kudos
101

pls any body check this requirement and give answer .

0 Kudos
101

looks like the APPEND statement is missing after each low-high value addition. can you post your code here?