Client Compare and Client Maintenance Tools

Objectives

After completing this lesson, you will be able to:
  • Perform a Client Comparison
  • Outline the idea of client adjustments with respect to Customizing
  • Describe how to compare two repositories

Using Client Compare Tools

When several SAP systems and clients are being implemented, it may be necessary to compare and adjust customizing settings between different SAP systems and clients. The Client compare function enables you to compare and adjust the contents of a table or view in two different clients, using RFC destinations.

You can use the client compare for example to:

  • Compare a client with a reference client, such as a customer-owned client or the SAP delivery client 000. This is especially useful after an SAP system upgrade or a language import, since only client 000 is provided with data from tables belonging to delivery classC.

  • Compare clients during a roll-out scenario. For example, if subsidiaries want to adjust their customizing with respect to the reference customizing of a master client.
  • Compare cross-client customizing before combining different clients into one SAP system in a roll-in scenario. For example, if subsidiaries want to receive customizing changes from the reference client which might be the master client of their parent organization.

Customizing Client Compare with Transaction SCU0

To use the compare function, choose transaction SCU0.

To select the objects to be compared in a client compare, you can use a project-oriented approach using the Project Implementation Guide (Project IMG) to define the objects. You can also select from application components' customizing object lists and from transport requests, or select the objects manually.

To start a client compare, use transaction SCU0 in background processing. From the initial screen, select what the comparison will be based on and choose Create (see the figure above). In the dialog boxes that appear, make the appropriate entries. The client compare can be restricted to, for example, client-specific data.

Transaction SCU0 first displays an overview of the tables belonging to views for the selected IMG, application component or transport request. Next, the comparison itself is performed. The SAP system creates a list of differences and indicates whether these differences are encountered in the table structure or in the table contents (see the figure "Customizing Client Compare – Difference List").

To display the differing table entries, select an object. This enables you to perform a detailed comparison.

Note

The comparison client is generally an external environment, so you must access it through an RFC destination.

Hint

For information on client compares, see also SAP Note 91096 – Table Compare: Info about Cust. Cross System Check.

The result of each comparison run is an overview of existing differences between the log-on client and the comparison client. This overview serves as a starting point for subsequent processing of differences. The comparison runs are stored in a work list or difference list.

Enhancements as of SAP_BASIS 754

Starting with SAP_BASIS 754, the client copy procedures have been changed and enhanced.

To set up a new client by client copy, the structures of all tables to be copied must be identical in the source and the target system. To perform a consistency check, you can perform a cross-table comparison with transaction SCC_COMP_LOCAL (if both clients are based on the same SAP system) or a cross-system check with transaction SCC_COMP_REMOTE. With SAP_BASIS 754 SP 03, the new transaction SCC_COMPARE replaces transactions SCC_COMP_LOCAL and SCC_COMP_REMOTE.

To compare tables, proceed as follows:

  1. Call transaction SCC_COMP_LOCAL / SCC_COMP_REMOTE/SCC_COMPARE.
  2. Enter the clients that you want to compare and an RFC destination (in case of a remote comparison).
  3. Select the tables that you want to compare, such as:
    • Explicit table selection by table name or package.
    • Explicit selection of tables using the time stamp of a previous client copy.
  4. Define the table comparison mode (Simple or Detailed comparison).
  5. Adjust the processing settings, for example, Exclude Known Table Deviations or Split Large Tables.
  6. Specify the number of parallel processes.
  7. Decide whether you want to execute the client copy as batch job (Execute as Tasklist) or start it immediately (Direct Execution).

After running the comparison, you can check the result (see the figure "Data Client Comparison – Result (new)"). The log provides Log Header information, Comparison Results, a list of Compared Tables together with the result of the comparison, Runtime of the Exit-Methods, and the selected Options.

Note

You can access the client comparison result of all runs from transaction SCC3.

Perform a Client Comparison with SCU0

Business Example

In a multi-client SAP system landscape, it can be necessary to compare customizing settings across clients.

Task 1: Perform a Client Comparison with Transaction SCU0

As part of your customizing settings, compare country texts from SAP system S4D, client 200 with SAP system S4D, client 100. The table that contains the country texts is T005T. The corresponding maintenance view is V_T005_BAS (Global Parameters of Countries/Regions (New System)).

Steps

  1. Log on to the S4D system, client 200 with the training user that is provided by your instructor. Compare customizing of S4D, client 200 with S4D, client 100 using transaction SCU0. Compare the customizing in regard of view V_T005_BAS and use the RFC destination that is provided by your instructor.

    1. Log on to SAP system S4D, client 200 with the credentials provided by your instructor and start transaction SCU0.

    2. In the New Comparison Based On area, choose Manual selection and then Create. Enter the Object nameV_T005_BAS and select TypV (for view). Choose Copy.

    3. On the following screen, enter a Description. In the R/3 connection field, select the RFC destination provided by your instructor.

    4. Choose Full Comparison.

    5. On the following screen, select the checkbox next to the V_T005_BAS view and choose Comparison (on the application toolbar).

    6. On the Restrict selection set dialog box, choose No.

      Note

      Depending on the view, you might need to confirm the Verify Fields to be Compared dialog box with Continue (this is not necessary in this case).
    7. On the Overview: Comparison screen, view the result of the comparison, looking for differences. Check the legend using the (More) Legend button on the application toolbar of the result screen.

Perform a Client Comparison with SCC_COMPARE

Business Example

In a multi-client SAP system landscape, it can be necessary to compare the contents of different clients.

Task 1: Perform a Client Comparison with Transaction SCC_COMPARE

As part of your customizing settings, compare the contents of control tables starting with T005 from SAP system S4D, client 200 with SAP system S4D, client 100.

Note

Tables beginning with T005 in their names contain country setting.

Steps

  1. Log on to the S4D system, client 300 with the training user that is provided by your instructor. Compare customizing of S4D, client 200 with S4D, client 100 using transaction SCC_COMPARE. Compare the customizing with regard to tables beginning with T005 in their names.

    1. Log on to SAP system S4D, client 300 with the credentials provided by your instructor and start transaction SCC_COMPARE.

    2. In the Datasource 1 area, select 200 as Client 1.

    3. In the Datasource 2 area, select 100 as Client 2.

      Hint

      As the two clients are both located in the same SAP system S4D, you don't need to enter an RFC destination.
    4. In the Scope area, select Table Selection and, as Database Table(s), enter T005*.

    5. In the Table Comparison Mode area, choose Detailed Comparison (Records).

    6. In the Processing Settings area, leave the settings unchanged, but choose 8 as Number of Parallel Processes.

    7. Choose Direct Execution.

    8. After the comparison run has completed, check the result of the comparison, looking for differences. For this, check the Compared Tables tab of the result screen.

    9. In case of any red entries, feel free to double click on the table name to get more information.

      Note

      You can also check the results with transaction SCC3, on the Comparison tab.

Client Adjustment

For each compared object in a client comparison run, the objects compared are listed along with a Description. The most important information is the status indicators. The comparison status indicates the existence and nature of any differences and is set automatically.

In transaction SCU0, the Processing status allows you to distinguish between the objects that have already been processed, that is, have been made identical in both clients, and those that have not. This kind of processing is also referred to as adjusting the respective object. The processing status is indicated by a traffic light, where red indicates not processed (Open), yellow indicates the objects in both clients are In process of being made identical, and green indicates the completion of this adjustment process (Completed) – see figure "Customizing Client Compare – Difference List" above.

Hint

For an explanation of the possible statuses under Comparison status and Process status, choose the Legend icon.

For a detailed analysis of a comparison run, choose Comparison. This leads to a screen similar to the one shown in the following figure.

You can adjust one object at a time. The objects that can be adjusted are some of the tables and views that can be maintained using transaction SM30. You can also use the SAP Reference IMG (transaction SPRO) or a Project IMG. All other objects can only be compared.

To perform an adjustment, from the Comparison screen of transaction SCU0, choose EditInteract. Copy. The Overview Adjustment screen is displayed, showing the details of the differences between the two clients, record by record. To the left of each record in this adjustment work list there is the comparison status, which indicates whether or not each respective entry in the record exists in the comparison client and the log-on client (see the figure above).

Caution

Be careful when adjusting customizing. Customizing usually is related to other customizing. You can easily create inconsistencies when copying customizing from the source client without caring for related customizing in the target client.

The client option Protection level regarding client copy and client comparison can be set to prevent a client from being overwritten by the client copy or from a client compare and client adjustment. It can also be set to ensure that sensitive data is not viewable from another client during a client compare. Client Maintenance Maintaining customizing settings of one client according to the customizing settings of another client, based on a client compare via RFC.

To set this option, choose transaction SCC4 and select the client in question in change mode. Select a protection level:

Protection level 1: No overwriting

This protection level ensures that the client cannot be overwritten by the client copy tools. This setting should be used if customizing is being performed in this client or the client contains critical settings or data that should not be overwritten.

Protection level 2: No overwriting, no external availability

This protection level also protects the client against overwriting. In addition, it protects the client against read access from another client during a client copy or customizing comparison. This setting should be used if the client contains sensitive data, for example, all production clients should use this setting.

Comparing the Repository

There are several reasons why you might want to compare the repository of two SAP systems. For example, in the one SAP system business processes are working in a different way than in a second SAP system, although the business processes should work the same. You have already compared the corresponding customizing but didn't find the difference. This might be because of differences in the repository.

Another reason for comparing the repository would be that, before performing a remote client copy, you should compare the repository of the source and the target SAP system. If the two repositories differ too much, data will be corrupted after the remote client copy in the target system from point of view of the repository of the target system.

With transaction SREPO, you can compare the repository of two SAP systems. SREPO performs a mass comparison of the repository objects between two SAP systems.

Prerequisites for a comparison are:

  • Both SAP systems must have the same release and SAP Support Package level
  • The package SCTS_COMP_SYS must exist in both SAP systems
  • An RFC destination must be configured (transaction SM59)

You can compare the following sets of objects:

  • Objects from a package
  • Objects in a transport request or piece list
  • Objects of a user
  • Objects in an application component
  • Objects in a name space
  • All customer objects
  • All modified SAP objects
  • Freely selected objects

The comparison is done in two steps (see the figure "Comparing the Repository"):

  1. Intersection is created. The objects are selected and their existence in the two SAP systems is checked.
  2. Versions are compared. The objects are compared.

The object list contains information about the version comparison, with indicators as follows:

  • Green indicates that the object is identical in both SAP systems,
  • Yellow indicates that the objects can't be compared directly. This is because certain objects can't be compared by transaction SREPO.
  • Red indicates that the objects are different.

More details and instructions are available in SAP Note 1529391 – Revision of comparison tool SREPO.

Log in to track your progress & complete quizzes