Application Development and Automation 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: 
Read only

How to exclude Objects from the code inspector check - variant default

Former Member
0 Likes
2,008

Hi Experts,

we are going to use the Code Inspector with a own user variant DEFAULT directly in the ABAP Workbench.

This is fine to improve the qualtiy of our own develpment.

Unfortunetly some reports have implemented Includes from other development. (I know that it's not a good idea to reuse Includes).

This generates a lot of warnings, that we can not affect.

Is it possible to exclude this Includes form the code inspector check?

The abap statemend SET EXTENDED CHECK OFF before the Include-Statement will not work...

Looking forward for good suggestions...

Stefan

6 REPLIES 6
Read only

former_member194669
Active Contributor
0 Likes
973

Have you tried with Object Set selection with Exclude option ( While creating Object set --> in the bottom tab there you find "program" select the include and use exclude

and try

and also you can use pseudocomments "#EC in the general include (keep this option as secondary )

a®

Read only

0 Likes
973

Hi a®s ,

thanks for your suggestion.

I tried your first suggestion with the object set:

- unforunatly the check runs still with the includes.

- I can't not use the Object Set for a direct check in the ABAP Workbench (with the user variant DEFAULT)

For the second suggestion we have to modify the Include.

That would be not so good for us, because the include is deliverd from a software distributor.

Additional we have the set the #EC-Command for every statement.

Isn't it possible to set a pseudo command or something at begin and end of a block of coding, that

has the be exludes from the check?

So we could set this pseudo command before the INCLUDE-Statement to switch the check off and after the the INCLUDE-Statement to switch the check on....

Many greetings,

Stefan

Read only

0 Likes
973

pseudo command in the begin or end of the code will not work.

a®

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
973

Hey Stefan,

Why don't you create your own object set & exclude the objects you don't want to include in the Code Inspector Check. (Trxn SCI to create custom object set)

Please refer to this blog by Nick for further details: [/people/nick.young/blog/2010/03/02/setting-up-and-using-the-sap-code-inspector|/people/nick.young/blog/2010/03/02/setting-up-and-using-the-sap-code-inspector]

Hope this helps.

BR,

Suhas

Read only

Former Member
0 Likes
973

Hi Suhas,

i think this is the same suggestion that a®s made for Object Sets.

However it seems that this will not work, because the Include belongs to the checked programm.

Addtional the Object Set would not be considerd when the developer make the check directly in the ABAP Workbend instead with the transaction SCI.

Thanks,

Stefan

Read only

Former Member
0 Likes
973

OK, I've got the infomartionfrom Marcin Cholewczuk in this thread:

[]

It will work only with a work arround.

Thank for you help!

Stefan