Archive
Programming Best Practices
-
The code contains use of getClass().getName()
It could be necessary to check whether a given object has a specific class type or whether two objects have the same class type…
-
Avoid octal values
Integer literals starting with a zero are octal rather than decimal values. While using octal values is fully supported, most developers do not have…
-
The code contains too many queries leading to a high number of table columns
Complex select clauses, i.e select clauses with many column can be difficult to read and does not help the reader who needs to identify…
-
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…
-
Empty functions and methods should be avoided
For maintainability aspect, avoid ABAP Functions, ABAP Forms, and ABAP Modules that contain no statements.
-
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,…
-
Builtin instructions are inadvisable because of their risky nature
Why you should care Certain built-in commands in VB/VB.net bring about unnecessary reliability risk to applications. This unexpected application or machine behavior occurs a…
-
Deep functions are a Production Risk in JavaScript
Deep functions are a Production Risk in JavaScript This code insight counts one violation each time an artifact (global function or root code) has…
-
File Records with no COPY Clause can be risky
File Records with no COPY Clause can be risky This code insight count a violation each time a file record has more than one…