09-25-2008 10:27 AM
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
09-25-2008 3:48 PM
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.
09-25-2008 11:18 AM
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
09-25-2008 3:48 PM
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.
09-25-2008 3:53 PM
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