2007 Sep 07 6:21 PM
Hi all,
will FM 'AUTHORITY_CHECK_TCODE' checks whether the user is authorised or not for perticular transaction?
2007 Sep 07 6:23 PM
Yes.
use this transation and pass the transaction code.. if the user is autorized for this transaction then it will return 1 as sy-subrc values if sy-subrc eq 2 then not authorized
2007 Sep 07 6:23 PM
Yes.
use this transation and pass the transaction code.. if the user is autorized for this transaction then it will return 1 as sy-subrc values if sy-subrc eq 2 then not authorized
2007 Sep 07 6:24 PM
&----
*& Report ZUS_SDN_RTTI_CREATE_STRUCTUR_2
*&
&----
*& NOTE: 1st revised version of ZUS_SDN_RTTI_CREATE_STRUCTUR_1
*&
&----
program ZUS_SDN_RTTI_CREATE_STRUCTUR_2.
CALL FUNCTION 'AUTHORITY_CHECK_TCODE'
EXPORTING
TCODE = 'SE38'
EXCEPTIONS
OK = 1
NOT_OK = 2
OTHERS = 3
.
IF SY-SUBRC = 1
write : 'You are authorized to this transaction'.
else.
write : 'You are Not authorized to this transaction'.
ENDIF.