Prefer TYPE STANDARD TABLE OF over TYPE TABLE OF
WarningClean ABAP & Modern SyntaxQuickFix Ready#EC PREF_STD_TABLERemote Enabled
Overview
Prefer explicit TYPE STANDARD TABLE OF over TYPE TABLE OF.
ATC Finding Message:
Specify the table kind explicitly: TYPE STANDARD TABLE OF
Rationale
TYPE TABLE OF implicitly means a standard table, so the reader must know the default to understand access costs. Spelling out STANDARD makes the table kind and its linear search behavior explicit. It also keeps declarations consistent when tables are later changed to sorted or hashed.
Non-Compliant
abap
DATA lt_customers TYPE TABLE OF ty_customer.Compliant
abap
DATA lt_customers TYPE STANDARD TABLE OF ty_customer.Automated QuickFix
This rule provides an automated QuickFix directly in Eclipse ABAP Development Tools (ADT):
- Position the cursor on the flagged statement.
- Press Ctrl + 1 (Quick Assist).
- 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 PREF_STD_TABLE
" SAP CI_ prefix format:
... "#EC CI_PREF_STD_TABLETechnical Details
- Native ATC Class:
ZCL_SKYLINT_PREF_STD_TABLE - Implementation File: zcl_skylint_pref_std_table.clas.abap