04-10-2007 10:56 AM
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.
04-10-2007 11:08 AM
04-10-2007 10:58 AM
Hi,
You can check all in <b>SUIM</b> Transaction by user, profile, Tcode Etc.
reward points if useful
regards,
ANJI
04-10-2007 10:59 AM
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
04-10-2007 11:02 AM
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
04-10-2007 11:08 AM