Cannot Use RANGES

This statement creates a special table with a header and as such is not allowed in ABAP Objects.

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