Check for User Role
I need to perform a check within the ABAP code, to see if a User has a particular Role assigned to him.
For eg, How do I check if the user has the Role 'SAP_SM_DTM_ALL' assigned to him? There seem to checks for Authorization Objects, but none that can directly check for a Role.
Do help me out!
Thanks & Regards,
Try table AGR_USERS.
Enter user name and get all roles for user.