Application Development and Automation 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: 
Read only

Loading multiple entries into database table through selection screen

former_member791715
Discoverer
0 Likes
1,201

I am trying to load multiple entries at a time into database table through selection screen. For this I used select-options but still it's allowing a single entry at a time. There is one column Select Single Values here I can only select multiple entries to display but not able to load multiple entries into the table.

SELECT-OPTIONS: s_id FOR zsample_tab-cid OBLIGATORY .

please let me know how to achieve this..

2 REPLIES 2
Read only

Former Member
0 Likes
999

Thank you for visiting SAP Community to get answers to your questions. Since you're asking a question here for the first time, I recommend that you familiarize yourself with: https://community.sap.com/resources/questions-and-answers, as it provides tips for preparing questions that draw responses from our members.

For example, you can:

- outline what steps you took to find answers (and why they weren't helpful)

- share screenshots of what you've seen/done

- make sure you've applied the appropriate tags

- use a more descriptive subject line

The more details you provide, the more likely it is that members will be able to respond. Feel free to also take our Q&A tutorial at: https://developers.sap.com/tutorials/community-qa.html

Should you wish, you can revise your question by selecting Actions, then Edit.

Best,

Your SAP Community moderator

Read only

Sandra_Rossi
Active Contributor
0 Likes
999

Please read carefully the ABAP documentation. Use IN operator:

SELECT * FROM table 
WHERE id IN s_id                            "<======= use "IN"
INTO TABLE @DATA(rows_from_table).