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: 

Tcode Authorization

Former Member
0 Kudos

Hi,

Is there a Function Module which takes user name and tcode and gives back the result whether the user is authorized to access the tcode.

Regards,

Wasif.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

There may be a function module, but you can also do this in regular ABAP;


AUTHORITY-CHECK OBJECT 'S_TCODE' FOR USER wa_uname
             ID 'TCD' FIELD wa_tcode.

Where wa_uname is the user name and wa_tcode is the transaction code.

Regards,

Nick

2 REPLIES 2

Former Member
0 Kudos

Hi,

There may be a function module, but you can also do this in regular ABAP;


AUTHORITY-CHECK OBJECT 'S_TCODE' FOR USER wa_uname
             ID 'TCD' FIELD wa_tcode.

Where wa_uname is the user name and wa_tcode is the transaction code.

Regards,

Nick

former_member188827
Active Contributor
0 Kudos

there is a function AUTHORITY_CHECK_TCODE but it runs for current user only.