Prefer Strict SQL Host Variable Escaping
WarningClean ABAP & Modern Syntax#EC PREF_STRICT_SQLRemote Enabled
Overview
Prefer strict SQL; escape host variables and targets with @.
ATC Finding Message:
Use strict SQL syntax; escape host variables and targets with @
Rationale
Modern ABAP SQL requires host variables and structures to be escaped with the '@' character for strict mode compliance.
Non-Compliant
abap
SELECT * FROM ztable INTO TABLE lt_data.Compliant
abap
SELECT * FROM ztable INTO TABLE @lt_data.Suppression
To suppress findings for this rule, append the pseudo-comment to the statement:
abap
" Standard pseudo-comment:
... "#EC PREF_STRICT_SQL
" SAP CI_ prefix format:
... "#EC CI_PREF_STRICT_SQLRelated Rules
- Avoid INTO with Field Symbols —
#EC NO_INTO_FS - Avoid Ambiguous Statements —
#EC NO_AMBIGUOUS_STMT
Technical Details
- Native ATC Class:
ZCL_SKYLINT_PREF_STRICT_SQL - Implementation File: zcl_skylint_pref_strict_sql.clas.abap