Saturday, 8 January 2022

SAP S/4HANA 2021 Release: System Comparison Tool

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.

SAP ABAP, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Preparation, SAP ABAP Career, SAP ABAP Learning, SAP ABAP Tutorial and Materials, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Certification, ABAP Development
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.

SAP ABAP, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Preparation, SAP ABAP Career, SAP ABAP Learning, SAP ABAP Tutorial and Materials, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Certification, ABAP Development
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.

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.

SAP ABAP, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Preparation, SAP ABAP Career, SAP ABAP Learning, SAP ABAP Tutorial and Materials, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Certification, ABAP Development
Report Output

SAP ABAP, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Preparation, SAP ABAP Career, SAP ABAP Learning, SAP ABAP Tutorial and Materials, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Certification, ABAP Development
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 ABAP, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Preparation, SAP ABAP Career, SAP ABAP Learning, SAP ABAP Tutorial and Materials, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Certification, ABAP Development
SAP GUI Options Setting

SAP ABAP, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Preparation, SAP ABAP Career, SAP ABAP Learning, SAP ABAP Tutorial and Materials, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Certification, ABAP Development

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

SAP ABAP, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Preparation, SAP ABAP Career, SAP ABAP Learning, SAP ABAP Tutorial and Materials, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Certification, ABAP Development
Class CL_PMMO_APPLICATION_LOG_BASE

SAP ABAP, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Preparation, SAP ABAP Career, SAP ABAP Learning, SAP ABAP Tutorial and Materials, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Certification, ABAP Development
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:

SAP ABAP, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Preparation, SAP ABAP Career, SAP ABAP Learning, SAP ABAP Tutorial and Materials, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Certification, ABAP Development
Trigger Comparison

SAP ABAP, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Preparation, SAP ABAP Career, SAP ABAP Learning, SAP ABAP Tutorial and Materials, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Certification, ABAP Development
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.

SAP ABAP, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Preparation, SAP ABAP Career, SAP ABAP Learning, SAP ABAP Tutorial and Materials, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Certification, ABAP Development
SREPO integration

SAP ABAP, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Preparation, SAP ABAP Career, SAP ABAP Learning, SAP ABAP Tutorial and Materials, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Certification, ABAP Development
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:

SAP ABAP, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Preparation, SAP ABAP Career, SAP ABAP Learning, SAP ABAP Tutorial and Materials, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Certification, ABAP Development
Database table selection

SAP ABAP, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Preparation, SAP ABAP Career, SAP ABAP Learning, SAP ABAP Tutorial and Materials, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Certification, ABAP Development
List Output

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

SAP ABAP, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Preparation, SAP ABAP Career, SAP ABAP Learning, SAP ABAP Tutorial and Materials, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Certification, ABAP Development
SREPO Output

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

SAP ABAP, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Preparation, SAP ABAP Career, SAP ABAP Learning, SAP ABAP Tutorial and Materials, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Certification, ABAP Development
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:

SAP ABAP, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Preparation, SAP ABAP Career, SAP ABAP Learning, SAP ABAP Tutorial and Materials, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Certification, ABAP Development
Function Group Selections

SAP ABAP, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Preparation, SAP ABAP Career, SAP ABAP Learning, SAP ABAP Tutorial and Materials, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Certification, ABAP Development
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:

SAP ABAP, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Preparation, SAP ABAP Career, SAP ABAP Learning, SAP ABAP Tutorial and Materials, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Certification, ABAP Development
SREPO Comparison Results

Double click on the highlighted line:

SAP ABAP, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Preparation, SAP ABAP Career, SAP ABAP Learning, SAP ABAP Tutorial and Materials, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Certification, ABAP Development
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:

SAP ABAP, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Preparation, SAP ABAP Career, SAP ABAP Learning, SAP ABAP Tutorial and Materials, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Certification, ABAP Development
Object Navigator without Comparison Feature

SAP ABAP, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Preparation, SAP ABAP Career, SAP ABAP Learning, SAP ABAP Tutorial and Materials, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Certification, ABAP Development
Result List

Source: sap.com

No comments:

Post a Comment