Skip to Content
author's profile photo Former Member
Former Member

List of roles by username

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Apr 26, 2012 at 11:12 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 26, 2012 at 11:28 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.