Skip to Content
avatar image
Former Member

Multiple Selection For Selections screen field

Hi Friends ,

Can any body tell me how to create multiple selection for a field in selection screen and how to capture all those values of that fields in program for database selction. Suppose i am having document number EBELN from EKKO exists in selectio screen . how to create multiple selection for that and how to use all those values given to EBELN to get data from EKKO.

Kumar.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Aug 21, 2007 at 05:32 AM

    Hi

    Use a select option for this.

    In select option, you can enter multiple range of values.

    i hope that solves your doubt.

    Regards

    Ravish

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 21, 2007 at 05:34 AM

    you can get multiple selection by default if you declare so_eblen as select option

    if you dont give nay input on selection screen and execute all the PO's will be considered.

    TABLES : ekko.
    
    SELECT-OPTIONS : so_ebeln FOR ekko-ebeln.
    
    DATA : it_ekko TYPE TABLE OF ekko,
           is_ekko TYPE ekko.
    
    START-OF-SELECTION.
    
      SELECT * FROM ekko
               INTO TABLE it_ekko
               WHERE ebeln IN so_ebeln.
    
      SORT it_ekko BY ebeln.
    
      LOOP AT it_ekko INTO is_ekko.
        WRITE : / is_ekko-ebeln.
        CLEAR : is_ekko.
      ENDLOOP.

    Regards

    Gopi

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 21, 2007 at 06:02 AM

    hi,

    select-options is one type of parameters where u can give multiple values in ranges or single as a input. when u use select-options then system will create a selection screen for u and u give multiple values as

    ex:

    select-options: s_ebeln for ekko-ebeln.

    internally system creates a internal for s_ebeln which has for attributes

    1. low --- starting value if range is used

    2. high -


    ending value

    3. sign -


    operator used for validating field

    4. option -


    to exclude given range of values or single value or to include.

    for this u can assign default values in INITIALIZATION event as

    INITIALIZATION.

    s_ebeln -low = '1'.

    s_ebeln- high = '100-100'.

    s_ebeln-sign = 'BT'.

    s_ebeln-option = 'I' // include

    'E' // exclude.

    if helpful reward some points.

    with regards,

    Suresh Aluri.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 21, 2007 at 06:46 AM

    Hi ,

    Use select-options for this .

    On your selection screen, press Arrow button in front of ur field .

    You will get another window, now select Ranges tab , here you can give your

    ranges like 1 to 10 , 20 to 50 and 100 to 125..

    Hope this helps .

    Praveen.

    Add comment
    10|10000 characters needed characters exceeded