We can use the role maintenance to manage roles and authorization data. The tool for role maintenance, the Profile Generator automatically creates authorization data based on selected menu functions. These are then presented for fine-tuning.
The role maintenance functions support you in performing your task by automating various processes and allowing you more flexibility in your authorization plan. You can also use the central user administration functions to centrally maintain the roles delivered by SAP or your own, new roles, and to assign the roles to any number of users.
With the roles, you assign to your users the user menu that is displayed after they log on to the SAP System. Roles also contain the authorizations with which users can access the transactions, reports, Web-based applications, and so on that are contained in the menu.
Single Role Creation:-
In the role maintenance you can:
- Changing and Assigning Roles
- Creating Roles
- Creating Composite Roles
- Transporting and Distributing Roles
1)Changing and Assigning Role
1. Choose the pushbutton Create role or the transaction PFCG in the initial transaction SAP Easy Access.
2. Enter the name of the delivered standard role in the Role field .
3. Copy the standard role by choosing Copy role and enter a name from the customer namespace.
Do not change the delivered standard roles (SAP_), but rather only the copies of these roles (Z_). Otherwise, the standard roles that you have modified will be overwritten by newly delivered standard roles during a later upgrade or release change.
4. Choose Change (the new name is in the Role field).
5. You can change the user menu on the Menutab page. You can reduce, extend or restructure it.
6. On the Authorizations tab choose Change authorization data.
7. Maintain the authorization field values as required. To adjust the authorizations for the menu changes, choose the Profile generation expert modepushbutton on the Authorizations tab and thenRead old version and adjust to new data.
8. Generate the profile for the role.
9. Assign users on the User tab page and compare users if necessary.The users must already exist in the system before you can assign them.
2) Creating Roles
1. To start role maintenance, either choose Create Role in the SAP Easy Access transaction die or Tools ? Administration ? User Maintenance?Role Administration? Roles (transaction PFCG).
2. Enter the name of the role. Roles delivered by SAP start with the prefix “SAP_”. For your own user roles, instead of using the SAP namespace, use the customer namespace. This means that the prefix is “Y_” or “Z_”. You cannot tell from the names of the delivered roles whether they are single or composite roles. You should therefore create a naming convention for your roles so that you can differentiate between single and composite roles.
3. Choose Create.
4. You can assign transactions, reports, and Web addresses to the role on the Menutab page
5. To generate the profile for the role, choose Change Authorization Data on the Authorizations tab page.
An input window may appear, depending on which activities you selected You are prompted to enter the organizational levels. Organizational levels are authorization fields which occur in a lot of authorizations (an organizational level is, for example, a company code). If you enter a particular value in the dialog box, die authorization fields of the role are maintained automatically.The authorizations which are proposed automatically for the selected activities of the role are displayed in the following screen. Some authorization have default values.
Wherever traffic lights appear in the tree display, you must adjust the authorization values manually. You can maintain the authorization values by expanding the object classes and clicking on the white fields to the right of the authorization field name.
When you have maintained the values, the authorizations count as manually modified and are not overwritten when you copy more activities into the role and edit the authorizations again. You can assign the complete authorization
for the hierarchy level for all non-maintained fields by clicking on the traffic lights.
Wherever there are red traffic lights, there are organizational levels with no values. You can enter and change organizational levels with Org. levels.
If you want other functions in the tree display, such as copying or collecting authorizations, you can show them with Utilities ? Settings.
a. Generate an authorization profile for the authorizations. To do this, Choose Generate.You are prompted for an authorization profile name. A valid name in the customer namespace is proposed.
b. Leave the tree display after the profile generation.
If you change the menu and then call the tree display for the authorizations again, the authorizations of the new activities are mixed with those for the existing authorizations. There may then be a few yellow traffic lights, because there are authorizations in the tree that are incompletely defined. You must either manually assign values to these, or if you do not want to do this, delete them. To delete an authorization, deactivate it first and then delete it.
6. You can also assign users to the role immediately.
7. Save your entries.







