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: 

Authority-check values

Former Member
0 Kudos

Hi all,

I have created a customized transaction. In that program i want to check whether the user have autorization for the transaction e.g. create/change/display , depending upon that my program will flow.

So to check user for the transaction i have written following code:

<b>AUTHORITY-CHECK OBJECT 'S_TCODE'

ID 'TCD' FIELD '02'.

IF sy-subrc = 0.</b>

I dont know if i enter S_TCODE as object then what will be the corresponding values for <b>ID</b> and <b>FIELD</b>.

If i enter ACTVT in id then i know the corresponding values. But for TCD i dont know the correspnding values.

Regards

<b><b>Nilesh</b></b>

1 ACCEPTED SOLUTION

Former Member
0 Kudos

TCD is the transaction code you want to check authorisation for.

So If you wanted to see if user is authorised to use SE38:

AUTHORITY-CHECK OBJECT 'S_TCODE'

ID 'TCD' FIELD 'SE38'.

IF sy-subrc = 0.

Andrew

3 REPLIES 3

Former Member
0 Kudos

TCD is the transaction code you want to check authorisation for.

So If you wanted to see if user is authorised to use SE38:

AUTHORITY-CHECK OBJECT 'S_TCODE'

ID 'TCD' FIELD 'SE38'.

IF sy-subrc = 0.

Andrew

0 Kudos

Thank you Andrew ,

Let me check it first.

Regards

Nilesh

Former Member
0 Kudos