Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Code Inspector

Former Member
0 Kudos

Hi Guys/Gals,

If anyone worked in code inspector, do gimme inputs regarding the same.

Any help is highly appreciated.

Regs,

Venkat Ramanan N

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

check this link

<a href="http://help.sap.com/saphelp_nw04/helpdata/en/56/fd3b87d203064aa925256ff88d931b/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/56/fd3b87d203064aa925256ff88d931b/frameset.htm</a>

Prob, this would help

Thanks

Aswin

7 REPLIES 7

former_member181962
Active Contributor
0 Kudos

Check the tcode SCI .

What follows is pretty self explanatory.

This is what the document says:

<i><b>The Code Inspector tests single objects or object sets (programs, function groups, classes, interfaces, Dictionary objects) for performance, security, serviceability, error proneness, and statistical information.

You can call the Code Inspector for the relevant single objects directly from the ABAP Editor (SE38), the Function Builder (SE37), or the Class Builder (SE24) (Object->Check->Code Inspector). The system then checks using a default check variant.

Object sets, check variants, and inspections are created using transaction SCI.

Object Sets and Check Variants (that is, combinations of single checks to which you can assign parameters) are managed independently of one another. An Inspection connects one check variant with an object set. Inspections, object sets, and check variants are created by one userlocally | | or visible to all users globally | |.

An inspection returns a Check Result, from which you can derive another object set.</b></i>

Check these links:

http://help.sap.com/saphelp_nw04/helpdata/en/56/fd3b87d203064aa925256ff88d931b/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/4f/3d1540bf1af72ee10000000a1550b0/content.htm

Regards,

Ravi

Former Member
0 Kudos

Hi,

check this link

<a href="http://help.sap.com/saphelp_nw04/helpdata/en/56/fd3b87d203064aa925256ff88d931b/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/56/fd3b87d203064aa925256ff88d931b/frameset.htm</a>

Prob, this would help

Thanks

Aswin

0 Kudos

The Transaction Code for Code Inspector is SCI. I guess it is only available from Versions 47 & upward.

http://help.sap.com/saphelp_nw04/helpdata/en/8d/4b64488cce3945ba42b059319d62dc/content.htm

Check out these links which give detail ideas about Code Inspectors -

Former Member
0 Kudos

Hi Guys,

Actually I know what is code inspector and what it does.

But all I need is that how I could create my own set of rules for specific objects (FM, Programs etc.,)

Regs,

Venkat Ramanan

0 Kudos

<i>But all I need is that how I could create my own set of rules for specific objects (FM, Programs etc.,)</i>

Do you want to create your own inspection?

You can define your own class and using the right superclass or you can use the available templates eg CL_CI_CATEGORY_TEMPLATE. You can see them in SCI Goto->Test administration.

I was playing around and it worked fione for me....maybe I should write a weblog about it:-)

Peter

0 Kudos

Hi Venkat,

You can define your variant in SCI transaction and define the set of rules that you want. You can copy the standard one and make necessary changes.

Have a look at the following thread for more information on Code Inspector.

<b>

Please reward points if it helps.</b>

Regards,

Amit Mishra

Former Member
0 Kudos

hi,

Transaction SCI ...

Go To SCI.

1) Enter ur Check Variant _________________

click on create ( select global or local ....click on button next name...before parameter field )

if it global it will be cross client.

2) go to Programming Convention folder...click on the arrow for the popup.

3) in the popup u will get the option for naming convention for global, local parameter.

it covers every possible data type.

4) for example

ur local variable should start with LV_ then u should enter LV_*

other example

ProcedureLocal

TYPES TY_*

CONSTANTS LC_*

DATA LV_*

FIELD-SYMBOLS <FS_*>

Global Class Interface

CLASS GCL_*

INTERFACE GI_*

TYPE GTY_*

CONSTANTS GC_*

DATA GV_*

CLASS-DATA G_*

EVENTS G_*

METHODS G_*

etc .

in this way u can enter many combination or u can have multiple option

4)in this way u have other option like syntax check.

5) when u have to execute code inspector for the object

-


Tcode SCI

this time u create object SET

enter the description

eneter program name or function group which u want to check

6) GO to TCODE ---SCII to run the code inspector

-


Object set Name( specifies program Name )

-


Check Varient Name ( specify ur check varient create for the project)

7) run the program. click on analyse ( excute and analyse button is toggle )

😎 select folder>read the description>double click will go to the code .

where u can modify code.

feel free to ask further question

Regards,

manoj.baijnath@wipro.com