SAP DEREFERENCING OPERATOR



Get Example source ABAP code based on a different SAP table
  


• ->* ABAP_DEREF_OPERATOR

Dereferencing Operator
The content of a data object pointed to by a data reference is accessed using the dereferencing operator:
dref->*
The dereferencing operator ->* can be specified after a data reference variable dref.
If the static type of the data reference variable is not generic, the expression dref->* can be specified at any operand position.
For data reference variables with the generic static type data, it can be specified at any operand position except for:
Replacement parameters behind DEFAULT for methods, functions or events.
Components of internal tables.
Operand positions where a certain operand type, e.g. an internal table, is expected.
If the data reference variable contains the null reference, the uncatchable exception DATREF_NOT_ASSIGNED is raised when the dereferencing operator is used. The exception to this is the dereferencing in the statement ASSIGN.



Latest notes:

The dereferencing operator uses the object component selector.
NON_V5_HINTS
ABAP_HINT_END

ABAP_EXAMPLE_VX5
Uses the dereferencing operator in a general operand position and in the statement ASSIGN. Only in ASSIGN can dref be initial without raising an uncatchable exception.
ABEXA 00998
ABAP_EXAMPLE_END