09-18-2008 8:02 AM
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
09-18-2008 8:05 AM
09-18-2008 8:05 AM
09-18-2008 8:31 AM
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
11-06-2009 1:57 PM
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