Skip to content

Prefer the Short System Field Alias SY over SYST ​

WarningClean ABAP & Modern SyntaxQuickFix Ready#EC PREF_SYRemote Enabled

Overview ​

Prefer the short system field alias SY over SYST.

ATC Finding Message: Use sy- instead of syst- for system fields

Rationale ​

SYST and SY address the same system structure, so mixing both aliases makes code look inconsistent and complicates searching. SY is the conventional short form used throughout Clean ABAP. Use sy- consistently for system field access.

Non-Compliant ​

abap
lv_user = syst-uname.

Compliant ​

abap
lv_user = sy-uname.

Automated QuickFix ​

This rule provides an automated QuickFix directly in Eclipse ABAP Development Tools (ADT):

  1. Position the cursor on the flagged statement.
  2. Press Ctrl + 1 (Quick Assist).
  3. Select the automated refactoring to apply the clean syntax immediately.

Suppression ​

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

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

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

Technical Details ​

Released under the MIT License.