Skip to Content
0
Former Member
Dec 03, 2009 at 09:03 AM

ABAP program issues..Unicode program "ITAB" must have the same structure?

1298 Views

Dear Expert,

I coded below code in se38, but system give below error message, could please kindly advie issue reason? Thanks!!

Error message: A line of "ITAB" and "LINE" are not mutually convertible. In a Unicode program "ITAB" must have the same structure layout as "LINE" independent of the length of a . Unicode character. Unicode character.

REPORT  ZTEST_HIHIHI.

Data: begin of line,
num type i,
sqr type i,
end of line,

itab type standard table of line with key table_line.

Do 5 times.
line-num = sy-index.
line-sqr = sy-index ** 2.
append line to itab.
enddo.

loop at itab into line.
write: / line-num, line-sqr.
endloop.
clear itab.