Application Development Blog Posts
Learn and share on deeper, cross technology development topics such as integration and connectivity, automation, cloud extensibility, developing at scale, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 
emanuel_klenner
Active Participant
Would you like to know what has changed in SAP S/4HANA on premise release 2021 vs. release 2020 as far as development objects are concerned? Or would you like to compare the source code in your development box with the code that is running on your production system?

If yes, you might be familiar with the existing repository comparison tool that can be started via transaction SREPO.



Initial Screen of Transaction SREPO


However, I don't want to talk about this transaction here. Instead I would like to introduce you to the new transaction PMMO_RELCMP (release/system comparison tool). This transaction takes a slightly different approach to the comparison functionality but also integrates the features of the SREPO tool.


Initial Screen of Transaction PMMO_RELCMP


The object selection is based upon the object types that can be found in the global object directory (table TADIR), e.g.



















CLAS ABAP Object Class
FUGR Function Group
TABL DB table or dictionary structure
PROG ABAP Report

Classes, Function Groups and Tables are considered most important, hence they get some additional selection criteria.

The default is set to CLAS and package PMMO*, since the tool was developed with a focus on the subclass enhancement features of the Project Manufacturing Management and Optimization (PMMO) application. However, the tool works for all applications, regardless of that focus.

You need to specify an RFC destination of type ABAP, as defined in transaction SM59.
The system that you are comparing against must have the function group PMMO_REL_CMP installed. This is only available starting with SAP S/4HANA on premise release 2020. See SAP note 3062899 for more info.

The user in the current and the remote system must have display authorization (ACTVT = '03') for the objects that are being selected by the tool. The authorization object that is checked is: S_DEVELOP.


Report Output



Legend for Used Icons


The result list shows if an object exists only in the current system (new object) in both systems or only in the comparison system (object deleted in current system).

Further comparisons (code, table, structure) are possible via the compare icons for a class, method, function group, report or table.

The system supports navigation to the object in the current system, the comparison system or the package of the object in the current system.

Hint: In order to see the possible navigation targets underlined in the list, you have to activate the following SAP GUI setting:


SAP GUI Options Setting



 

Let's explore some features related to one particular class:


Class CL_PMMO_APPLICATION_LOG_BASE



Result with extended selection for attributes and parameters


We can see from the list that the attribute GV_LOG_IN_MEMORY was added in the current release. It did not exist in the comparison release.

Likewise, the method GET_LOG_MESSAGES with the parameter RT_MESSAGES was added in the current release.

Now we select the comparison icon for the method AUTHORITY_CHECK:


Trigger Comparison



SE39 Class Method Comparison


A class method comparison via transaction SE39 was carried out and the results are displayed.

If we select the comparison icon on the class level, the beforementioned integration with the SREPO tool is triggered.



SREPO integration



SREPO comparison result


From here additional comparison/display functions are available via double click on a line
or selecting a function from the GUI status bar.

Here is an example for a display of database tables:


Database table selection



List Output


Selecting the comparison function on the table level leads us to the SREPO tool again:


SREPO Output


A double click on the highlighted line gives us this result:


Version Comparison Result


One field was deleted from the table and one new field was added.

Last but not least, let's have a look at the function groups:


Function Group Selections



List Output


In SAP S/4HANA on premise release 2021 only a comparison at function group level is possible. With release 2022, a comparison on function module level has been added but this can also be achieved in the 2021 release by starting the function group comparison first:


SREPO Comparison Results


Double click on the highlighted line:


Function Module Comparison


The tool can also be used simply as an object navigator without the comparison functionality. In this case, the RFC destination field will be removed from the selection screen:


Object Navigator without Comparison Feature



Result List


I hope you find this tool useful to find out what has changed in different systems or different releases.

Here is a link to a nice little video showing you the functionality outlined above.