Quantcast
Channel: SCN : Document List - ABAP Development
Viewing all articles
Browse latest Browse all 935

Setting Code Inspector Custom Variant as Default Code Inspector variant

$
0
0

In our projects we generally create a custom variant for the code inspectors, which take cares of our project related Naming convention and coding standard.

If you are new in creating Code inspector variant you can refer below link.

http://wiki.scn.sap.com/wiki/display/ABAP/Creating+code+inspector+Check+Variant+for+client+specific+naming+conventions


In general whenever we develop any object or make any changes in any object, we go to Transaction SCII and run the code inspector for Z created Variant instead of directly checking it from Object menu Class/Program/Function module etc. ->Check -> code inspector.

 

Reason for the same is our Z created variant is not set as Default.


Once it is set as Default then you can use from object menu also.


Please follow below process to set the Z variant as default variant.


Go to T-code - SCI

  1st.jpg    

In Check variant write Z variant and then click on button on left side of Check variant 2nd.png  and this will turn to 3rd.jpg              making it global as generally Variant which we create is global.(If it is created as Local keep it as it is)


Click on copy button 4th.jpg, POP up will occur, in new variant write DEFAULT and press enter it will automatically get associated with your code inspector.


5th.jpg



Now go to your program and run Code inspector



6th.jpg

You will now be able to able to see naming convention error and other project specific norm related error.

 

 

Note: When ever any alteration is been made in Z Variant we again have to assign it to our ID


Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>