The Code Inspector enables you to analyze your customer objects for critical usages of
SAP objects simplified with, for example, SAP S/4HANA. Each finding of the Code
Inspector checks has to be analyzed and potentially adapted to the simplification made in
SAP S/4HANA.
Prerequisites
- To run ad hoc inspections as a developer, you need the authorization for authorization
object S_TCODE with value SCI for field
TCD.
- To define and run re-usable, global system inspections, approve exceptions, and perform
other Quality Manager tasks, you need the authorization for object
S_COV_ADM with value * for field
ACTVT.
Context
You perform the Code Inspector check to investigate the relevant customer objects to be
adopted in order to migrate your custom code to SAP S/4HANA.
Procedure
- To start the Code Inspector, run transaction SCI.
The Code Inspector: Initial Screen is opened.
- To create an object set for the development objects to be analyzed, enter the
name of the object set to be created in the Name input
field of the Object Set section.
- Choose the Create button.
The Code Inspector: Object Set screen
is opened.
- To analyze your objects in your SAP Business Suite system, the following scenarios might be
relevant for you to continue:
- Variant 1: You have already converted your SAP Business Suite system to SAP S/4HANA, then
proceed as follows:
- On the Select Object Set tab, enter the relevant packages in the
Package input field, for example
Z*, Y*,
/YOUR_NAMESPACE/*.
- Variant 2: Your SAP Business Suite System is not yet converted to SAP S/4HANA. You
perform the check in your evaluation system based onSAP NetWeaver 7.5. Then,
the Code Inspector will access the objects in your SAP Business Suite
system through a remote connection. In this case, proceed as
follows:
- On the Obj.Collectors tab, position the cursor in the
Object collector input field and
choose F4.
The Object
Collectors dialog is opened.
- Select the Remote Objects (RFC) entry and
confirm your selection.The
Parameter dialog is
opened.
- In the Destination input field, enter the
name of the RFC destination or choose F4 to search
for the relevant one.
- Confirm your selection.
The Remote Objects (RFC)
object collector is added.

Figure 1:
Procedure for creating an object set in your evaluation system that accesses your SAP
Business Suite system remotely
- In the Package input field, enter the relevant packages, for
example Z*, Y*,
/YOUR_NAMESPACE/*.
- To trigger creation of the object set, save your input.
- Navigate back to the Code Inspector: Initial
Screen.
- To analyze the objects contained in the created object set with the checks
configured in the generated check variant, you have to create a Code Inspector
inspection. To do this, enter the name of the inspection to be created in the
Name input field of the
Inspection section.
The Code Inspector: Inspection screen is opened.
- In the Object Selection section, enter the name of the
Object Set you have just created or choose
F4 to search for the relevant one.
- In the Check Variant section, enter the name of the
generated check variant or choose F4 to search for the relevant
one.
- To trigger creation of the inspection, save your input.
- Execute the inspection, for example, by pressing F8 for immediate
execution..
Note
Depending on the number of objects in the object set, execution might take several hours.
Therefore, consider starting the inspection in a job by pressing Shift + F1.
As soon as the inspection has been finished, the
Results icon is displayed in the toolbar.
- Choose the Results icon, to access the inspection findings.
Results
As soon as you have successfully performed the Code Inspector, the Code
Inspector: Results from screen is opened. It provides you with
information as to what simplifications are needed and where, and also information as
to the relevance of the simplifications that need to be adapted in your customer
code.
Example

Figure 2:
Example of an inspection result displayed on the Code
Inspector: Results from screen
Here, the highlighted area indicates that the field length of the
MATNR domain has been extended from 18 to 40 characters. In
this case, you are trying to move a field with a new field length of 40
characters into a field with 18 characters. This needs to be checked and
adapted. In addition, a SAP note is mentioned where you can find further
information.
To investigate which findings are relevant and need to be adapted in your evaluation
system, you can start to analyze the impact of your customer objects. You then know
which simplifications need to be adapted in your customer objects and, afterward,
you can start with the manual adaptation.