I think finding number of records in a itab using this class is not possible. If you want find the number of fields in an itab then g_tabledescr type ref to cl_abap_tabledescr, g_tabledescr ?= cl_abap_tabledescr
DATA: l_oref_structure TYPE REF TO cl_abap_structdescr, l_abap_compdescr type abap_compdescr. DATA: l_fields_table type SOI_FIELDS_TABLE. ASSIGN r_dyn_table->* TO <t_dyn_table>. CREATE DATA r_wa_dyn_table LIKE LINE OF <t_dyn_table>. ASSIGN r_wa_dyn_table->* TO <wa_dyn_...