Ansicht
Dokumentation
ABENDEREFERENCING_OPERATOR - DEREFERENCING OPERATOR
PERFORM Short Reference General Material DataThis documentation is copyright by SAP AG.
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.
Note
The dereferencing operator uses the object component selector.
Example
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.
Addresses (Business Address Services) RFUMSV00 - Advance Return for Tax on Sales/Purchases
This documentation is copyright by SAP AG.
Length: 2045 Date: 20240427 Time: 063309 sap01-206 ( 34 ms )