Transporting Authorization Components

Objective

After completing this lesson, you will be able to transport the SAP business roles and data.

Options for Transporting Authorization Components

User data and authorization data must be exchanged in system landscapes with multiple SAP systems. The data is either exchanged between different clients of an SAP system or between clients of different SAP systems.

In principle, the SAP authorization concept differentiates between the transport components described here.

Which Authorization Components Can Be Transported?

  • User master records

  • Roles

  • Authorization profiles

  • Authorization default values

Authorization profiles can be transported together with their roles. Working with authorization profiles without an assigned role should remain the exception. The transport connection of transaction SU02 for maintaining authorization profiles is only mentioned here for completeness and is not discussed further.

Illustration on transporting User Master Records.

User master records can be maintained centrally in one client of a system. If a new client is built, it can initially be filled with the user master records of the maintenance client. Client management transactions can be found under the menu path: ToolsAdministrationAdministrationClient Management....

Local Client Copy

If a new client is filled with data from another client of the same SAP system, this copy process is called a local client copy. Since the data of both clients is stored in the same database, it is not necessary to transport the data using the network or the operating system. The local client copy is started with transaction SCCL or in the client management with ...Client CopyLocal Copy.

Hint

Schedule the transport as a background job during the night. This helps to avoid data inconsistencies.

Client Copy Between Systems

If a new client is filled with data from another SAP system, it can be copied with a client transport (1) or as a remote client copy (2).

  1. The client transport exchanges its data with a data export at the operating system level. Transaction SCC8 can be started in the client management by choosing ...Client TransportClient Export.

  2. In a remote client copy, the data is copied over the network and not as a file. Transaction SCC9 can be found in the client management under ...Client CopyRemote Copy.

Caution

Prior to each client copy, the data areas to be copied are deleted in the target client.

Only the complete user master, and not individual users, can be copied. Roles are also copied when you copy Customizing data.

Hint

User master records can also be distributed using Central User Administration. In this case, it is possible to distribute individual users.

Transport roles: With and without profile information, with and without user assignments, in a CUA landscape or without CUA

Roles Without Central User Administration

SAP roles are available in all systems and are not transported. If roles that you developed yourself are to be transported between clients or SAP systems, you must differentiate between situations where Central User Administration is implemented, and those in which it is not.

Illustration on transporting roles without Central User Authorization.

If you are not using Central User Administration, roles can be transported with user assignments. The transport is started with a Customizing request, which you can create in Role Maintenance by choosing UtilitiesMass Transport. The transport request is either imported into another SAP system with the Transport Management System or into another client of the same SAP system using transaction SCC1. The user master records of the target client must be compared after the import. You can do this manually from Role Maintenance by choosing UtilitiesMass Comparison or periodically in the background (PFCG_TIME_DEPENDENCY). You can also create the background job there.

By default, authorization profiles are transported with roles. If this is not desired, you must prevent the data export in the source system with the control entry (PROFILE_TRANSPORT:=NO) in table PRGN_CUST. The table entry can be made using maintenance transaction SM30.

Caution

If the Customizing entry "NO" is set, you must generate the profiles in the target system using a mass generation before performing a user master comparison. Transaction code SUPC.

You can start the mass generation in Role Maintenance by choosing UtilitiesMass Generation.

Transporting Roles with User Assignment

If you do not want to transport the user assignments to roles, you can protect the target system with an import lock. To do this, the control table PRGN_CUST must contain the entry (USER_REL_IMPORT:=NO).

Caution

If you transport user assignments, the entire user assignment for the role in the target system is replaced. Existing connections to this role are removed.

You must also perform a user master comparison for all affected roles in the target system after the import.

Roles with Central User Administration

Illustration on transporting roles without Central User Authorization.

Roles must also exist in the systems in which they are assigned to users within the Central User Administration. If systems are assigned to a Central User Administration, roles must be transported without user assignment since these assignments are made in and distributed from the central system. If user assignments were transported, there would be a temporary inconsistency between the actual state of the system and its subsystems. The imported assignments are deleted without being copied to the central system the next time there is a distribution. For security reasons, the import lock for user assignments therefore should be set for systems within the Central User Administration ("SM30", PRGN_CUST, USER_REL_IMPORT := NO).

A Customizing request for roles is created analogously to the scenario without Central User Administration. The authorization profiles are also transported in the same way.

Uploading and Downloading Roles

Normally, it is only possible to exchange data with transport requests between SAP systems with the same release status. For example, if roles have to be exchanged within the Central User Administration across releases, this can be done by downloading or uploading roles, if necessary.

Hint

When you download the data, it is all stored in a local file, with the exception of the generated authorization profiles and the user assignments.

After an upload, the role may have to be edited and generated. You can choose to upload or download in Role Maintenance by choosing RoleUpload/Download. You can save multiple roles in a local file at the same time by choosing UtilitiesMass download.

Transporting the Authorization Default Values

Illustration on transporting roles with Central User Administration.

The customer tables USOBX_C andUSOBT_C, which control the behavior of Role Maintenance, must be filled in each system in which Role Maintenance is used.

If these tables are adjusted to the customer's needs, they can then be transported as a whole. This means that you transport all the settings for the authorization checks, authorization default values, and the corresponding field values.

  1. The transport link can be found under step 3 of transaction SU25, which must be executed when you activate Role Maintenance.

  2. You can use transaction SU24 to change individual authorization default values. In this case, the system automatically and immediately creates a transport request.

In both cases, a transport request is transported and distributed to other SAP systems in the context of the Transport Management System.

Caution

During the transport, all of the authorization default values and field values in the target system are replaced.

Practice System Exercise: Transport Authorization Components

Note

If you have access to a practice system, you can now execute this exercise.

Business Example

On a daily basis, authorizations are created or changed or default values of the Role Maintenance are adjusted. These settings must be transported. This exercise addresses and runs through a few examples on the topic of transport.

Task 1: Transport of User Assignments with the Roles

You want to ensure that any user assignment that exists is never evaluated in your system by a transport request for a role.

Steps

  1. Where must you set the import lock?

    ______________________________________________________

    Result

    You must use transaction SM30 to set the lock in table PRGN_CUST with the entry user_rel_import := NO.
  2. What would happen if the transport request had user assignments and no import lock had been set up?

    ______________________________________________________

    ______________________________________________________

    ______________________________________________________

    ______________________________________________________

    ______________________________________________________

    Result

    If you transport the user assignments with the roles, the user assignments for the roles in the target system are completely replaced by those from the transport request.

    Caution

    As part of this, existing connections to users that are not contained in the transport request are also deleted.

Task 2: Create a Transport Request for a Specified Role

Create a transport request for the role ADM940_SD_SALES.

Steps

  1. Open the role maintenance transaction and select the role ADM940_SD_SALES. Create a transport request for the specified role (without user assignment). To do this, use the Own Requests button and choose the request from which your user is assigned.

    1. SAP Menu:

      ToolsAdministrationUser MaintenanceRole AdministrationRoles (transaction code PFCG).

    2. Enter the name for the role ADM940_SD_SALES in the Role field.

    3. Choose Transport Role (Ctrl+Shift+F9).

    4. Which objects can be transported with the role during the transport?

      ______________________________________________________

      ______________________________________________________

      ______________________________________________________

    5. Select Generated Profiles of Single Roles.

    6. Choose Execute (F8).

    7. Choose the Own Requests (F7) icon.

    8. Choose the Create Request (F6) icon.

    9. Enter GR## Role Transport Test in the Short Description icon.

    10. Choose Save (Enter).

    11. Select the transport request in the list.

    12. Choose Choose (F2).

    13. Choose Continue (Enter).

    14. Choose Back (F3) twice to return to the Role Maintenance screen.

Log in to track your progress & complete quizzes