How to create Role with Transaction codes in Sap


A role in SAP is a collection of activities that a user can perform. These activities are defined by transactions, reports, and web-based applications that the user needs to do their job.


Types of Roles:

  • Single Roles: Contain one set of activities and can be directly assigned to a user.
  • Composite Roles: Group together multiple single roles. Assigning a composite role to a user grants them all the activities contained in each of the single roles.

3. Role Creation:

  • Roles are created and maintained using the SAP transaction code PFCG (Profile Generator).

4. Components of a Role:

  • Menu: Defines the navigation path or the structure of transactions, reports, and web addresses.
  • Authorizations: Defines the access rights for various activities within SAP.
  • User Assignment: Links the role to specific users.   
Enter Tcode PFCG.
It will open Role administration 
 Click on text field to enter role name. here I entered Y:ABZ_FI_FINANCE as role name.
after entering role name click on create role icon.
Click on menu icon.
Click on Transaction to add tcodes. 
click on empty box to enter tcodes
I have entered some finance module Tcodes. Click on assign transactions to add tcodes.
Click on Authorization tab.
click on yellow icon to generate profile name.
Click on change Authorization data.
Click on Full Authorizations and after save it by clicking on save icon.
click on yellow triangle icon 
 
Click on green ticks

OR you can click on top yellow icon to give authorization to all selected modules.
Now our Role is Authorized. Click on Save icon.
Click on red-white circle icon to generate.
Go to user tab and enter Username.
Here I entered my username Arbaz. click on user comparison.
Click on complete comparison. 

After completing user comparison click on save icon to to save the role.
Now your Role is created with user assign.




Comments