SAP Roles and Permissions - SAP Training and Coaching (2024)

SAP Roles and Permissions - SAP Training and Coaching (1)

Since SAP is a single software application used by many employees in a company, SAP role and authorization management is essential for a sound and efficient use.

Depending on the department in which the user works, or the hierarchical level at which he/she is located, the roles and authorizations of the latter will be different, but above all adapted to his/her daily tasks.

In this article, we will see together what is a role and the access to the functionalities it allows/does not allow, how to manage it and also how to assign it to a user. Then, we will develop together how to analyze and correct user authorization problems.

What is an SAP role?

To begin with, an SAP role allows you to define the authorizations of one or more users.

In addition, an SAP role can be identified by three axes:

  • One or more functional transactions
  • One or more authorization objects
  • Or the combination of both

The SAP functional transaction provides access to the launch of a functionality, which can be standard or specific.

The authorization object allows access to certain specific data. Let's take the example of a list of production orders from two factories belonging to the same company. The authorization object could, for example, restrict access to the production orders of only one factory.

In addition, SAP distinguishes between two different types of roles: the individual role and the composite role.

Individual role

The individual role corresponds to the first level, the base of the roles. It allows the collection of several functional transactions and/or authorization objects within it.

Composite role

The composite role simply represents a role that combines several individual roles. The management of authorizations is, therefore, simpler and faster.

Each has its advantages and disadvantages. Depending on the situation, in some cases it will be preferable to use an individual role, in others a composite role.

Note: once the role has been created, there is no longer the possibility of converting an individual role into a composite role, or vice versa. However, it will still be possible to modify its contents.

Assignment of roles

Once the roles are defined, it is necessary to assign them to the users according to their profiles. Each user can have one or more roles (individual role or composite role).

This happens at the user master record level. Indeed, to assign roles, use the functional transaction SU01:

SAP Roles and Permissions - SAP Training and Coaching (2)

Note that it is also possible to assign roles to a user temporarily by indicating a start and end date.

Note: In the vast majority of companies, a process for adding SAP roles is provided. Therefore, please carefully follow the process (if any) set up by the company.

In addition, it is also possible to assign roles in mass to several users via standard tools such as LSMW, SHDBECATT etc...

SAP role and authorization management

Indeed, since SAP role and authorization management is a critical part of a company's processes, it is usually managed by a dedicated administrator.

The management of individual roles is done via the functional transaction PFCG. Moreover, it can be split into three main parts (Menu, Authorizations and User):

  • Menu
  • Authorizations
  • User

In the "Menu" tab, you will find the list of transactions that the role makes accessible. It is also possible to manage the tree structure with the creation of folders, subfolders...

In the "Authorizations" tab, you will find the associated authorization objects and their values. The values of the configured authorization objects will therefore be accessible via the role in question.

Finally, the third important tab is the "User" tab. This is where the administrator can assign the role to certain users. This possibility comes in addition to the one seen previously (role assignment via the user management SU01 feature).

Composite role management is somewhat different given its main purpose: to group together existing individual roles.

The transport of the roles

Once the roles have been created, they must be made active. It is important to note that roles are transported from one system to another. Therefore, they are first created in the development system, then transported to the test system and finally to the production system.

The transport of roles is also done via the functional transaction PFCG. There are two possibilities: transporting one role at a time or transporting several roles en masse. Once the transport functionality is executed, the request is created and can be transported, as in the case of a customizing "classic".

SAP roles and authorizations errors

Many users have already faced this message:

SAP Roles and Permissions - SAP Training and Coaching (3)

Indeed, this message, rather explicit, indicates that the user does not have the necessary role to access the functionality proposed by the functional transaction entered.

Or this one:

SAP Roles and Permissions - SAP Training and Coaching (4)

In addition, this message means that the operation performed within a transaction is not authorized for the user concerned. Let's take the case of company X, with two production sites S1 and S2. The purchasing department employee of production site S1 can access the functional transaction of the order list, but can also be restricted to those of S1 only.

In both cases, it is an error in SAP roles and/or authorizations. It is possible that this blocking message is voluntary or not. If it is voluntary, it means that the user's function or position does not allow access to the desired functionality. If it is voluntary, it may be due to an error made by the SAP administrator when assigning roles, or due to a change in function that was not taken into account. Indeed, the roles remain statically assigned to the user. Any change must be done manually.

How to analyze an authorization error?

If the user is faced with an authorization error message and it is not justified, an analysis is required.

This will allow you to understand what is blocking and thus, determine with ease the missing roles and/or authorization objects.

Therefore, once the user stalls on the error message, the user can initiate the functional transaction SU53: Display authorization data. It may look like this in the context of an authorization error:

SAP Roles and Permissions - SAP Training and Coaching (5)

This explicitly states which authorizations are missing. The SAP administrator is then able to use different tools (e.g. functional transaction SUIM) to determine the missing role(s) that include these authorizations.

How do I get around an authorization error?

If you have the authorizations assigned to SAP consultants, then you are able to bypass an authorization error. This is made possible by debugging.

The first step is to start the SE37 functional transaction and run the AUTH_CHECK_TCODE Function Module.

SAP Roles and Permissions - SAP Training and Coaching (6)

Then add a breakpoint at the line "if sy-subrc = 0":

SAP Roles and Permissions - SAP Training and Coaching (7)

If the variable sy-subrc = 0, in this case there is no authorization error. If, on the other hand, sy-subrc is different from 0, then there is an authorization error. And it is precisely this condition that interests us.

Change the value of the sy-subrc variable to 0 and run:

SAP Roles and Permissions - SAP Training and Coaching (8)

Access to the functionality is thus possible and the bypassing of the error message has taken place. However, this somewhat "illegal" technique only works temporarily and is not permanent. It should only be used in case of urgent need.

Would you like unlimited access to our entire SAP training library? Test our training platform free of charge for a 7-day trial period.

I DISCOVER

SAP Roles and Permissions - SAP Training and Coaching (9)

Pierre Balbinot

SAP functional consultant, EAM (Enterprise Asset Management) and PP (Production Planning) expert.

Articles similaires

SAP Roles and Permissions - SAP Training and Coaching (2024)

FAQs

What are the roles and responsibilities of SAP? ›

Key deliverables for the Partner (SAP services) include: Project Initiation, Fit to Standard Preparation, Preparing Custom Code, Operations Planning, User Interface Design, User Access and Security, Test Planning, Solution Configuration, Data Migration, Integration Implementation, among many joint deliverables.

What are the three main components of a SAP role? ›

Features
  • Organizational Role. This is a role to which organizational data is assigned. ...
  • Vehicle Model Role. This is a role to which vehicle models are assigned. ...
  • Configuration role. This is a role that is assigned to a configuration change profile .

What are SAP standard roles? ›

The SAP Allocation Management application requires a layered system landscape. As an allocator or allocation administrator, you must have the necessary users, roles and authorizations in all of the layers of the SAP Allocation Management application.

How many types of roles are there in SAP? ›

There are basically two types of Roles: Master Roles – With Transactions, Authorization Objects and with all organizational level management. Derived Roles –With organizational level management and Transactions and Authorization Object copied from Master Role.

What are roles and permissions SAP? ›

Roles are collections of permissions that allow you control the features you make available to selected users. Permissions are authorizations that can be granted to give access to resources, or individual objects in SAP Analytics Cloud.

What are the roles and responsibilities of SAP trainee? ›

Support research, analysis and problem solving using a variety of tools and techniques. Produce high quality work which adheres to the relevant professional standards. Keep up-to-date with technical developments for area of specialism. Handle, manipulate and analyse data and information responsibly.

What is the difference between SAP roles and profiles? ›

Profile is the technical set of auth objects and values that oganise the access in SAP. Role is the information in the Profile Generator that is needed to build the profile. Role is also the thing you assign to a user to arrange access.

What is the difference between roles and profiles in SAP? ›

A profile is a container of authorizations

A role is a container consisting of three parts: menu, authorizations, and user assignment.

What are the 2 main modules in SAP? ›

There are 2 Types of SAP ERP system Modules: Functional Modules and Technical Modules. All SAP Modules integrate with each other with functionality and provide the best solution for a Business.

How do I get all roles in SAP? ›

I want o download all the roles individually in SAP. Use PFCG >Role >Download option for downloading one role or PFCG >Utilities >Mass download (or use program PFCG_MASS_DOWNLOAD) in case more than one role needs to be downloaded.

How do I see all roles in SAP? ›

Procedure
  1. Start the profile generator (transaction PFCG).
  2. Specify a role. More information: Roles and Authorizations.
  3. Choose Display.
  4. Go to the Authorizations tab.
  5. Choose Display Authorization Data. The authorization objects are displayed.
  6. Check whether the role is the latest version.

How do you maintain roles in SAP? ›

Process Flow
  1. Assign the job descriptions to transactions. ...
  2. Maintain activity groups or roles with the role maintenance and the Profile Generator (transaction PFCG). ...
  3. Generate and maintain authorization profiles. ...
  4. Assign users. ...
  5. Update the user master records.

What is SAP role and types? ›

The role types are categorized as either technical roles or business roles. Technical roles are roles that physically exist on the back-end system. You assign a technical role to a user to grant them authorization and access to the back-end system that contains the role.

What are the 5 types of users in SAP? ›

There are five main types of users in SAP, including:
  • 1) Dialog User. Dialog users are used for all logon types and provide interactive system access from the SAP Graphical User Interface (GUI). ...
  • 2) System User. ...
  • 3) Service User. ...
  • 4) Communication User. ...
  • 5) Reference User.
Dec 22, 2023

What are the three levels of SAP? ›

SAP certification is divided into three levels: Associate, Specialist, and Professional. Each level is designed to cater to different skill sets and experience levels.

What are the 3 main types of data in SAP? ›

Data types can be divided into elementary, reference, and complex types. These are data types of fixed or variable length that are not made up of other types.

What are the key components in SAP? ›

The basic components are used in the trees and branches of the following:
  • Rate Components.
  • Charging Components.
  • Refill Components.
  • Trigger Components.
  • Pricing Macros.

What are the 3 layers of SAP architecture? ›

What is 3 Tier Architecture in SAP?
  • 1) Presentation Layer. ...
  • 2) Application Layer. ...
  • 3) Database Layer. ...
  • AS Java. ...
  • AS ABAP. ...
  • Web Server.
Aug 1, 2023

Top Articles
Latest Posts
Article information

Author: Geoffrey Lueilwitz

Last Updated:

Views: 6000

Rating: 5 / 5 (80 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Geoffrey Lueilwitz

Birthday: 1997-03-23

Address: 74183 Thomas Course, Port Micheal, OK 55446-1529

Phone: +13408645881558

Job: Global Representative

Hobby: Sailing, Vehicle restoration, Rowing, Ghost hunting, Scrapbooking, Rugby, Board sports

Introduction: My name is Geoffrey Lueilwitz, I am a zealous, encouraging, sparkling, enchanting, graceful, faithful, nice person who loves writing and wants to share my knowledge and understanding with you.