Skip to content

Avoid Obsolete ! Escape Prefix in Parameter Names ​

WarningAnti-Patterns & Bad PracticesQuickFix Ready#EC PARAM_ESCAPERemote Enabled

Overview ​

Avoid unnecessary parameter escape (!param).

ATC Finding Message: Escape params with ! only on keyword clash

Rationale ​

The ! escape prefix is legacy syntax used to force a parameter name to be treated literally. It adds noise to signatures and is unnecessary in modern ABAP, where parameter names are unambiguous. Remove the ! and use a clear parameter name instead.

Non-Compliant ​

abap
METHODS process
  IMPORTING !iv_data TYPE string.

Compliant ​

abap
METHODS process
  IMPORTING iv_data TYPE string.

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 PARAM_ESCAPE

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

Technical Details ​

Released under the MIT License.