Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Selection on Selection Screen

Former Member
0 Kudos

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....

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

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

former_member188685
Active Contributor
0 Kudos

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