Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

cl_abap_structdescr=>create causes CX_SY_STRUCT_COMP_Ndump for invalid char

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

SuhaSaha
Advisor
Advisor
0 Kudos

Did try you passing

P_STRICT = space

to the method CREATE ?

2 REPLIES 2

SuhaSaha
Advisor
Advisor
0 Kudos

Did try you passing

P_STRICT = space

to the method CREATE ?

Former Member
0 Kudos

Thanks for the tip Suha ... dont know why I didnt check myself ... well well