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: 

Read multiple user details

srinivas_anchuri
Explorer
0 Kudos

Hi,

I need to read the names of a set of users. I donot want to call BAPI_USER_GET_DETAIL for every user.

Is there a way I could read all the user names in a single go?

Thanks.

Srinivas.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Srinivas,

Sure you can: make a SELECT on table USR21 with join to ADRP on field persnumber.

Regards,

John.

4 REPLIES 4

Former Member
0 Kudos

Hi Srinivas,

Sure you can: make a SELECT on table USR21 with join to ADRP on field persnumber.

Regards,

John.

0 Kudos

Forgot to add this..

Even that view uses the same tables

Former Member
0 Kudos

Hi Srinivas,

You can try with the function module:

<b>RH_USER_NAME_READ</b>

You need to put the user id in the table <b>user_tab</b>

and you get the relevant value in <b>user_name</b>

Regards,

Subramanian V.

0 Kudos

Hi All,

Thanks for ur quick responses. I finally settled with a select from view user_addr. This is the view used by search help of user field on SU01 screen.

Thanks.

Srinivas.