Skip to Content
0
Former Member
May 09, 2011 at 02:49 PM

Failure in creating a dynamic structure

448 Views

Hi Guys,

i get a strange failure while creating a structure from components.

lr_out_tab ?= cl_abap_tabledescr=>describe_by_data( it_outtab ).

lr_out_struc ?= lr_out_tab->get_table_line_type( ).

lt_out_comp = lr_out_struc->get_components( ).

lr_new_struc = cl_abap_structdescr=>create( lt_out_comp ). <-- cx_sy_struct_comp_name exception

I get this failure, when i have component-names like xxx-yyyy. Does somebody have an idea how to slove this.

Greetings

André