SAP DECLARATION WRONG LENGTH



Get Example source ABAP code based on a different SAP table
  



Unnecessary Length Specifications

ABAP_SYNTAX_OBS
... dtype(len)$|dobj(len) TYPE d$|f$|i$|t ...

What does it do?
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.



Latest notes:

This obsolete length specification is only possible with the obsolete parenthesis syntax and not with the recommended addition LENGTH.
ABAP_HINT_END

ABAP_EXAMPLE_BAD DATA: f1(8) TYPE d,
f2(4) TYPE i.
ABAP_EXAMPLE_END

ABAP_EXAMPLE_GOOD
ABEXA 00997
ABAP_EXAMPLE_END