2007 Apr 03 2:46 PM
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.
2007 Apr 03 2:54 PM
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
2007 May 11 12:32 PM
Try with this CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PNNNN_TO_PRELP
2007 May 11 12:45 PM
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
2007 May 11 12:46 PM
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.
2007 May 11 12:46 PM
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