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: 

Error terminating while building dynamic field catalog

Former Member
0 Kudos
334

Hi,

I am getting a error message when building dynamic field catalog for ALV

I am using the syntax below:

DATA :fs_wt_alv_table TYPE REF TO data.

CALL METHOD cl_alv_table_create=>create_dynamic_table

EXPORTING it_fieldcatalog = wt_fieldcat

IMPORTING ep_table = fs_wt_alv_table.

The error pop up teriminating the program says like

"In unicode programs, the "=" character cannot appe

11 M=-1EBELNP(000016)

wt_fieldcat contains below values in its structure:

COL-POS FIELDNAME TABNAME

0 TYPE WT_ALV

1 GMID WT_ALV

2 IDNLF WT_ALV

3 TXZ01 WT_ALV

4 MEINS WT_ALV

5 BSTMI WT_ALV

6 BSTRF WT_ALV

7 M=-1EBELNP WT_ALV

8 M=-1MENGE WT_ALV

9 M=-1EINDT WT_ALV

10 M=-1ETENS WT_ALV

11 M=-1EINDT2 WT_ALV

12 M=-1ETENS2 WT_ALV

13 M=-1EINDT3 WT_ALV

14 M=0EBELNP WT_ALV

15 M=0MENGE WT_ALV

16 M=0EINDT WT_ALV

17 M=0ETENS WT_ALV

18 M=0EINDT2 WT_ALV

....

...

regards,

santhosh sivanathan

8 REPLIES 8

former_member182670
Contributor
0 Kudos
287

Just read the error message:"In Unicode programs, the "=" character cannot appear in names"

You cannot have '=' in you dynamic column names.

Try declaring this in your program and you'll get the same error

data: M=0EINDT2 type i.

0 Kudos
287

No, This is how the table is built dynamically.

I have a similar version of the program in r/3 4.7 system. Even theer the field catalog is built in this way.The code works fine.

May be I have missed some checks or something else around the code.

0 Kudos
287

Is this 4.7 also Unicode?

0 Kudos
287

yes

0 Kudos
287

So does the old report have Unicode checks active in the properties?

There is now way you can include special characters like '=' in Unicode enabled reports so you'll have to change the logic for fieldname generation.

0 Kudos
287

Yes. ECC 6 is unicode check system , previous one was not.

So , I have to take some other new method of doing it.

thanks.

0 Kudos
287

Alternatively, turn OFF the unicode check in attributes for this one program.

0 Kudos
287

Because your any alv column name contain "=" character.

in the fieldcatalog's field names doesnt contain any special character.

COL-POS FIELDNAME TABNAME

7 M=-1EBELNP WT_ALV

yours fieldname is M=-1EBELNP

fieldname doesnt contain any special character , for example as above "=".