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

Unicode Error

Former Member
0 Likes
946

Hi Gurus,

We are on ecc 6.0 version, and for the following code it is throwing an unicode error saying:

"the type of the database table and work area "i_ekpo" are not unicode-convertible"

TYPES: BEGIN OF T_EKPO,

MANDT LIKE EKPO-MANDT,

EBELN LIKE EKPO-EBELN,

EBELP LIKE EKPO-EBELP,

WERKS LIKE EKPO-WERKS,

MENGE LIKE EKPO-MENGE,

MEINS LIKE EKPO-MEINS,

NETWR LIKE EKPO-NETWR,

NETPR LIKE EKPO-NETPR,

END OF T_EKPO.

data:i_ekpo type standard table of t_ekpo with header line.

data:wa_ekpo type t_ekpo.

select * from ekpo into table i_ekpo.

Thanks and Regards,

Vishwa.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
884

this will solve your problem.

tables : ekpo.

TYPES: BEGIN OF T_EKPO,

MANDT LIKE EKPO-MANDT,

EBELN LIKE EKPO-EBELN,

EBELP LIKE EKPO-EBELP,

WERKS LIKE EKPO-WERKS,

MENGE LIKE EKPO-MENGE,

MEINS LIKE EKPO-MEINS,

NETWR LIKE EKPO-NETWR,

NETPR LIKE EKPO-NETPR,

END OF T_EKPO.

data:i_ekpo type standard table of t_ekpo with header line.

data:wa_ekpo type t_ekpo.

select * from ekpo into corresponding fields of table i_ekpo.

6 REPLIES 6
Read only

Former Member
0 Likes
884

Hi,

Take out "with header line" extension from declaration. You have explicit work area for the same. Then, y do u need internal table with header line?

Hope this solves your problem.

regards,

ramya

Read only

Former Member
0 Likes
885

this will solve your problem.

tables : ekpo.

TYPES: BEGIN OF T_EKPO,

MANDT LIKE EKPO-MANDT,

EBELN LIKE EKPO-EBELN,

EBELP LIKE EKPO-EBELP,

WERKS LIKE EKPO-WERKS,

MENGE LIKE EKPO-MENGE,

MEINS LIKE EKPO-MEINS,

NETWR LIKE EKPO-NETWR,

NETPR LIKE EKPO-NETPR,

END OF T_EKPO.

data:i_ekpo type standard table of t_ekpo with header line.

data:wa_ekpo type t_ekpo.

select * from ekpo into corresponding fields of table i_ekpo.

Read only

Former Member
0 Likes
884

Hi,

Please refer the link below:

Thanks,

Sriram Ponna.

Read only

Former Member
0 Likes
884

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0c5d414-bc11-2a10-76b5-bfd29454...

tutorial to make ur code Unicode complaint

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30781270-bc11-2a10-2a8d-f890e25e...

basic idea about Unicode ..

" internal table not convertible" basically happens cos of ne of the field type is not similar .

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Apr 14, 2008 6:14 PM

Read only

0 Likes
884

Thanks for the replies, PBS answer helped. Points rewarded.

Thanks and Regards,

Srihari.

Read only

Former Member
0 Likes
884

ur error here is that u are selecting all the fields from database table to ur itab ... the structure of both is different

u can use

move correspondence

itab type ekpo

itab with header line n wa ..(both mean the same )