An object in the class CL_ABAP_WEAK_REFERENCE represents a weak reference to an object. Unlike normal object references, a weak reference does not prevent the referenced object from being deleted when the garbage collector is executed.
A weak reference to an existing object is created by transferring an object reference to the instance constructor for CL_ABAP_WEAK_REFERENCE. You can then use the functional method GET to retrieve the reference afterwards. If the object was deleted in the meantime, the return value is initial.
A different type of reference retains objects until the available memory becomes limited. The class CL_ABAP_SOFT_REFERENCE is available for these soft references, but this class is currently still implemented like class CL_ABAP_WEAK_REFERENCE.