‎2009 Aug 10 11:29 AM
Hi,
How to add an authority check for tcode in dialog progragging
‎2009 Aug 10 11:31 AM
Hi,
authority-check object 'Z_CODE'
id 'BUKRS' field <fs_bukrs>
id 'WERKS' field <fs_werks>
id 'EKORG' field <fs_ekorg>
id 'EKGRP' field <fs_ekgrp>.
return = sy-subrc.
Check these links:
http://www.richardsantos.net/2009/03/16/sap-how-to-create-and-use-the-authorization-objects-in-abap/
Thanks.
‎2009 Aug 10 11:31 AM
‎2009 Aug 10 11:40 AM
‎2009 Aug 10 2:39 PM
hi
try this
call function 'AUTHORITY_CHECK_TCODE'
exporting
tcode = 'ST22'
exceptions
ok = 0
not_ok = 2
others = 3.
if sy-subrc <> 0.
message e172(00) with 'ST22'.
endif.
‎2009 Aug 10 2:46 PM
Hello,
You can use the auth object S_TCODE.
AUTHORITY-CHECK OBJECT S_TCODE
ID TCD FIELD <your t-code>. "Authorization group ABAP/4 program
IF SY-SUBRC NE 0.
" Your Error Message
ENDIF. "SY-SUBRC NE 0.BR,
Suhas