You are on page 1of 12

Code Inspector

Code Inspector
With the help of the code inspector you
can check your ABAP code for
performance, security, syntax, error
proneness and Statistical information.
You can perform different code checks
using this tool on a single object (simple
check on programs, function modules,
classes, ddic) or a set of objects (special
check on set of objects).
Calling code inspector for single objects is very easy, to call it from
programs go toProgram (SE38)then from the menu
chooseCheck=> Code Inspector
From Function Modules go toFunction Modules SE37then from
the menu chooseCheck=> Code Inspector.
And from a class go toClass (SE24)then from the menu
chooseCheck=> Code Inspector.
And from a Data Dictionary go toTable (SE11)then from
the menu chooseCheck=> Code Inspector.
And from a Data Dictionary go toTable (SE11)then from
the menu chooseCheck=> Code Inspector.
After calling the code inspector your
ABAP code will be checked using the
Default Check Variant deliver as standard
for the Code Inspector,
but you can create your own Check
Variant.
When the code inspector finishes its
inspection you will get the results in
hierarchal order.
This hierarchy contains list of checks on each category i.e.
Performance, Security, Syntax, and General. By going down
the hierarchy we can see the Messages which contain the
source code position and a short explanatory text.
And by double clicking on the message text you can go to the
.inspected line of code
Creating a Check Variant

Check Variants are also created, displayed, changed, deleted and


copied with transaction
SCI. To create a Check Variant, enter a suitable name and click Create.
You obtain a tree
containing all check categories with their respective single checks. Add
single checks to
.your Check Variant just by clicking the tree

You might also like