Application Development and Automation 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: 
Read only

Unicode Error

Former Member
0 Likes
296

Hi,

I am working in ECC6.0 and I have got a Unicode error with an old piece of code.

LOOP AT ITAB1 WHERE

ITM_NUMBER = ITAB2-ITM_NUMBER.

MODIFY ITAB1 FROM ITAB2.

ENDLOOP.

Kindly suggest what changes can be made to remove the error.

Regards,

Anoop

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
280
you have to use work areas in ECC 6.0

remove the header line for ITAB1 and ITAB2.

data : wa_itab1 like itab1,
         wa_itab2 like itab2.

LOOP AT ITAB1 into wa_itab1 WHERE
ITM_NUMBER = wa_ITAB2-ITM_NUMBER.
MODIFY wa_ITAB1 FROM wa_ITAB2.
modify itab1 from wa_itab1.
ENDLOOP.
1 REPLY 1
Read only

Former Member
0 Likes
281
you have to use work areas in ECC 6.0

remove the header line for ITAB1 and ITAB2.

data : wa_itab1 like itab1,
         wa_itab2 like itab2.

LOOP AT ITAB1 into wa_itab1 WHERE
ITM_NUMBER = wa_ITAB2-ITM_NUMBER.
MODIFY wa_ITAB1 FROM wa_ITAB2.
modify itab1 from wa_itab1.
ENDLOOP.