Professional Documents
Culture Documents
Purpose
The Code Inspector is a generic tool that you use to check SAP repository objects. You use it to define inspections
which examine object sets with the help of check variants. It checks the performance, security, syntax, and
adherence to naming conventions of individual or sets of repository objects. You also use it to retrieve statistical
information or to search for certain ABAP tokens. As a result of an inspection, you receive information, warning,
and error messages about the different properties of the examined objects.
Inspection Definition
During an inspection, individual objects or sets of objects are checked as to whether they adhere to certain
programming guidelines or meet certain search criteria. The result of an inspection is a list of the conducted checks
together with the created errors, warnings, and information messages.
Structure
Types of Inspections
There are two types of inspections, which differ with respect to whether the results are made persistent or not.
Inspection results
The results of an inspection are subdivided into check categories. These can be, for example, performance,
security, syntax, or search. Each check category contains the individual check results, sorted by error, warning, and
information messages. Each of the latter contains the position in the source code (for program-like objects), and a
short explanation.
Use
Use object sets to group several single objects together for an inspection. You can include any repository objects in
a set. For example, object sets can contain programs, function groups, classes, or DDIC objects.
Integration
Together with the check variant, the object set makes up an inspection within the framework of the Code
Inspector.
Check Variant
Definition
A check variant is a set of checks which are executed during an inspection on the individual objects of a defined
object set.
Structure