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: 

Unicode error

Former Member
0 Kudos
407

Hi all

I am getting this error.

both these tables( with header line) have no common fields.

and error is coming in this lines of code :

MOVE I_TIMS_TAB TO BOL_DETAIL_TAB.

Error : "BOL_DETAIL_TAB" and "I_TIMS_TAB" are not mutually convertible.In Unicode programs, "BOL_DETAIL_TAB" must have the same structure layout as "I_TIMS_TAB", independent of the length of a Unicode character.

what should be substitute of this line of code in unicode compliant system without any damage to data.

with regards

Mandeep.

Helpful answers will be rewarded.

5 REPLIES 5

Former Member
0 Kudos
88

Hi...

you cannot copy itabs whose datatypes are not same.

but u can do like tyhis.(field names should be same for this..)

data:

begin of itab occurs 0,

f1 type i,

f2 type c,

end of itab.

data:

begin of gtab occurs 0,

f1 type c,

f2 type c,

end of gtab.

loop at itab.

move-corresponding itab to gtab.

append gtab.

endloop.

Message was edited by:

Rammohan Nagam

Former Member
0 Kudos
88

Try with this CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PNNNN_TO_PRELP

Former Member
0 Kudos
88

Hi Mandeep,

You can't move data of itab1 to itab2 if they are having different structure, different data elements.

either use same data elements to all the fiels in both table. or make the second table as string and then use this command.

Reward points if helpful.

regards,

Hemant

Message was edited by:

Hemant Goyal

Former Member
0 Kudos
88

hi manipal

my suggestion is to create a internal tabe which consists fields of both our database tables and

move databasetable1[] to internal table[].

loop at internal table.

move-corresponding fields of internaltable to database table2.

endloop.

if helpful reward some points.

with regards,

suresh babu aluri.

Former Member
0 Kudos
88

Hi Mandeep,

Make thesecond table as

data : begin of i_tab2,

record type string,

end of i_tab2.

then use move statement

Regards,

Hemant

Message was edited by:

Hemant Goyal