Get Example source ABAP code based on a different SAP table
Data Objects and Data References in ABAP Release 4.6A In ABAP_99A , references to data objects have been introduced in the following variants: ITOC
ABAP_MODIFICATION_NN Reference Variables for Data Objects>
Previously, reference variables were only available in ABAP Objects>. In ABAP_RELEASE 4.6A, DATA f TYPE REF TO DATA>> can be used to declare f as a reference variable that points to a different data object.
ABAP_MODIFICATION_NN Creating Data Objects and Getting References >
CREATE DATA dref ...>> can be used to create a new data object (field) at runtime, where dref> can be any reference variable with type REF TO DATA> >. Furthermore, GET REFERENCE>> can be used to get a reference to a data object (field).
ABAP_MODIFICATION_NN Assignment of Referenced Fields>
The statement ASSIGN dref->* TO <(><)>>> makes the field symbol <(><)>> point to the same content as the data reference dref> at runtime. If the field symbol is typed, the type is checked when the assignment is made.