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

Multiple Selection on Selection Screen

Hello Friends,

Iam having a selection screen where I can enter a single value or range of values directly into the select-option fields or I can click on Multiple Selection button and enter the single value or Range of values. And whatever I enter in the Multiple selection that is stored in table s_lifnr (because I enter vendor details).

Now, my question is.....Is there any Function Module or any BAPI to get or read all the values of this table into another internal table because I want to use them in another BAPI where I need to pass the range of vendor codes to get list of line items.

So if I could make up an internal table which contains all the vendor codes selected from multiple selection with options like (=,>,<,<=,>=)in single value and (BT, I, E)in Range I can use this table in that BAPI.

Any kind of help is appreciated..

Thanks in Advance..

Regards,

Raju....

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 Mar 25, 2006 at 04:00 AM

    Hi,

    What you have is a SELECT OPTIONS parameter with the user's selected values, you don't have the Database selection's yet . So, declare a internal table and fire a SELECT statement on whichever table that is with the SELECT OPTIONS in the WHERE clause. This will get all the values in the internal table and then use this table as a parameter to the whichever BAPI you are using.

    I am not sure why you need a function module.

    Regards

    Ravi

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 25, 2006 at 04:03 AM

    Usually, you will want to select the vendors from the database.

    data: ilfa1 type table of lfa1 with header line.
    
    select-options: s_lifnr for lfa1-lifnr.
    
    select * into table ilfa1 from lfa1
              where lifnr in s_lifnr.
    
    loop at ilfa1.
    
    * do something with all selected vendors.
    
    endloop.

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 25, 2006 at 06:13 AM

    Hi,

    Check this Demo Program...

    <b>demo_sel_screen_select_options

    demo_sel_screen_select_no_int2

    demo_sel_screen_select_no_int1</b>

    Regards

    Vijay

    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.