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: 

ABAP code used in transaction SU01

Former Member
0 Kudos

Hi all,

Can anyone tell me that whether is there any method by which I can pass the user id and can know whether that user has the SAP_ALL profile or not.

The above is done by using the transaction SU01,but I need the ABAP code that is being used in this transaction.

Regards,

Varun.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

this FM works fine:

SUSR_USER_PROFS_PROFILES_GET

Regards,

4 REPLIES 4

Former Member
0 Kudos

Hi,

You can check all in <b>SUIM</b> Transaction by user, profile, Tcode Etc.

reward points if useful

regards,

ANJI

Former Member
0 Kudos

Hi,

try the function module BAPI_USER_GET_DETAIL

Then you can check if the retuned profiles table contains the profile SAP_ALL.

Regards

Frank

former_member181962
Active Contributor
0 Kudos

YOu can query the table:

UST04

select single * from UST04 where BNAME = sy-uname

and PROFILE = 'SAP_ALL'.

if sy-subrc = 0.

write:/ 'The User' sy-uname 'has SAP_ALL profile'.

endif.

Regards,

Ravi

Former Member
0 Kudos

Hi,

this FM works fine:

SUSR_USER_PROFS_PROFILES_GET

Regards,