Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create an Authorization object ?

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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>

2 REPLIES 2

Former Member
0 Kudos

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>