Skip to content

Create data references

Create data references to structures and tables with the operator REF #( ).

DATA accounts TYPE accounts_table.
import_accounts_references( REF #( accounts ) ).

Old style:

DATA accounts TYPE accounts_table.
DATA accounts_reference TYPE REF TO accounts_type.
GET REFERENCE OF accounts INTO accounts_reference.
import_accounts_references( accounts_reference ).
From SAP/styleguides under CC BY 3.0 — more details
Last updated on