Rule Definition
Source code inspection checks for bad practices and potential performance issues. For maintenance, performance and robustness reasons, it is better to avoid deactivating SAP source code inspection rules.
Remediation
Check if these directives are absolutely necessary and, if not, remove them from the source code.
Violation Code Sample
Example 1:
SET EXTENDED CHECK OFF
<Coding>
SET EXTENDED CHECKS ON
Example 2:
DATA: I TYPE I. "#EC NEEDED
I = 4.
BREAK-POINT. "#EC NOBREAK
WRITE 'Hugo'. "#EC NOTEXT
FORM AB. "#EC CALLED
ENDFORM.
Fixed Code Sample
* SET EXTENDED CHECK OFF
<Coding>
* SET EXTENDED CHECKS ON
Example 2:
DATA: I TYPE I.
I = 4.
BREAK-POINT.
WRITE 'Hugo'.
FORM AB. "#EC CALLED
ENDFORM.
Related Technologies
Technical Criterion
Programming Practices - Unexpected Behavior
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.