Get Example source ABAP code based on a different SAP table
VERSION 5 IN
Assigning Reference Variables Special rules apply when setting the reference or pointer of a reference variable:
Assignment Rules for Reference Variables > A reference is always set as an upcast> or as a downcast>. When a reference variable is assigned to another reference variable, two different assignment operators are used, as well as a constructor operator.
=>, ?=> - Upcast and Downcast>
CAST> - Casting Operator> References in data reference variables can point to existing data objects. There is a statement and a constructor operator for this.
GET REFERENCE>>
REF> - Reference Operator> Like all data objects, reference variables are initialized using the statement CLEAR>>. The content of an initial reference variable is the null reference >, which does not point to an object and can be assigned to every reference variable.#
Latest notes:
The same rules apply to references set when objects are created> as to assignments.
When a reference variable containing a heap reference> is initialized, this affects Garbage Collector>. NON_V5_HINTS ABAP_HINT_END