Ansicht
Dokumentation

ABAPDATA_REF_TO - DATA REF TO

ABAPDATA_REF_TO - DATA REF TO

ROGBILLS - Synchronize billing plans   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

Effect

Declares the data object f as a generic data reference variable.

Data reference variables of that kind can contain references (pointers) to data objects of any types. They can only be dereferenced using the statement ASSIGN.

Example

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

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

This example creates a reference to the data object number. It is then assigned to the field symbol <fs> using the dereferencing operator ->*. It is now possible to work with the field symbol in the normal way.






TXBHW - Original Tax Base Amount in Local Currency   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 1008 Date: 20240623 Time: 204846     sap01-206 ( 20 ms )