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

Authority-check values

Former Member
0 Likes
605

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
Read only

Former Member
0 Likes
570

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
Read only

Former Member
0 Likes
571

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

Read only

0 Likes
570

Thank you Andrew ,

Let me check it first.

Regards

Nilesh

Read only

Former Member
0 Likes
570