AS ABAP Release 758, ©Copyright 2024 SAP SE. All rights reserved.
ABAP - Keyword Documentation → ABAP - Programming Language → Obsolete Language Elements → Obsolete Declarations → Data Types and Data Objects →Unnecessary Length Specifications
Obsolete Syntax
... dtype(len)|dobj(len) TYPE d|f|i|t ...
Effect
Length specifications in declarations using the statements TYPES, DATA, STATICS, and CONSTANTS and the built-in ABAP types d, f, i, and t are ignored. Only the predefined fixed lengths can be specified. Lengths specified in this way produce syntax errors in classes and interfaces and syntax warnings elsewhere.
Hint
This obsolete length specification is only possible with the obsolete parenthesis syntax and not with the recommended addition LENGTH.
Bad Example
Good Example
DATA: f1 TYPE d,
f2 TYPE i.