Data references can point to any data objects or to their parts (components, rows of internal tables, or sections specified by offsets and lengths)
大意:可以参考任意的数据部份。
Example
Inline declaration of a data reference variable dref with the static type scarr on the left side of a corresponding anonymous data object created on the heap. Uses the dereferencing operator ->* to access the full data object and the object component selector -> to access a component.
DATA(dref) = NEW scarr( ).
SELECT SINGLE *
FROM scarr
WHERE carrid = ‘LH’
INTO @dref->*.
cl_demo_output=>display_data( dref->carrid ).