03-25-2006 3:28 AM
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....
03-25-2006 4: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
03-25-2006 4: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
03-25-2006 4:03 AM
03-25-2006 6: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