Skip to content

Avoid Generic and Implicit ANY Types ​

WarningClean ABAP & Modern Syntax#EC NO_IMPLICIT_ANYRemote Enabled

Overview ​

Specify concrete types instead of generic or implicit ANY.

ATC Finding Message: Specify explicit concrete types instead of generic or implicit ANY

Rationale ​

Untyped FIELD-SYMBOLS or method parameters defaulting to ANY sacrifice compile-time type safety. Always specify explicit concrete types.

Non-Compliant ​

abap
FIELD-SYMBOLS <fs>.

Compliant ​

abap
FIELD-SYMBOLS <fs> TYPE string.

Suppression ​

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

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

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

Technical Details ​

Released under the MIT License.