Skip to content

Avoid ALIASES in Classes and Interfaces ​

WarningClean ABAP & Modern Syntax#EC NO_ALIASESRemote Enabled

Overview ​

Avoid using ALIASES in classes and interfaces.

ATC Finding Message: Do not use ALIASES; reference interface components explicitly

Rationale ​

ALIASES obscure component origins and interface contracts. Explicitly reference interface components using the interface~member syntax.

Non-Compliant ​

abap
ALIASES run FOR lif_demo~run.

Compliant ​

abap
lif_demo~run( ).

Configuration & Thresholds ​

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

Parameter NameData TypeDefault ValueDescription & Guidance
IGNORE_PRIVATEBooleanfalseIgnore ALIASES in private sections (defaults to false)

Suppression ​

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

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

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

Technical Details ​

Released under the MIT License.