Application Development 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: 

List of roles by username

Former Member
0 Kudos

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

2 REPLIES 2

former_member184635
Participant
0 Kudos

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.

former_member585060
Active Contributor
0 Kudos

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