Role maintenance (transaction PFCG, formerly also called Profile Generator) simplifies the creation of authorizations and their assignment to users. As the figure Role Maintenance shows, in PFCG, transactions that belong together from the company's point of view are selected. Role maintenance automatically creates authorizations with the required field values for the authorization objects that are checked in the selected transactions.
A role can be assigned to a number of different users. Changes to a role therefore have an effect on multiple users. Users can be assigned various roles.
As the figure Menu Layout shows, the user menu comprises the role menu(s) and contains the entries (startable applications, URLs, reports, and so on) that are assigned to the user through the roles.
To edit the menu of a role in PFCG, enter the name of the role and choose the icon for Create or Change. Choose the Menu tab page.
Here you can select and change functions: The menu tree can be adjusted for the individual roles as required.
You can insert startable applications such as transactions, Web Dynpo Applications or SAP Fiori objects (for example, catalogs or groups) in the tree structure and delete existing entries.
If you choose Report in the dropdown menu for inserting, you can also integrate reports. In this case, Role Maintenance creates transaction codes (if they do not already exist) with which the reports can be called.
If you choose the function Web address or file in the dropdown menu of the Insert Node button, you can add Internet addresses or links to files (such as tables or text files). When integrating files, you must use the storage paths instead of URLs. You can also specify SAP Business Warehouse web reports and links to external mail systems and Knowledge Warehouse.
The authorizations for SAP Fiori applications are also created using the Role Maintenance. You can maintain authorizations for SAP Fiori Catalogs, SAP Fiori Groups and starting with SAP S/4HANA 2020 also for SAP Fiori Spaces by choosing the option SAP Fiori Launchpad in the dropdown menu of the Transaction button.
Note
The content model and the authorization model are explained further in this lesson. However, new SAP Fiori Launchpad objects 'spaces' and 'pages' are not discussed in this course.
You can also change menus by creating, moving, deleting, or renaming directories and subdirectories as required. You can use the drag and drop function in role maintenance.
Role Maintenanceautomatically creates the authorizations that are associated with the transactions specified in the menu tree. However, all authorization values must be manually checked and adjusted if required in accordance with the actual requirements and authorities. The system administrator is responsible for this task, together with the appropriate user department. When using organizational levels, you do not carry out maintenance directly in the field, but by means of the Organizational levels... button.
As shown in the figure Generating Authorization Profiles, you choose the Authorizations tab page and then Display Authorization Data or Change Authorization Data, depending on the maintenance mode. Check the scope and contents of the authorizations.
If there are system proposals, a green traffic light in the authorization overview indicates that Role Maintenance has supplied at least one proposal for each authorization field. A yellow traffic light indicates that the authorization must be maintained manually after it has been created. Role Maintenance does not provide a default value for the authorization. In the example shown above, which deals with user maintenance with respect to user groups, Role Maintenance offers no suggestion about which user groups should be maintained by a user that will be assigned to this role.
Some fields appear in many authorizations. A number of important fields have therefore been combined into organizational levels, such as the company code. When you maintain an entry for the organizational level using the Organizational levels... button, you maintain all the fields that appear there at the same time. A red traffic light indicates, therefore, an unmaintained organizational level.
Once all authorizations are maintained as required, the authorization profile can be generated by choosing Generate. After creation, the profile name cannot be changed. The authorizations are grouped together in profiles. The profiles must be entered in the user master record (by role maintenance) for the authorizations to take effect for the user. This is called User Comparison.
Note
The second character of the profile name must not be an underscore (_). See SAP Note 16466 – Customer name range for SAP objects.After creation, the profile name cannot be changed. The authorizations are grouped together in profiles. The profiles must be entered in the user master record (by role maintenance) for the authorizations to take effect for the user. This is called User Comparison.