Monday, June 15, 2015

ABAP: How to create a dynamic internal table and work area

ABAP: How to create a dynamic internal table and work area

FIELD-SYMBOLS: TYPE STANDARD TABLE,  TYPE ANY. DATA:  table_ref TYPE REF TO data, wa_ref TYPE REF TO data. DATA: l_structure TYPE dd02l-tabname value 'VBAP'.

CREATE DATA table_ref TYPE STANDARD TABLE OF (l_structure).
ASSIGN table_ref->* TO .
CREATE DATA wa_ref LIKE LINE OF .
ASSIGN wa_ref->* TO .

Now you have the table and the work area for it .

No comments:

Post a Comment