01-09-2015 6:20 PM
We have a habit in my company of putting code for enhancements into includes so that the only line of code in the enhancement is the INCLUDE statement. Some of these includes have quite a lot of code in them. When I bring up an include in SE38 and run ATC on it, it ALWAYS says
"The objects passed the chosen checks without any finding" when clearly there should be findings. It appears to me that the checks are not being performed.
What am I missing here?
Cheers,
TerryB
06-26-2015 4:36 PM
Hi Terry,
Try SAP NOTE 2104212 to solve your problem
Regards,
Naresh.
01-10-2015 4:20 PM
I think ABAP Test Cockpit works only on main program (1, M, Classes and Function Groups).
Unfortunately it does not work on SAP standard objects so you may want to try cloning the SAP standard main program and run ATC on it.
Not nice, I know, just a try
Sergio
06-25-2015 10:11 PM
Hello Terry,
there is no contract that standalone includes need to contain valid ABAP. For instance it is even possible to store human conversation within an include.
The contract is that programs need to contain valid ABAP only. As Sergio already mentioned the majority of analysers therefore work for programs (reports, function pools, class pools) only.
As there are restrictions on scanning SAP programs in most versions of ATC, having a custom program also might be a mitigation strategy. Another strategy would be to delegate from enhancements into custom code classes. Such a strategy might be also benefical in terms of stability. If one includes code snippets by enhancements these snipptes still bear the risk that the content has name clashes with SAP code (form routines of same name, variables of the same name, ... ).
Best Regards
Klaus
06-26-2015 4:36 PM
Hi Terry,
Try SAP NOTE 2104212 to solve your problem
Regards,
Naresh.
06-26-2015 6:53 PM
That fixed the problem! Thanks, Naresh!. It was actually a prerequisite note, 2031830, that solved the problem, but no matter--the problem is resolved!