sapdev logo background
sapdev logo sapdev logo
Comments

SAP DECLARATION WRONG LENGTH documentation, setup help and example usage



Return to SAP documentation index


ARTICLE

Wrong Lengths

ABAP Syntax(Obsolete)
... dtype(len)|dobj(len) TYPE d|f|i|t ...

Effect
Lengths specified in declarations using the statements TYPES , DATA , STATICS , and
CONSTANTS and the predefined 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.

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

Bad example
DATA: f1(8) TYPE d,
f2(4) TYPE i.

Good example
DATA: f1 TYPE d,
f2 TYPE i.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




DECLARATION_VARIABLES_GUIDL
DEC_FLOATING_POINT_FUNCTIONS




comments powered by Disqus