Skip to content

Avoid Single-Letter Variable Names ​

WarningClean ABAP & Modern Syntax#EC NO_SINGLE_LETTERRemote Enabled

Overview ​

Avoid single-letter variable names.

ATC Finding Message: Avoid single-letter variable names; use descriptive identifiers

Rationale ​

Single-letter variables (e.g. i, x, lv_i, ls_x) obscure the meaning of code, make text searching difficult, and increase cognitive load. Use intention-revealing names such as index, customer, or total_amount.

Non-Compliant ​

abap
DATA i TYPE i.
DATA lv_i TYPE i.

Compliant ​

abap
DATA line_index TYPE i.
DATA count TYPE i.

Configuration & Thresholds ​

This check can be fine-tuned directly in the ATC Check Variant Editor (CHKV) in Eclipse ADT:

Parameter NameData TypeDefault ValueDescription & Guidance
MIN_NAME_LENInteger2Minimum allowable identifier length (default: 2, excludes i, j, x, y loop indices)

Suppression ​

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

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

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

Technical Details ​

Released under the MIT License.