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_ANYRelated Rules
- Require Fully Typed Variables and Parameters —
#EC PREF_FULL_TYPED - Prefer FINAL( ) over DATA( ) when the variable is never written again —
#EC PREF_FINAL_DATA
Technical Details
- Native ATC Class:
ZCL_SKYLINT_NO_IMPLICIT_ANY - Implementation File: zcl_skylint_no_implicit_any.clas.abap