Application Development and Automation 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: 
Read only

Problem regarding Unicode check in ECC6.0

Former Member
0 Likes
857

Hi all,

Recently this program has been upgraded from 4.6 to ECC 6.0 and the program is actvie and worked for so many days without any errors.

But if i tried to execute now i am getting the following error and the program is active only.

OUTPUT1 and WA_EBAN1 are not mutually convertible. In Unicode programs , OUTPUT1must have the same structure layout as WA_EBAN1 , Independent of length of a unicode characte.

OUTPUT1 is structure with only one field

WA_EBAN1 is a structure with 10 fields

Please dont say that both structures should be same..as i allready said that the previously worked for so many days with same code.

Regards

Ajay

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
819

>

> OUTPUT1 and WA_EBAN1 are not mutually convertible. In Unicode programs , OUTPUT1must have the same structure layout > as WA_EBAN1 , Independent of length of a unicode characte.

>

> OUTPUT1 is structure with only one field

> WA_EBAN1 is a structure with 10 fields

>

> Please dont say that both structures should be same..as i allready said that the previously worked for so many days with same code.

Hello Ajay,

I am sure there must be some fields in these structures which are not mutually convertible in Unicode environment (e.g., Integer to Character, String to Xstring, Packed to Character etc.) Please check if there are any fields in these structures which are not mutually convertible.

If you want to execute the report in ECC6.0 you have make the necessary changes there is no alternative to this.

Hope this helps.

BR,

Suhas

9 REPLIES 9
Read only

Former Member
0 Likes
819

while moving data from internal table use MOVE-CORRESPONDING.

Clear work area.

Read only

Former Member
0 Likes
819

i guess there would either be some check like if blocks for these two structures or some assignment operation. (check the line where its giving error)

and directly pass that field only to the second structure.

Read only

former_member404244
Active Contributor
0 Likes
819

Hi,

Please check if there was any modification done to any of the structres recently...due to which u might be getting the error.

Regards,

Nagaraj

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
820

>

> OUTPUT1 and WA_EBAN1 are not mutually convertible. In Unicode programs , OUTPUT1must have the same structure layout > as WA_EBAN1 , Independent of length of a unicode characte.

>

> OUTPUT1 is structure with only one field

> WA_EBAN1 is a structure with 10 fields

>

> Please dont say that both structures should be same..as i allready said that the previously worked for so many days with same code.

Hello Ajay,

I am sure there must be some fields in these structures which are not mutually convertible in Unicode environment (e.g., Integer to Character, String to Xstring, Packed to Character etc.) Please check if there are any fields in these structures which are not mutually convertible.

If you want to execute the report in ECC6.0 you have make the necessary changes there is no alternative to this.

Hope this helps.

BR,

Suhas

Read only

rainer_hbenthal
Active Contributor
0 Likes
819

Without knowledge of the structure of both variables nothing can be said.

Read only

former_member209217
Active Contributor
0 Likes
819

Hi Ajay,

If u want to move the data from one structure to another which are not convertible try with field symbols


field-symbols:<x_struct1> type x, <x_struct2> type x.
assign output1 to <x_struct1>
assign wa_eban1 to <x_struct2>
 
<x_strcut 2> = <x_strcut1>.

And finally append the values in the target structure.

Regards,

lakshman.

Read only

0 Likes
819

Go to table trdir give your program name and check the field ucchek with X. If uccheck field value is x then this program checking unicode syntax and it will give unicode sysntax error

Read only

0 Likes
819

Please refer note no 547844 for unicode check karnal upgrade. In your case basis people muct have applied addition patch to the kernal upgrade.

Read only

0 Likes
819

Or your basis person must have added parameters "abap/unicode_check" via tr code RZ10.