Creating Authorization Object

lightAuthorization Field, Object Class & Authorization Object Creation & Use

 

 


Authorization Object checks the particular activity( may be create, change, display,delete, etc ) assigned to a user for a particular business process. The post shows how to create an  authorization object for 3 different business processes with different activities.

To create and make use of it the below steps to be performed-

  1. Creating authorization field- Tx- SU20
  2. Creating Object class- Tx- SU21
  3. Creating Authorization object which contains authorization fields under object class- Tx- SU21
  4. Creating a Role- Tx- PFCG
  5. Assigning Authorization Object to the role and generating profile
  6. Assigning role to the Business user
  7. Using Authority-check on authorization object in the program

The post shows using authorization object in 3 different business process with different activity.

Tx- SE11 and create a data element and domain.

1


Provide 3 different domain values for three different business processes. Save & activate the domain & data element.

2


For the different activity standard already provides a data element & domain and domain value table where different activity are already provided. Huts check this in Tx- SE11 .

3


4


5


Values maintained for the ACTVT field.

6


Well, up to this point we created a data element with domain having 3 fixed values for 3 different scenarios and already sap provides one data element ACTIV_AUTH for the activity purpose. Next step is to create authorization field.

Execute Tx- SU20.

7


Look for the field – ACTVT and double click on it.

8


Well it refers to the table TACT for the values. Execute it.

9


Here are the values.

10


So one of the authorization field – ACTVT for the different activity purpose is already available. Now we have to create one more authorization field for the different business purpose. Select the Create button.

11


The below screen appears.

12


Provide the Filed name and provide the already created data element and press Enter key.

13


The values would be taken from the domain fixed values you can see from under the Maintenance Dialog for Authorization Values. Save and go back. Here currently this authorization field is not used in any authorization object. So the section is blank now.

14


Well we have two authorization fields- 1. ZDEMO_AUTH and 2. ACTVT fields are available.

15


Next step is to create Object class and authorization object inside object class.

Go to Tx- SU21.

16


If you see any object class, it can contain many authorization objects.

17


From Create button, first select object Class.

18


The below screen appears.

19


Provide a object class name & description and Save.

20


Creation of object class is over.

21


Now let’s create authorization object.

22


The below screen appears.

23


Provide the object name, description and already created class name and select Continue button.

24


Now the authorization field section is editable.

25


Add the two authorization fields and select Save button.

26


Remove the  SAP New Authorizations and save.

27.jpg

 


Click on Continue.

28.jpg

 


Select button Permitted Activities button.

29.jpg

 


The below screen appears.

30.jpg

 


You can select as many activities and click on save. For demo we want to just check the Display authorization. [ As we select Permitted activities, it only allows to set the  values for the ACTVT field, for other field we can set the value during the authorization object assign to the role ]

31.jpg

 


Click on Save.

32.jpg

 


Select Continue.

33

 


Select the close button.

34.jpg

 

 


Authorization object creation is over.

35


If you go to Tx- SU20 and open the authorization field, thr authorization object is assigned to it.

36


Program that checks  authorization object for display activity on the sales object & delivery object.

37


38


Here the authorization check is failed.

39


The next step is to create a role in Tx-PFCG and assign the authorization object to the role and generating the profiles and finally assigning the ROLE to the user in Tx- SU01


 

One comment

  1. Hi,
    Very detailed explanation, good work,

    Please share the next tutorial link to:

    “Create a role in Tx-PFCG and assign the authorization object to the role and generating the profiles and finally assigning the ROLE to the user in Tx- SU01”.

    Thank you!

    Like

Leave a Reply