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

Get user ids based on Authorisation object values

sankar_bhatta
Participant
0 Likes
2,838

HI,

In SUIM, we have an option for gettng user id based Authorisation objects and its values. Is there any FM and group of tables that I can join to fetch this data in a program. I have debugged SUIM but could not really find where the logic is.

6 REPLIES 6
Read only

Sandra_Rossi
Active Contributor
0 Likes
2,093

To know which tables are accessed by SUIM, you may use a SQL trace, with the transaction code ST05.

Read only

sankar_bhatta
Participant
0 Likes
2,093

I have used ST05 and there are so many tables system queries. I am lost after an hour investigating those logs. Is there any FM / class ot set of tables that you can suggest to me.

Read only

Sandra_Rossi
Active Contributor
0 Likes
2,093

Search the web then, for instance:

table authorization site:sap.com
Read only

s1252
Product and Topic Expert
Product and Topic Expert
0 Likes
2,093

Did you try checking AGR_USER, AGR_1250 and any in this seri

Read only

DoanManhQuynh
Active Contributor
0 Likes
2,093

you can get object and its profile from table USR12 or UST12.

user id and profile can get from table USR04.

so, join them and you can get the result you need.

i dont know what function module can do it, but for reference you can check function group: SU_USER. otherwise, you have to debug the SUIM to find out.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,093

Look at a report such as RSUSR002, even if you are not able (not enough time) to analyze it, it will generate an ALV and wrapping it with class CL_SALV_BS_RUNTIME_INFO, you can prevent actual display and get the data back in your program.

If you fill confident look for class CL_SUIM_AUTH_APPL or tables such as (example)

  • UST12 - UST10S - UST4
  • UST12 - UST10S - UST10C - UST4