‎2009 Aug 14 8:12 AM
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
‎2009 Aug 14 8:28 AM
>
> 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
‎2009 Aug 14 8:14 AM
while moving data from internal table use MOVE-CORRESPONDING.
Clear work area.
‎2009 Aug 14 8:15 AM
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.
‎2009 Aug 14 8:18 AM
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
‎2009 Aug 14 8:28 AM
>
> 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
‎2009 Aug 14 8:30 AM
Without knowledge of the structure of both variables nothing can be said.
‎2009 Aug 14 8:32 AM
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.
‎2009 Aug 14 9:46 AM
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
‎2009 Aug 14 10:26 AM
Please refer note no 547844 for unicode check karnal upgrade. In your case basis people muct have applied addition patch to the kernal upgrade.
‎2009 Aug 14 10:32 AM
Or your basis person must have added parameters "abap/unicode_check" via tr code RZ10.