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: 

Unicode Error

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

Please refer the link below:

Thanks,

Sriram Ponna.

Former Member
0 Kudos

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

0 Kudos

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

Thanks and Regards,

Srihari.

Former Member
0 Kudos

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 )