Answers for "Components/Fields of Internal Table"

SQL
0

Components/Fields of Internal Table

DATA : it_mara TYPE STANDARD TABLE OF mara  WITH HEADER LINE.

DATA : it_detail   TYPE abap_compdescr_tab,
           wa_comp TYPE abap_compdescr.

DATA : ref_descr TYPE REF TO cl_abap_structdescr.

ref_descr ?= cl_abap_typedescr=>describe_by_data( it_mara ).
it_detail[] = ref_descr->components .

loop at it_detail into wa_comp.
write:/ wa_comp-name .
endloop.
Posted by: Guest on April-21-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language