04-24-2006 1:35 PM - last edited on 02-04-2024 2:45 AM by postmig_api_4
Dear All,
I need to create one Authorization object with the fields BUKRS, WERKS.
Later I have to use this Auth.obj. in some reports for the authority check.
See the sample code.
---
---
AUTHORITY-CHECK OBJECT 'Z_CHECK'
ID 'BUKRS' FIELD lv_bukrs
ID 'WERKS' FIELD lv_werks.
IF sy-subrc NE 0.
MESSAGE e110 WITH lv_bukrs lv_werks.
" No authorization
ENDIF.
---
---
To create Authorization obj, we require a Object class also.
Could you please tell me the <b>Transaction codes to create OBJECT Class & Auth.object</b>.
Thanks in advance.
04-24-2006 1:43 PM
HI,
Just double click on the Object ZOBJECT..
AND ALSO CHECK THESE TRANSACTIONS..
SU21 - for authorizations objects..
SU53-- checking the authorizations values..
u have enter the respective fields while creating the authorization for the fields in su21..
<b>reward if it is useful..</b>
04-24-2006 1:37 PM
su21 is used for maintenance of authority objects:
http://www.sap-img.com/basis/useful-sap-system-administration-transactions.htm
Regards,
Ravi
04-24-2006 1:43 PM
HI,
Just double click on the Object ZOBJECT..
AND ALSO CHECK THESE TRANSACTIONS..
SU21 - for authorizations objects..
SU53-- checking the authorizations values..
u have enter the respective fields while creating the authorization for the fields in su21..
<b>reward if it is useful..</b>