Show TOC

Check VariantLocate this document in the navigation structure

Definition

When you execute an inspection using the Code Inspector, the system checks the individual objects of a defined set of objects for certain attributes using the check variant.

There are global and local check variants. Global check variants are available for all users. SAP supplies the global DEFAULT variant, which you can use to check objects from within the workbench. If you have the appropriate authorizations, you can create global check variants yourself. It is possible to transport global check variants into other systems using the transport system. In contrast to the global check variants, local check variants are visible only for one user.

The Code Inspector is a generic tool that you use to check static objects. You can enhance the predefined list of check categories and individual checks supplied by SAP at any time.

Structure

A check variant consists of one or several check categories, which, in turn, consist of one or several individual checks. It is possible to set parameters for Individual checks -for example, using a search term or an indicator for a particular sub-aspect of the check. As a rule, individual checks examine certain object types only. An example is the Check for Table Properties, which examines DDIC tables only.

Example

The individual checks are assigned to different check categories. The following list shows examples of check categories and individual checks.

  • General checks contain data formatting elements, such as listing table names from SELECT statements.

  • Performance checks contain checks for performance and for resource use, such as:

    • Analysis of the WHERE condition for SELECT / UPDATE and DELETE

    • SELECT statements that read past the table buffer

    • Low-performing accesses to internal tables

  • Security checks contain checks for critical statements, cross-client queries, inadequate authority checks.

  • Syntax check / generation contains ABAP syntax check, an enhanced program check, and generation:

  • Programming conventions contain checks for name conventions.

  • Search functions contain searches in ABAP coding for tokens (words) and statements.