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: 

ABAP Test Cockpit not working on includes

former_member203650
Participant
0 Kudos

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

1 ACCEPTED SOLUTION

naresh_kabar
Explorer
0 Kudos

Hi Terry,

Try  SAP NOTE  2104212 to solve your problem


Regards,

Naresh.

4 REPLIES 4

SergioFerrari
Active Contributor
0 Kudos

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

former_member183804
Active Contributor
0 Kudos

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


naresh_kabar
Explorer
0 Kudos

Hi Terry,

Try  SAP NOTE  2104212 to solve your problem


Regards,

Naresh.

0 Kudos

That fixed the problem! Thanks, Naresh!. It was actually a prerequisite note, 2031830, that solved the problem, but no matter--the problem is resolved!