Skip to Content

How to Extract values from select-options

Hi All,

I need to take out all the values for the Company Code(BUKRS) ,

when BUKRS is entered on the selection-screen as Select Options i.e. S_BUKRS-LOW , 'BT'', S_BUKRS-HIGH.

I will use these company code values in passing to another report which i m calling.

Please help..Its urgent.

Thanks & Regards,

Bhavika

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 08:47 AM

    Hi,

    Don't enter anything in that field.in the select query mention that field.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 08:47 AM

    hi,

    while S_BUKRS-LOW LE S_BUKRS-HIGH.

    <YOUR CODE>.

    add 1 to S_burks-low.

    endwhile.

    regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 08:48 AM

    loop at s_bukrs.

    r_ranges-low = s_bukrs-low.

    r_ranges-sign = 'I'.

    r_ranges-low = 'BT'.

    r_ranges-high = s_bukrs-high.

    append r_ranges.

    endloop.

    loop at r_ranges.

    write: r_ranges-low.

    endloop.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 08:48 AM

    write a select on T001 as ..

    select bukrs from T001 into table it_T001

    where BUKRS in s_bukrs.

    U'll get all the bukrs entered on the selection screen.

    U can pass these values to another report ...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 08:56 AM

    Hi Bhavika,

    at selection screen.

    Loop at s_bukrs.

    • pass to ranges table

    t_range-sign = s_bukrs-sign

    t_range-low = s_bukrs-low

    t_range-high = s_bukrs-high.

    append t_range.

    endloop.

    refresh s_bukrs.

    Use this t_range table to pass to another program ,the entered values in the selction screen.

    The select query of this program can be like..

    select ....... where bukrs in s_bukrs.

    Thanks,

    Keerthi

    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.