cl_abap_structdescr finding data element descriptions of program defined structure Go to solution Former Member 2014 Oct 22 10:33 PM 1 Kudo 26,795 SAP Managed Tags: ABAP Development I have an program built structure (not ddic). with several fields, all defined with ddic data ...
type ref to cl_abap_tabledescr rather than cl_abapstructdescr as it dumps when I use thelater and then use the following ref_descr?= cl_abap_descr=>describe_by_data( <gt_table> ). My issuethen occurswith the resultant table that is returned (of type abap_keydescr) only having the ...
DATA : REF_TABLE_DES TYPE REF TO CL_ABAP_STRUCTDESCR. DATA : INT_DETAILS TYPE ABAP_COMPDESCR_TAB, * Get the structure of the table. REF_TABLE_DES ?= CL_ABAP_TYPEDESCR=>DESCRIBE_BY_NAME( DB_TABLE ). INT_DETAILS[] = REF_TABLE_DES->COMPONENTS[]. ...
4->Enter "CL_ABAP_TYPEDESCR" in the class name field 5->Enter "DESCRIBE_BY_DATA" in the method field, click Enter you have the pattern in the editor OR you may copy the following code, and pass the parameters data: l_describe TYPE REF TO cl_abap_typedescr. field-symbols: <field>...
data : it_tabdescr type abap_compdescr_tab, wa_tabdescr type abap_compdescr. data : ref_table_descr type ref to cl_abap_structdescr. Data: lr_elem_descr TYPE REF TO cl_abap_elemdescr. * Return structure of the table. ref_table_descr ?= cl_abap_typedescr=>describe_by_name( p_t...