05-16-2006 10:45 AM
Hi Guys/Gals,
If anyone worked in code inspector, do gimme inputs regarding the same.
Any help is highly appreciated.
Regs,
Venkat Ramanan N
05-16-2006 10:49 AM
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
05-16-2006 10:47 AM
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
05-16-2006 10:49 AM
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
05-16-2006 10:53 AM
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 -
05-16-2006 10:53 AM
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
05-16-2006 11:01 AM
<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
05-16-2006 11:02 AM
05-16-2006 11:23 AM
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