SAP® Documentation

Single view

ABAPDATA_RANGES - DATA RANGES

rdisp/max_wprun_time - Maximum work process run time   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

DATA - RANGE OF

Short Reference



Syntax

DATA rtab ${TYPE RANGE OF type$}$|${LIKE RANGE OFdobj$}
          $[INITIAL SIZE n$]
          $[VALUE IS INITIAL$]
          $[READ-ONLY$].

Effect

This statement defines a ranges tablertab with the table type described in the section TYPES - RANGE OF. The table type defined here, however, is not a standalone type, but exists as a property of the data object rtab.

The addition VALUE IS INITIAL can be used to specify an initial start value.

Notes

  • Outside of classes, the addition WITH HEADER LINE can also be used to declare an obsolete header line.
  • The declaration of a ranges table using the statement RANGES is obsolete.


Example

In this example, a ranges table is declared, filled, and evaluated in the WHERE condition of a SELECT statement.

DATA carrid_range TYPE RANGE OF spfli-carrid.

carrid_range = VALUE #(
  ( sign = 'I' option = 'BT' low = 'AA' high = 'LH') ).

SELECT *
       FROM spfli
       WHERE carrid IN @carrid_range
       INTO TABLE @DATA(spfli_tab).








ABAP Short Reference   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 3053 Date: 20200126 Time: 042558     sap01-206 ( 39 ms )

Our Service

Looking for Support? Questions?

The

Consolut

Callback-Service

Leave us your contact details and we will call you back. Panels marked with * are mandatory.