Beruflich Dokumente
Kultur Dokumente
Check Variant This defines the rules to be applied, which checks are to be made and the settings of those
checks.
Object Set This defines the development objects that will be included.
Inspection This defines a combination of Check Variant and Object Set, in other words what checks are to
be applied to which development objects.
What is the difference between local and Global Check Variants?
SAP provides a Global Check Variant with the name DEFAULT. This is used for objects that are checked
from the context menu of Programs, Classes, Function modules etc.
For your username, If you create a Local Check Variant with the name DEFAULT, the system will use this
instead of the global check variant.
Video tutorial available on https://youtu.be/PRCdnI0Gkeo
Step-by-step Tutorial
Task 1)Browse the Global DEFAULT check variant.
Here onwards whenever you use the Code Inspector from a context-menu of a program, Function module, Class, etc,
the local DEFAULT variant is used (instead of the global DEFAULT variant) for examining the code.
Task 3) Create a Sample program and examine with (local) DEFAULT variant of code
inspector.
Create a program ZTEST_ONE.
After activating the program, execute the code inspector as shown below.
The warning messages show that naming conventions are not followed for the names spfli_table, alv_obj,
alv_exc_obj and row_count.
The DEFAULT check variant enforces the rule Global data declarations in program must be prefixed
with letter G followed by letter corresponding to type of the data - T for internal tables, O
for object references, X for exception objects, E or V for elementary types.
So the names in our sample program should begin with gt_*, go_*, gx_*, gv_* or ge_* based on their types.
Task 5) Validate the sample program against the newly created Non-DEFAULT Check
Variant.
Create an ObjectSet.