2007 Oct 25 9:00 AM
Hi
I want check the authorisation object for one Z transaction(To restrict it for certain users). Will this code is sufficient.
authority-check object 'S_TCODE'
id 'TCD' field sy-tcode .
if sy-subrc <> 0.
Error message.
endif.
Regards
Raj.
2007 Oct 25 9:14 AM
Hi ,
This code will work .
Also you can use the following function module .
CALL FUNCTION 'AUTHORITY_CHECK_TCODE'
EXPORTING
tcode = v_tcode
EXCEPTIONS
ok = 1
not_ok = 2
OTHERS = 3.
Which is better way .
Please reward if useful.
Hi
I want check the authorisation object for one Z transaction(To restrict it for certain users). Will this code is sufficient.
authority-check object 'S_TCODE'
id 'TCD' field sy-tcode .
if sy-subrc <> 0.
Error message.
endif.
Regards
Raj.
2007 Oct 25 9:14 AM
Hi ,
This code will work .
Also you can use the following function module .
CALL FUNCTION 'AUTHORITY_CHECK_TCODE'
EXPORTING
tcode = v_tcode
EXCEPTIONS
ok = 1
not_ok = 2
OTHERS = 3.
Which is better way .
Please reward if useful.
2007 Oct 25 9:30 AM
Hi ,
This is sufficient but you have to attach the Authorization object S_TCODE with your transaction.
You can check it in the transaction SE93 for your transaction.
Regards,
Nilesh
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |