Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  Processing Internal Data →  Assignments →  Assigning References 

Setting Reference Variables

Special rules apply when setting the reference or pointer of a reference variable:

A reference is always set as an up cast or as a down cast. When a reference variable is assigned to another reference variable, two different assignment operators are used plus a constructor operator.

As well as using assignments, references can point data reference variables to existing data objects. Here, a statement and a constructor operator are used.

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. 

Other versions: 7.31 | 7.40 | 7.54


Notes

Continue

Assignment Rules for Reference Variables

=, ?= - Up Cast and Down Cast

CAST - Casting Operator

GET REFERENCE

REF - Reference Operator