Application Development and Automation 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: 
Read only

Authorisation Object

Former Member
0 Likes
560

Hi,

Can someone tell me as to how are the authorisation objects created and how will we be able to use the same in the ABAP program.

How can we use the objects to restrict the used from viewing the data of the other users.

Please help.

Thanks,

Supriya Manik.

4 REPLIES 4
Read only

Former Member
0 Likes
542

Hi,

Please see the document below :

Repository object on which authorizations are based. An authorization object consists of up to 10 authorization fields . The combination of authorization fields that represent data and activities is used for authorization assignment and authorization check. Authorization objects are combined organizationally in authorization classes. To maintain them, use transaction code SU21.

Thanks,

Sriram Ponna.

Read only

former_member191735
Active Contributor
0 Likes
542

Well supriya,

You can create authorization object with tcode SU21.

go to su21 - create object class first - save it. double click on the class you have just created and then create Object using the little create icon.

you can enter field names or you can only enter the actvt. This is the activity and you can assign Permitted activities for this object. you can see the permitted acctivity button after you enter actvt field in authorization field.

Well, here is how you use the object

AUTHORITY-CHECK OBJECT 'ZOBJECT' ID 'ACTVT' FIELD '1'.

IF sy-subrc <> 0.

  • this means authorization failed.

ENDIF.

if any user want this authorization, you need to assign the same in user master (Contact security people).

You can allow user to create or change or display based on the actvt.

Read only

Former Member
0 Likes
542

check these below link for further information

?

Read only

Former Member