ARTIClE
Creating Reference Variables
This example demonstrates how to create a reference variable.
ABAP_SOURCE_CODE
ABAP_EXEC
ABAP_DESCRIPTION
Dynamic generation of an interface reference variable. The
absolute type name is used for the name of the local interface.
The reference variable is assigned to a field symbol
by means of dereferencing. According to the
general typing rules , the field symbol
must either be typed completely generically or typed with reference to
the interface
intf
.
The dynamically generated reference variable is used to create and
address an object of a class. As this field symbol is completely
generic, only the display variant of the
dynamic ASSIGN (and not
a special Dynamic Access
) can be used to access the interface attribute.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved