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: 

Replacing Global "DEFAULT" variant in Code Inspector with custom variant

Former Member
0 Kudos

In the SAP system there is a global check variant with the name DEFAULT. This is used for objects that are checked from within the transactions SE11, SE24, SE37, SE38, or SE80.

I would like to replace the DEFAULT variant with my own global check variant .So everytime a user goes to <b>program->check->code inspector</b> the checks should be done via my custom check variant instead of the DEFAULT variant.

Is it possible.I do not want to change the SAP "DEFAULT" variant.

4 REPLIES 4

Former Member
0 Kudos

u have to create a New Default. check tcode SCI

Code Inspector
Inspection Results

You can call the Code Inspector from the ABAP Editor (SE38), the Function Builder (SE37), the Class Builder (SE24), or as a separate transaction (SCI).

For callers from the ABAP Editor, Class Builder, or Function Builder:

If you have not defined your own DEFAULT variant, your object was checked with the Code Inspector's global DEFAULT check variant. If you want to change the selection of checks for your objects, you can create your own local DEFAULT check variánt from the results display. You can also do this in transaction SCI

You can enter pseudo-comments in the source code (for example "#EC CI_XYZ) to define exceptions for single checks. For the required pseudo-comments, refer to the Check Documentation.

General Comments

The Code Inspector indicates possible problems. However, note that, especially with performance issues:
There is no rule without exception.
If a program passes an inspection, it does not necessarily mean that this program will have no performance problems.

Former Member
0 Kudos

HI,

Run the code insector for the program, then go to UTILITIES->DEFAULT Check vairiant -> Create , create here ur own variant here and use it ehen running the program.

Regards,

Vaibhav B Gawali .

Former Member
0 Kudos

Hi

As I had mentioned i don't want to create a local default variant for every program.I have created my own Global variant which I want to execute through se38 for every program instead of the standard SAP DEFAULT variant.

How can I attach my own check variant to a program

Former Member

Ravi,

answering to your question I´ll give you this steps:

1. Go to transaction 'SCI', make a copy of global DEFAULT variant and give other name, like DEFAULT_RAVI;

2. Make your changes, setting all the flags your need at the categories;

3. Go to transaction 'SE16', at the table 'SCICHKV_ALTER', set the item DEFAULT flag and click on EDIT BUTTON.

4. Change the field 'CHECKVNAME_NEW', 'RESPONSIBL', 'CREADATE' and clik on SAVE BUTTON.

Ready!

Enjoy your new GLOBAL DEFAULT VARIANT.