‎2006 Dec 26 9:15 AM
hi all,
i been ask to check if the user has authorization to transaction va01, vl01n...
how do i do this?
is it user exit?
thanks,
dana.
‎2006 Dec 26 9:20 AM
Hi dana,
1. simple
2. use the FM AUTHORITY_CHECK_TCODE
regards,
amit m.
‎2006 Dec 26 9:22 AM
‎2006 Dec 26 9:24 AM
Hi
Place a call to function module AUTHORITY_CHECK_TCODE at the beginning (AT INITIALIZATION) and give the TCODE as the transaction code.
Regards,
Navneet
‎2006 Dec 26 9:31 AM
Hi Dana
Please have a look at transaction SUIM, this might help you.
<b>Navigation Path:</b>
User Information System -> Transactions -> Executable for User.
Hope this helps you.
Kind Regards
Eswar
‎2007 Feb 28 2:59 AM
Hi,
You could do in the following way.
Go to transaction SQVI and join two table
1) Agr_tcodes
2) Agr_users
And run the query. Enter user name and transaction it will show all details. Hope it will help you out. With this query you could check whatever it will be
Thanks
Q
‎2007 Feb 28 3:47 AM
hi ,
here is the code that will help you definitely.
&----
*& Report Z_SYED_AUTHORITY_CHECK_TCODE *
*& *
&----
*& *
*& *
&----
REPORT Z_SYED_AUTHORITY_CHECK_TCODE .
parameters: tcode type TSTC-TCODE.
CALL FUNCTION 'AUTHORITY_CHECK_TCODE'
EXPORTING
tcode = tcode
EXCEPTIONS
OK = 1
NOT_OK = 2
OTHERS = 3
.
IF sy-subrc EQ 2.
write:/'You dont have authorization!!!'.
elseif sy-subrc EQ 1.
write:/'You have authorization!!!'.
ENDIF.