‎2007 Dec 20 11:20 AM
Hi Experts
I tried the following code in smartform,
loop at i_bil into w_bil.
READ TABLE i_konv INTO w_konv index 1.
endloop.
says the error as
A line of "I_KONV" and "W_KONV" are not mutually convertible in a Unicode program. Unicode program.
What could be the reason actually.
Thanks in advance.
Regards
Rajaram
‎2007 Dec 20 11:24 AM
Hi,
declare w_konv like this
data : w_konv type konv.
also decalre the internal table i_konv like thsi
data : i_konv type table of konv.
Regards,
nagaraj
‎2007 Dec 20 11:24 AM
Hi,
declare w_konv like this
data : w_konv type konv.
also decalre the internal table i_konv like thsi
data : i_konv type table of konv.
Regards,
nagaraj
‎2007 Dec 20 11:31 AM
why what could be the reason of not working while another method of declaration.
‎2007 Dec 20 11:39 AM
Hi Ram,
I feel you are in the lastest version of ABAP.
SAP recommends you to use TYPE for table and data declarations, rather than using LIKE.
Might be they have stopped doing so in the current version with Unicode.
So declare work area and internal table using TYPE statements.
Hope it helps.
Lokesh
‎2007 Dec 20 11:28 AM
Hi,
Internal table I_KONV and workarea W_KONV should be of same type.
DATA: i_KONV type standard teble of KONV,
w_KONV type KONV.
Rgds,
Pankaj