2011 Apr 22 8:37 AM
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
2011 Apr 22 9:33 AM
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.
2011 Apr 22 10:04 AM
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.
2011 Apr 22 10:22 AM
2011 Apr 22 11:27 AM
2011 Apr 22 12:06 PM
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.
2011 Apr 22 12:51 PM
Yes. ECC 6 is unicode check system , previous one was not.
So , I have to take some other new method of doing it.
thanks.
2011 Apr 22 2:17 PM
Alternatively, turn OFF the unicode check in attributes for this one program.
2011 Oct 13 12:25 PM
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 "=".