In this recipe, we will see how we can do a quick code inspection on a single program or an object set. This is also termed as an Ad Hoc Inspection, since the inspection results are not saved and are not available for future.
We will now carry out these steps:
SCII
. Alternatively, you may go to transaction SCI
and on the main screen, leave the Inspection field blank and press the Create button below the Inspection Input field. The screen appears as follows:ZST9_TEST_FOR_ALL_ENTRIES_2
.The code of the program mentioned is scanned and checked based on the selected checks. The results are then displayed. The results comprise of tree structure (hierarchy) within nodes corresponding to the checkbox selected. There are three columns shown for messages within the different categories and then the checkboxes pertaining to the category in question. These are Errors, Warnings, and Information messages. You may open the various categories to see the detail of the messages found in each category. For example, we have two information messages found under Use of Indexes in SELECT statement.
You may double-click on a particular message to reach the actual line of the code in the program that generated the message in question.
While selecting the checks to be run from a particular category, a check may have further attributes. This is denoted by the icon before it. You may click on the icon to view a list of the attributes and choose the ones relevant for your requirement. If you find an icon, it means that there is at least one value that must be set for the attributes contained within the check. Otherwise, selecting the check will produce an error and the inspection will not run.
For running another inspection from the results screen, use the toolbar button .
For viewing the results in a compact display format, use the toolbar button .
You have also the option of checking objects using object sets or the object contained within a request. However, the transaction has a limitation that you may not check over 50 objects and that the inspection may not be saved for reuse. In this case, the inspection is not stored and does not have a name (that is, it is anonymous). The next recipe will cover the ones that will overcome these limitations.
13.58.220.83