1 2 3 4 5 6 7 8 9 10 11 12 |
DATA : dyntab TYPE REF TO data. FIELD-SYMBOLS : <table> TYPE ANY TABLE. CREATE DATA dyntab TYPE TABLE OF (lv_tabname). DATA: lcl_table_descr TYPE REF TO cl_abap_tabledescr, lcl_struc_descr TYPE REF TO cl_abap_structdescr. ASSIGN dyntab->* TO <table>. lcl_table_descr ?= cl_abap_typedescr=>describe_by_data( <table> ). lcl_struc_descr ?= lcl_table_descr->get_table_line_type( ). DATA(it_components) = lcl_struc_descr->components. |