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 Problem

Former Member
0 Likes
625

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

1 ACCEPTED SOLUTION
Read only

former_member404244
Active Contributor
0 Likes
599

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

4 REPLIES 4
Read only

former_member404244
Active Contributor
0 Likes
600

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

Read only

0 Likes
599

why what could be the reason of not working while another method of declaration.

Read only

0 Likes
599

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

Read only

Former Member
0 Likes
599

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