Ansicht
Dokumentation

ABAPTYPES_RANGES - TYPES RANGES

ABAPTYPES_RANGES - TYPES RANGES

CL_GUI_FRONTEND_SERVICES - Frontend Services   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

TYPES, RANGE OF

Short Reference



TYPES dtype ${TYPE RANGE OF type$}$|${LIKE RANGE OF dobj$}
            $[INITIAL SIZE n$].

Effect

Derivation of a table type for a ranges table. A ranges table is a standard table in which a ranges condition can be stored. It has a standard key and a special structured line type whose internal definition can be represented as follows in ABAP syntax:

TYPES: BEGIN OF linetype,
         sign   TYPE c LENGTH 1,
         option TYPE c LENGTH 2,
         low    ${TYPE type$}$|${LIKE dobj$},
         high   ${TYPE type$}$|${LIKE dobj$},
       END OF linetype.

The additions TYPE and LIKE determine the data type of the components low and high:

  • type can be a non-generic data type from the ABAP Dictionary, a non-generic public data type of a public data type of a global class, a non-generic data type local to a program, or any ABAP type from the tables of built-in ABAP types. The generic ABAP types c, n, p, and x are extended implicitly to the standard length without decimal places from the tables of built-in ABAP types.
  • dobj can be a data object visible at this position, whose type is inherited for both components. Generically typed formal parameters cannot be specified for dobj within a procedure.

The addition INITIAL SIZE is equivalent to the definition of regular internal table types.

A ranges table can be used in a relational expression with the comparison operator IN or in a similar expression in a WHERE condition in . It is also used for value passing to the selection screens of an executable program called using SUBMIT.

Notes

  • The sign and option columns of a ranges table declared using RANGE OF do not refer to data types in the ABAP Dictionary. For a ranges table defined in the ABAP Dictionary, these columns refer to the data elements DDSIGN and DDOPTION.

Example

Definition of a table type for a ranges table and its use for an inline declaration of a ranges table on the left side of a constructor expression with the value operator VALUE.






rdisp/max_wprun_time - Maximum work process run time   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 4808 Date: 20240425 Time: 150935     sap01-206 ( 59 ms )