Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.