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

Looping through Multiple Selection in Select-Options

0 Likes
965

I am trying to produce a table for multiple selections of users at once.

My code works for one user but the client wants to be able to use the multiple selection to enter a group of 5 users at once to view a table for each. Is there a way to loop through all the selections in the multiple selection and write out a table for each?

SELECT-OPTIONS: P_USER FOR AGR_USERS-UNAME NO INTERVALS.
SELECT *
INTO CORRESPONDING FIELDS OF TABLE ITAB_USER_ROLES
WHERE UNAME EQ P_USER-LOW.
1 ACCEPTED SOLUTION
Read only

soerentsch
Explorer
881

Hi Owen,

P_USER is a Range structure. You can simply use it as follows:

SELECT *
    INTO CORRESPONDING FIELDS OF TABLE ITAB_USER_ROLES
  WHERE UNAME IN P_USER.
1 REPLY 1
Read only

soerentsch
Explorer
882

Hi Owen,

P_USER is a Range structure. You can simply use it as follows:

SELECT *
    INTO CORRESPONDING FIELDS OF TABLE ITAB_USER_ROLES
  WHERE UNAME IN P_USER.