Find out if a component of a structure is a structure or a table type

Hi,

is there any way to describe a structure and than find out if the component is a structure or a table type? Something like this:

DATA: lo_strucdescr TYPE REF TO cl_abap_structdescr.

lo_strucdescr ?= cl_abap_typedescr=>describe_by_data( cs_ddic ).
LOOP AT lo_strucdescr->components INTO DATA(ls_components).
” Here determine if component is a structure or a table type
ENDLOOP.

Thank you all for help 🙂

Scroll to Top