2006 Nov 30 11:14 AM
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?
2006 Nov 30 11:35 AM
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
2006 Dec 06 10:19 AM
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).
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |