Code: Alles auswählen.
FIELD-SYMBOLS: <wa_it> TYPE ANY,
<it_help> type standard table,
<dref> type ref to data.
ASSIGN ep_table->* TO <wa_it>.
Code: Alles auswählen.
DATA:
l_rcl_table TYPE REF TO cl_abap_tabledescr,
l_rcl_struct TYPE REF TO cl_abap_structdescr,
l_rcl_typedescr TYPE REF TO cl_abap_typedescr.
* itab_help type any table.
FIELD-SYMBOLS <l_wrk_compdescr> TYPE abap_compdescr.
FIELD-SYMBOLS <fs_comp> TYPE ANY.
FIELD-SYMBOLS <help> TYPE ANY.
*append lines of <wa_it> to itab_help.
* Struktur der Tabelle ermitteln
* l_rcl_table ?= cl_abap_tabledescr=>describe_by_data( <wa_it>[] ).
* Struktur der Tabellenzeilen ermitteln
l_rcl_struct ?= l_rcl_table->get_table_line_type( ).
data: wa type l_rcl_struct.
* unassign <wa_it>.
*create data <dref> like line of ep_table.
* assign ep_table->* to <it_help>.
Code: Alles auswählen.
FIELD-SYMBOLS:
<it> TYPE ANY TABLE,
<0> TYPE any.
*
DATA
d TYPE REF TO data.
*
ASSIGN ep_table->* TO <it>.
CREATE DATA d LIKE LINE OF <it>.
ASSIGN d->* TO <0>.