Skip to Content
0
Former Member
Sep 23, 2010 at 12:40 PM

cl_abap_structdescr=>create causes CX_SY_STRUCT_COMP_Ndump for invalid char

362 Views

Hello experts,

when generating a copy of a system generated ITAB with RTTI/C I get a CX_SY_STRUCT_COMP_NAME dump for invalid character.

The error is caused at statement:

go_sdescr_new = cl_abap_structdescr=>create( gt_components ).

Dump excerpt:

...

The reason for the exception is:

Component Name '0FISCVARNT' of the Component 1 Contains an Invalid Character

...

70 if comp-name+off(1) cn 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_' or

71 comp-name+off(*) cn 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_0123456789'.

72 * illegal character in component name

raise exception type CX_SY_STRUCT_COMP_NAME

...

Within SAP BI-IP ABAP-Exit function I am trying to create a copy of the system generate ITAB1 in which the data is delivered to me by the system. I want to add a few columns to this copy, perform calculations and write the data back to the result table ITAB2

The first component (out of 80) of the table ITAB1 is the SAP standard infoobject 0FISCVARNT ...

Excerpt (line 1) gt_components:

1 0FISCVARNT ->

Since 0FISCVARNT contains a 0 as first character I cannot use this name in my copy of ITAB1.

I desperately need a work around!

I apprecate any suggestions

Greetings,

Martin