04-26-2012 12:01 PM
Hello gurus!
How can I get list of roles for username in ABAP program?
Thanks!
Moderator message: please do more research before asking.
Message was edited by: Thomas Zloch
04-26-2012 12:12 PM
Hello Vadim,
There are number of function modules & class methods to get the roles of username
.
Two of the Function Module , I recollect offen are :
1. CKEXUTIL_USER_TO_ROLE
2. BAPI_USER_GET_DETAIL
Hope they are useful.
Regards,
Dadarao.
04-26-2012 12:28 PM
Hi,
You can get the details from the Table AGR_USERS :- Assignment of roles to users.
Provide the user name in UNAME, it will list out all the roles assigned to that user.
Thanks & Regards
Bala Krishna