Skip to Content
author's profile photo Former Member
Former Member

how to assign select-option values to internal table

hi all,

how to assign select-option values to internal table

thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 09:11 AM

    hi,

    can u explain ur problem in detail?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 09:14 AM

    Hi,

    You just need to loop at your select-option field and take the values from low and high fields.

    for. e.g

    loop at s_werks .

    move:s_werks-low to <your itab>

    if not s_werks-high is initial .

    move: s_werks-high to <youritab>

    endif .

    append <your itab>

    endloop .

    OR use select statement.

    regards,

    Omkar.

    Message was edited by:

    Omkaram Yanamala

    Message was edited by:

    Omkaram Yanamala

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 09:14 AM

    Hi,

    Simply select the values into an internal table.

    Regards

    vijai

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 02:00 PM

    Suppose ur select option is s_matnr..

    Then its values wud be in

    <b>s_matnr-low</b> and <b>s_matnr-high</b>

    Hope dis helps..

    Reward if it does

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 02:05 PM

    If u r giving single values alone in ur selection screen u can do like this-

    select-options:s_matnr for mara-matnr.

    loop at s_matnr.

    if s_matnr-high is initial.

    move s_matnr-low to itab.

    append itab.

    clear itab.

    endif.

    endloop.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 06:31 AM

    Hi,

    Check the below link . It is very useful one..

    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/select_o.htm

    Regards,

    Maha

    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.