Fix My Code App

The Fix My Code App performs an analysis of your custom ABAP code, using the ‘Fix My Code’ quality scenario to identify source code improvements that may be made when migrating the code to SAP HANA. The code to analyze may be provided in transports, objects, SAP Solution Manger ChaRM change requests, development classes, or as the objects created by one or more developers.

The App produces an ABAP report which has two panes. The current code is displayed in the left-hand pane, and the code with identified source code replacements is displayed in the right-hand pane. The App also produces a Dashboard report and an associated Excel report.

DevOps Categories

Development.

Prerequisites

If a support pack or transport has not been applied to the Analysis system, it must be disassembled before it can be analyzed by the Fix My Code App. This can be done in SAP by running the SAINT transaction and selecting ‘Disassemble OCS Package’ from the Utilities menu. Alternatively, the support pack or transport may be disassembled in LiveCompare using the Package Disassembler App.

This prerequisite does not apply if the App is used to analyze other items, for example, custom objects, development classes or developers.

Running the App

To run the Fix My Code App, select the App from the Apps screen and create an App variant. Complete the variant screen as follows:

  • Set the ‘Analysis System’ field to the RFC Destination for the system that contains the transports, named objects or developers to analyze.
  • If required, edit the ‘Transports’ table to provide a list of transports to be analyzed on the Analysis system.
  • If required, edit the ‘Objects’ table to provide a list of objects to be analyzed on the Analysis system.
  • If required, edit the ‘ChaRM Change Requests’ string list to provide a list of ChaRM change requests to be analyzed on the SAP Solution Manager system.
  • If you wish to analyze one or more ChaRM change requests, set the ‘SAP Solution Manager System’ field to the RFC Destination for your Solution Manager system.
  • If required, edit the ‘Development Classes’ table to provide a list of development classes to be analyzed on the Analysis system.
  • If required, edit the ‘Developers’ table to provide a list of developers to be analyzed on the Analysis system.

Click ‘Run’. When the variant has completed, its results may be accessed from the App Cockpit screen.

App Results

The Fix My Code App generates a Dashboard report, which includes a column chart named ‘Fix My Code’. This chart displays the number of quality rule violations found for each analyzed object.

The Dashboard report also includes links to the following reports.

Fix My Code Report

This ABAP report displays a list of the analyzed objects. Click an object link to display a report for the object which shows its current code in the left-hand pane, and the code with identified source code replacements in the right-hand pane. Click ‘Next Change’ or ‘Prev Change’ if required to scroll through the code differences.

Fix My Code Details

This Excel report includes the following spreadsheets:

Dashboard

This spreadsheet includes a column chart named ‘Fix My Code’, which displays the number of quality rule violations found for each analyzed object.

Details

This spreadsheet lists the number of quality rule violations found for each analyzed object. Click a link in the spreadsheet’s NAME column to display an object’s associated ABAP report.

Analysis Input Data

This Excel report contains a copy of the input parameters used to produce the App’s Dashboard report. The value of each input parameter is stored in a separate worksheet, which is named after the parameter whose value it contains.

Standard Apps