Ansicht
Dokumentation

ABAPTYPES_REF_TO - TYPES REF TO

ABAPTYPES_REF_TO - TYPES REF TO

Vendor Master (General Section)   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.
SAP E-Book

Variables with this type contain references (pointers) to data objects. They can only be dereferenced using an ASSIGN statement.

Example

TYPES: reftype    TYPE REF TO DATA.
DATA:  numref     TYPE reftype,
       number     TYPE I VALUE 123.
FIELD-SYMBOLS: <fs> TYPE ANY.

GET REFERENCE OF number INTO numref.
ASSIGN numref->* TO <fs>.

In this example, a reference is created to the data object number. Subsequently, the data object is assigned to the field symbol <fs> using the dereferencing operator ->*. The field symbol can then be processed as usual.






Vendor Master (General Section)   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 940 Date: 20240426 Time: 220748     sap01-206 ( 12 ms )