Archive
Software Resiliency
-
The code contains too many hard coded absolute file system paths in include directives
In order to ease change and to hide platform specific information from any potential misuse, it is highly recommended to use SAP ABAP logical…
-
The Web Dynpro code contains too many direct calls to routines using “me–>”
Special rules apply for the implementation of Web Dynpro routines, such as “wd_Do_Init” methods. Some ABAP language statements cannot be used. Other routines cannot…
-
A Program, User-Exit or Include contains too many Open SQL queries that access SAP standard tables in modification
SAP standard tables are part of the SAP software and they must not be modified by custom components. These can be affected by the…
-
The code contains too many SQL instructions with a missing where clause, or using “order by”, or using “not” operator or “is null” check in a where clause
For reliability and performance purposes, avoid using too many SQL instructions with a missing WHERE clause. Also, using “ORDER BY”, “NOT LIKE” or “IS…
-
Empty functions and methods should be avoided
For maintainability aspect, avoid ABAP Functions, ABAP Forms, and ABAP Modules that contain no statements.
-
The code contains too many unchecked returns of functions calls
Missing return code checks after an Open SQL statement can result in unpredictable behavior and untraceable execution errors. This is why it is extremely…
-
Avoid having too many conditions using variables without operators
When a variable without any operators is found within a βIFβ condition, in most of cases, it means that the developer wanted to perform…
-
Avoid having too many unused variables
Having too many variables that are unused somewhere in your software can make the software consume more memory than it should as the resource…
-
Avoid files with too many functions or methods
How we detect CAST Highlight counts the number of functions/methods found per file. Depending on thresholds based on benchmark analysis of reference applications, CAST…
-
Spaces between function name and opening parenthesis cause bugs
Why you should care There should be no space between the name of a function and the ( (left parenthesis) of its parameter list,…