Tuesday, January 5, 2010

SAP Code Inspector

Usability of SAP Code Inspector


 
Imagine a situation you have written a big code or BADI or Smartform or SE38 program and need to check the entire code,it is almost impossible to check in all respects of syntax,performance etc.

 
To solve the above problem SAP provide a wonderful tool known as SAP Code Inspector.It is used for STATIC ABAP Code checking and majorly for DDIC objects

 
In addition if required we can have a set of check combined into Check Variant.

 
The Transaction code for this is SCI.Either we can check it from this tcode or we can check the object directly from the SAP Menu of the concerned object.

 
For. E.g if we want to check a zreport then goto se38 transaction code open the report then from the SAP Menu.Choose Program->Check->Code Inspector The sytem will start checking the report.

 
The results are aligned across 3 major output columns mainly

 
1. how many errors are there

 
2. how many warnings are there

 
3. how many information messages are there

 
 
The various major Checks performed are

 
  1. Performance checks
  2. Security checks
  3. Syntax Check/Generation
  4. User Interface

 
Now what about documenting the same.For this we can use the feature called as INSPECTION

 
It can be Named or Anonymous type

 
Basically we can have a Named one and it is used for permament storage or documenting purpose which is stored and can be viewed later where as Anonymous is used when we just checking or don’t want to store the result or temporary purpose.

 
I hope know you guys have a basic idea of the same.

 

No comments:

Post a Comment