Application Development and Automation 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: 
Read only

Reg : FM 'AUTHORITY_CHECK_TCODE'

Former Member
0 Likes
1,842

Hi all,

will FM 'AUTHORITY_CHECK_TCODE' checks whether the user is authorised or not for perticular transaction?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
830

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

2 REPLIES 2
Read only

Former Member
0 Likes
831

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

Read only

0 Likes
830

&----


*& 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.