loading

How to automatically compare workbench objects between different SAP systems?

Introduction

In this article, I will show you how you can in easy and almost automate way compare objects between different SAP systems.

Why should I care about objects comparison between different SAP systems?

Have you ever had to perform retrofit activities between two or more systems? I hope you can agree, that on the one hand, this is a very tedious and repetitive activity, but on the other hand, it is very crucial. Obviously after retrofitting you want to be sure, that on both SAP systems the same objects have the same version and that logic in your code is exactly the same. 

Retrofitting activities are not the only scenario where you compare these objects. Let’s get right to the point on how to speed up the process of comparing objects between SAP instances.

How to compare workbench objects different between different SAP systems?

At the beginning, I compared my objects manually, but after 2 hours I had enough. I started my research and I found a standard SAP report, that immediately became my best friend.

The only prerequisite that you need to in order to use that report is the ABAP RFC connection between the current system and the system that is the subject to comparison.

 

01_ABAP_RFC_Destination_for_automatic_object_comparison

Once you have your RFC connection available, you can start your play with the report: RSSYSCOMP 

When you execute the program you have various options to choose based on which you can compare your objects between two SAP systems.

02_RSSYSCOMP_SAP_Automatic_Object_Comparison_Report

Let me describe the most useful (in my opinion)  options:

  1. RFC Dest. – RFC destination name to the system that will be compared with the system on which you are logged in.
  2. Object from Package – This is my favorite option. Imagine that you have hundreds of transports, but you know that all your objects, programs, classes are in one, specific package. You can provide a package name and the program will compare all objects from the package you provided!
  3. Object from Transport Request/Piece List-  It allows you to provide the specific Transport Number and all workbench objects from this transport will be compared.
  4. Object from User- As the name suggests, this option will check all the objects assigned to the user you have chosen.
  5. Object from Application Component – All the objects from the specific application component will be compared.
  6. Freely Selected Objects – You can provide specific object ID, type and name and only these objects that you directly defined will be compared. I found this option useful when first I checked different packages. Then, from based on the result of comparison I knew that only a few objects were different on two systems.

Let’s see how the comparison works based on the first option (my favorite one 😊), which is a comparison based on the package name. Once you provide RFC destination and package name, you need to click the Create Object Intersection button.

In the first step, the report will collect information about the objects that exist in the current system and the one for which you use the RFC connection. In my case, it compared objects from ED1 and S42 systems, as you can see below.

03_RSSYSCOMP_SAP_Automatic_Package_Comparison

On the left-hand side (1) you can see objects that exist only in the current system, but they don’t exist in the second SAP system. 

On the right-hand side (2) you will have the list of objects that exist in the second SAP system. They don’t exist in the current system. In my case, you can see that table ZMATT_RETRO_0001 doesn’t exist int he current system. Based on the further analysis I can decide if I want to transport this object to the current system, create it manually or leave it as it is.

Finally, in the middle section (3) you will see objects that exist in both systems. You can select all the objects and then click the button Version Comparison. By doing so, the report will compare objects between these two SAP systems automatically! 

As you can see below I have only two objects in my package, but imagine the real-life situation, where you have thousands of objects in a specific package – this can save you a lot of time. You can see the summary with information on how many objects have been compared, how many of them are OK and how many of them differ. I can select here even specific objects and see differences immediately by clicking Object Comparison.

04_RSSYSCOMP_SAP_Automatic_Comparison_Results

Once you do it, you will be redirected to the window that you know pretty well 😉. In my case, I can see that the logic is the same, but the way how it was written differs. Now it’s the time to decide whether we should adjust the version of the report, which version should be adjusted and so on, but this is not the subject of our matter.

05_RSSYSCOMP_SAP_Automatic_Comparison_Results

Summary

Do you find this report useful in terms of massive comparison of the objects on your SAP systems? Maybe you know any other great reports, classes, function modules that speed up different processes?

Let us know in the comment!

 

SAP developer and integration consultant since 2016. Involved in several international projects as ABAP developer, AIF developer and integration consultant. Skilled at a variety of tools and development techniques including OOP in ABAP, Process Observer, Application Interface Framework (AIF), Process Orchestration, BRFplus, Alerts, Proxy, Smartforms, Adobe Forms, SAPscripts, BAdIs, Enhancement Framework, IDocs, ALE and SAP eDocument Framework.Up-to-date and advanced ABAP programming knowledge. Experienced with SAP AIF. Very well organized, focused on the customer and business. Creative thinker, quick to get results.

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact

INT4
ul. Bednarska 1
60-571 Poznan, Poland

 

office(at)int4.com

Write to us