Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

an error about internal table

Dear all,

I wrote a following program, but got an error.

REPORT Z_SIMPLE_ITAB.

data : begin of line,

num type i,

sqr type i,

end of line.

data 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.

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.

Thanks you

Tags:
Former Member
Former Member replied

HI,

Change this

data itab type standard table of line with key table_line.

to

data itab type table of line.

Regards,

Atish

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question