Skip to content

Avoid Obsolete Dash (-) in Program Identifiers ​

WarningAnti-Patterns & Bad Practices#EC NO_DASHRemote Enabled

Overview ​

No Dashes in Variable and Form Names.

ATC Finding Message: Avoid dashes in variable, constant, and field-symbol names

Rationale ​

A hyphen inside an identifier is legacy ABAP and is easily confused with the component selector for structures. It also complicates searching, refactoring, and tooling that treats the name as an expression. Use underscores in identifier names and reserve hyphens for component access.

Non-Compliant ​

abap
DATA customer-name TYPE string.

Compliant ​

abap
DATA customer_name TYPE string.

Suppression ​

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

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

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

Technical Details ​

Released under the MIT License.