Skip to content

Avoid Variable Names with Numeric Suffixes ​

WarningClean ABAP & Modern Syntax#EC NO_NUMBERED_VARRemote Enabled✏️ Edit Rule on GitHub

Overview ​

Avoid variable names with numeric suffixes.

ATC Finding Message: Avoid numbered variable names like lv_count1; use descriptive names

Rationale ​

Numbered variable names like lv_count1, lv_idx2, or ls_tmp3 often indicate poor naming or the need for a dedicated collection or internal table. Use descriptive names that convey intent or use structured types.

Non-Compliant ​

abap
DATA lv_count1 TYPE i VALUE 0.

Compliant ​

abap
DATA lv_source_count TYPE i VALUE 0.

Suppression ​

To suppress findings for this rule, append the pseudo-comment to the statement:

abap
" Standard pseudo-comment:
... "#EC NO_NUMBERED_VAR

" SAP CI_ prefix format:
... "#EC CI_NO_NUMBERED_VAR

Technical Details ​

Community & Feedback ​

Released under the MIT License.