04-14-2008 7:26 AM
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.
04-14-2008 7:34 AM
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.
04-14-2008 7:29 AM
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
04-14-2008 7:34 AM
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.
04-14-2008 7:35 AM
04-14-2008 7:46 AM
tutorial to make ur code Unicode complaint
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
04-14-2008 7:52 AM
Thanks for the replies, PBS answer helped. Points rewarded.
Thanks and Regards,
Srihari.
04-14-2008 7:50 AM
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 )