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: 

it's giving error as "i/t" and "var(581)" are not mutually convertible in a

Former Member
0 Kudos

hi experts,

in upgradtion from varaible to internal table .. data is not moving. it's giving error as "i/t" and "var(581)" are not mutually convertible in a Unicode

ex : data : var(600) type c.

parameters : x(45) type c lower case obligatory.

read dataset x into var .

move var(582) to i/t .

i/t have 30 fields.

here it's giving error as it's giving error as "i/t" and "Ivar(581)" are not mutually convertible in a Unicode

how we can move that pls do needy.

regards,

praveen

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi praveen,

it has two solotions.

1. verify in old version to which field the value is got

populated. make the offset and length the i/t.

2.use

cl_abap_container_utilities=>fill_container_c

for this declare a varible with 'string'.

first move the data into declared variable by using above method.

then move the data from the declared varible to the i/t by using move statement.

it will work.

please close it if you are ok with the solution.

you can directly contact me regarding upgrade issues. i will try to help you.

3 REPLIES 3

Former Member
0 Kudos

Praveen

In this case, if i/t is a internal table then it should have Header Line and all columns should be of type Char.. then only you will be able to move char string to the header line...

Thanks

Amol Lohade

Former Member
0 Kudos

hi praveen,

it has two solotions.

1. verify in old version to which field the value is got

populated. make the offset and length the i/t.

2.use

cl_abap_container_utilities=>fill_container_c

for this declare a varible with 'string'.

first move the data into declared variable by using above method.

then move the data from the declared varible to the i/t by using move statement.

it will work.

please close it if you are ok with the solution.

you can directly contact me regarding upgrade issues. i will try to help you.

P561888
Active Contributor
0 Kudos

Hi

This is the main problem in Unicode program. Here what ever u r moving and target fields are not same it is showing this error ,U can follow this way,

By using the Offset u can pass the string to the resp target field ot intab.

Regards,

bharani