Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to create an Authorization object ?

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.

Tags:
Former Member
Former Member replied

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>

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question