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):
- Position the cursor on the flagged statement.
- Press Ctrl + 1 (Quick Assist).
- 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_SYTechnical Details
- Native ATC Class:
ZCL_SKYLINT_PREF_SY - Implementation File: zcl_skylint_pref_sy.clas.abap