The Code Inspector enables you to check your programs for performance, security, and typical semantic errors. There are various ways of calling this tool. As shown here, one method is to choose Program, select Check, and then select Code Inspector. After this, you can commence a standard inspection for your programs.
You can also call the Code Inspector from the context menu in the object list.
INSPECTION RESULTS
After carrying out an inspection, you get a list of errors and warning messages. If you select the information button that is next to a message, it gives a detailed description of the error, along with the suggested improvements. If you double-click the error text, it shows the corresponding program statement.
CHECK VARIANT
The Code Inspector uses a default check variant with predefined checks. This default check variant contains
/TAW10_Col92_en_TAW10_-_ABAP_Workbench_Fundamentals/shell/assets/bullet.gif)
/TAW10_Col92_en_TAW10_-_ABAP_Workbench_Fundamentals/shell/assets/bullet.gif)
/TAW10_Col92_en_TAW10_-_ABAP_Workbench_Fundamentals/shell/assets/bullet.gif)
To overwrite this default check variant, create a new check variant with the name DEFAULT. However, the new check variant will override the standard variant for the users.
The standard variant is used automatically for any future checks in the absence of the default check variant.
DEFINING COMPLEX INSPECTIONS IN TRANSACTION SCI
You can define a custom check by calling the Code Inspector with either the transaction code SCI or by choosing Tools, then ABAP Workbench, then Test, and finally Code Inspector.
The initial screen where you describe custom checks consists of three areas:
/TAW10_Col92_en_TAW10_-_ABAP_Workbench_Fundamentals/shell/assets/bullet.gif)
/TAW10_Col92_en_TAW10_-_ABAP_Workbench_Fundamentals/shell/assets/bullet.gif)
/TAW10_Col92_en_TAW10_-_ABAP_Workbench_Fundamentals/shell/assets/bullet.gif)
CREATING A CHECK VARIANT
A check variant contains one or more check categories, which in turn consists of one or more single checks. These single checks pertain to various check categories:
/TAW10_Col92_en_TAW10_-_ABAP_Workbench_Fundamentals/shell/assets/bullet.gif)
/TAW10_Col92_en_TAW10_-_ABAP_Workbench_Fundamentals/shell/assets/bullet.gif)
/TAW10_Col92_en_TAW10_-_ABAP_Workbench_Fundamentals/shell/assets/bullet.gif)
/TAW10_Col92_en_TAW10_-_ABAP_Workbench_Fundamentals/shell/assets/bullet.gif)
/TAW10_Col92_en_TAW10_-_ABAP_Workbench_Fundamentals/shell/assets/bullet.gif)
/TAW10_Col92_en_TAW10_-_ABAP_Workbench_Fundamentals/shell/assets/bullet.gif)
No comments:
Post a Comment