In ABAP Objects, the following statement causes an error message:
RANGES rangetab FOR f.
Correct syntax:
DATA rangetab TYPE|LIKE RANGE OF ...
Cause:
Tables with a header are not allowed in ABAP Objects; declare your table using permitted statements instead.
Overview:
Replacement for Obsolete Statements ABAP Objects