Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Alternate to RANGES keyword

0 Kudos

Hello everybody,

     Currently I am using RANGES declaration for a variable. As this keyword is obselete, can I achieve the same functionality with any other non-obselete keyword ?

Regards,

SS

3 REPLIES 3

ThomasZloch
Active Contributor
0 Kudos

DATA ... TYPE RANGE OF ...

Remember next time to consult ABAP documentation before posting.

Thomas

P.S. question status removed due to basic nature

former_member200345
Contributor
0 Kudos

Hi, check the below code.

TYPES: ty_bukrs TYPE RANGE OF bukrs.

DATA: rt_bukrs TYPE ty_bukrs,
            rw_bukrs TYPE LINE OF ty_bukrs.

CLEAR RW_BUKRS.

rw_bukrs-sign = 'I'.
rw_bukrs-option = 'EQ'.
RW_BUKRS-LOW = '1000'.
APPEND RW_BUKRS TO RT_BUKRS.

Aashish28
Contributor
0 Kudos

Press F1 on keyword ranges you will get help -

The statement RANGES is replaced by the addition TYPE|LIKE RANGE OF of the statements TYPES and DATA. If used, these declare ranges tables without header lines.