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

How can I find which reference user a user has been created with?

Former Member
0 Likes
2,743

My application creates, edits, modifies and deletes SAP users using BAPI's. I create users using BAPI_USER_CREATE1 and I view them using BAPI_USER_GET_DETAIL. But if, during the creation, I am able to assign to a user a reference user, I am unfortunately unable to retrieve the "reference user" of a user. I use an SAP R/3 release 4.6C with SAP_ABA 46C. The BAPI_USER_GET_DETAIL of my ABAP version doesn't seem to return the reference user. Is there any other means to retrieve this information?

My application creates, edits, modifies and deletes SAP users using BAPI's. I create users using BAPI_USER_CREATE1 and I view them using BAPI_USER_GET_DETAIL. But if, during the creation, I am able to assign to a user a reference user, I am unfortunately unable to retrieve the "reference user" of a user. I use an SAP R/3 release 4.6C with SAP_ABA 46C. The BAPI_USER_GET_DETAIL of my ABAP version doesn't seem to return the reference user. Is there any other means to retrieve this information?

2 REPLIES 2
Read only

graghavendra_sharma
Contributor
0 Likes
1,398

Hi

I hope you get the information from table <b>USREFUS</b>.

I will let you know if i come accross with any function module

Read only

0 Likes
1,398

Hi raghav,

Thank you. I have found the function that enables me to use the USREFUS table. I call the BAPI: RFC_READ_TABLE using the table: USREFUS, the value: "BNAME = 'SMITH'" (for the OPTIONS table) and the value: "REFUSER" (for the FIELDS table).