‎2007 Oct 16 8:33 AM
Hello experts,
When I import the following paragraph of code from non-unicode system to unicode system, I met a problem related to 'not mutually convertible'.
L_T_TEST[] = T_INDX[].
LOOP AT L_T_TEST ASSIGNING <F_TEST>.
<F_TEST>-ZUNAME = SY-UNAME.
<F_TEST>-ZDATUM = SY-DATUM.
<F_TEST>-ZTIMLO = SY-TIMLO.
ENDLOOP.
T_INDX[] = L_T_TEST[].
T_INDX STRUCTURE INDX.
L_T_TEST like other structure(structure A).
<F_TEST> refer to the same structure as L_T_TEST.
Structure A is totally different from table INDX, so in unicode system this paragraph of code is not allowed.
Notes: Field CLUSTD in table INDX is quite especial.
Could anyone help me?
Thanks & Best regards,
Christina
‎2007 Oct 16 8:38 AM
Hi,
as the structures L_T_TEST and T_INDX are different u cannot move directly...in the new SAP version...in order to achieve ur functionality u have to move field by field to it..try like this
Assuming field1 ,field2 and field3 are thre in both the tables.
LOOP AT L_T_TEST .
move :L_T_TEST -field1 to t_indx-field1,
L_T_TEST -field2 to t_indx-field2,
L_T_TEST -field3 to t_indx-field3.
append t_indx.
endloop.
Regards,
Nagaraj
‎2007 Oct 16 8:38 AM
Hi,
as the structures L_T_TEST and T_INDX are different u cannot move directly...in the new SAP version...in order to achieve ur functionality u have to move field by field to it..try like this
Assuming field1 ,field2 and field3 are thre in both the tables.
LOOP AT L_T_TEST .
move :L_T_TEST -field1 to t_indx-field1,
L_T_TEST -field2 to t_indx-field2,
L_T_TEST -field3 to t_indx-field3.
append t_indx.
endloop.
Regards,
Nagaraj
‎2007 Oct 16 8:43 AM
Thanks Nagaraj
Unfortunately, there is no corresponding fields in T_INDX.
From my point of view, basing on the psotion of fields, all these three fields will go to field CLUSTD in table INDX finally.
‎2007 Oct 16 8:40 AM
Hi,
You can not asssign two diffrerent structure in Unicode Environment.
Try using move corresponding and move common individual fields to other wor area and append it to itab.
Regards
Shiva