We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86cdc32 commit ec4740aCopy full SHA for ec4740a
1 file changed
src/core/zcl_text2tab_parser.clas.abap
@@ -924,8 +924,13 @@ CLASS ZCL_TEXT2TAB_PARSER IMPLEMENTATION.
924
append ls_comp to lt_components.
925
endloop.
926
927
- ld_struc = cl_abap_structdescr=>create( lt_components ).
928
- e_container = zcl_text2tab_utils=>create_standard_table_of( ld_struc ).
+ data lx_type type ref to cx_sy_struct_creation.
+ try.
929
+ ld_struc = cl_abap_structdescr=>create( lt_components ).
930
+ e_container = zcl_text2tab_utils=>create_standard_table_of( ld_struc ).
931
+ catch cx_sy_struct_creation into lx_type.
932
+ raise_error( i_msg = 'Error creating receiving typeless structure' ). "#EC NOTEXT
933
+ endtry.
934
935
" parse remaining data into the structure
936
field-symbols <tab> type any.
0 commit comments