Skip to content

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_SQL

Technical Details ​

Released under the MIT License.