‎2010 Mar 10 7:50 AM
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
‎2010 Mar 10 8:09 AM
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®
‎2010 Mar 10 9:19 AM
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
‎2010 Mar 10 9:28 AM
pseudo command in the begin or end of the code will not work.
a®
‎2010 Mar 10 9:47 AM
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
‎2010 Mar 10 11:25 AM
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
‎2010 Mar 10 7:40 PM