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: 

How to check role assignement

Former Member
0 Kudos

Hello,

I would like to offer a link to a WD application from my WD application

- but only if the user has the correct role for that application.

Unfortunately I don't have any data about authority object, I have just the name of the role the user should have.

Is there something like role check??

kind regards,

Sahla

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi ,

check Tcode SUIM.

regards

Prabhu

3 REPLIES 3

Former Member
0 Kudos

Hi ,

check Tcode SUIM.

regards

Prabhu

0 Kudos

Hi Prabhu,

Thanks for your answer.

I would like to perform this check from an abap program, automatically.

I need rather a function like the AUTHORITY-CHECK OBJECT function, but for roles.

kind regards,

Sahla

0 Kudos

Hi,

DATA: it_profiles TYPE TABLE OF bapiprof.

DATA: wa_profiles LIKE LINE OF it_profiles.

DATA: it_roles TYPE TABLE OF bapiagr,

wa_roles LIKE LINE OF it_roles.

  • Get details from user master data

CALL FUNCTION 'BAPI_USER_GET_DETAIL'

EXPORTING

username = sy-uname

TABLES

profiles = it_profiles

activitygroups = it_roles

return = it_return.

Check table it_roles or it_profiles.

regards