08-03-2007 7:18 AM
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>
08-03-2007 7:36 AM
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
08-03-2007 7:36 AM
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
08-03-2007 7:39 AM
08-03-2007 7:45 AM