03-16-2019 12:08 PM
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.
03-16-2019 1:36 PM
To know which tables are accessed by SUIM, you may use a SQL trace, with the transaction code ST05.
03-17-2019 4:46 AM
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.
03-17-2019 8:11 AM
Search the web then, for instance:
table authorization site:sap.com
03-17-2019 9:21 AM
03-18-2019 12:49 AM
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.
03-18-2019 9:49 AM
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)