SAP CREATE REFERENCE ABEXA



Get Example source ABAP code based on a different SAP table
  



Creating Reference Variables
This example demonstrates how reference variables are created.

ABAP_SOURCE_CODE
DEMO CL_DEMO_CREATE_REFERENCE

ABAP_DESCRIPTION
Creates an interface reference variable dynamically. The absolute type name is used for the description of the local interface.
The reference variable is assigned to a field symbol < ref> using dereferencing. According to the general typing rules, this field symbol an only be typed completely generically or typed with reference to the interface intf.
The dynamically created reference variable is used to create and address an object of a class.