Skip to Content
avatar image
Former Member

display list

HI FRIENDS,

in my selection screen i need to diplay some 6 material numbers as drop down list

for that i am defining

select-options:s_matnr for mara like mara-matnr.

so plz help me how to write code for that

regards,

divya

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 06, 2006 at 04:58 PM

    i think you need to use a matchcode to do this. you have to go to the se11 and doit in the search help and create a new one.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 06, 2006 at 05:02 PM

    Here is an examle, of course you can fill the IMA internal table manually.

    
    report zrich_0001.
    
    
    
    data: begin of ima occurs 0,
          matnr type makt-matnr,
          maktx type makt-maktx,
          end of ima.
    
    select-options s_matnr for ima-matnr..
    
    initialization.
    
     select matnr maktx from makt into table ima
             up to 6 rows
                   where spras = sy-langu.
    
    
    
    at selection-screen on value-request for s_matnr-low.
    
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
           exporting
                retfield    = 'MATNR'
                dynprofield = 'S_MATNR'
                dynpprog    = sy-cprog
                dynpnr      = sy-dynnr
                value_org   = 'S'
           tables
                value_tab   = ima.
    
    
    at selection-screen on value-request for s_matnr-high.
    
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
           exporting
                retfield    = 'MATNR'
                dynprofield = 'S_MATNR'
                dynpprog    = sy-cprog
                dynpnr      = sy-dynnr
                value_org   = 'S'
           tables
                value_tab   = ima.
    
    start-of-selection.
    
    

    Regards

    Rich Heilman

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 06, 2006 at 05:03 PM

    Hi

    I don't if it's possible to do it for a select-options, anyway see here:

    http://help.sap.com/saphelp_46c/helpdata/en/9f/dbabe435c111d1829f0000e829fbfe/frameset.htm

    Max

    Add comment
    10|10000 characters needed characters exceeded