Skip to Content
0
Former Member
Jan 20, 2006 at 08:29 PM

Casting Problem

354 Views

What is wrong with this code? I'm on ECC 5.0 Unicode system.

data: begin of itab occurs 0,

line(255),

end of itab.

data: begin of xtab occurs 0.

data: include structure BAPICONTENT255,

end of xtab.

field-symbols: <fs> type BAPICONTENT255.

Assuming that itab has data, we now move contents from itab to xtab.

loop at itab.

ASSIGN itab-line TO <fs> CASTING.

xtab = <fs>.

append xtab.

endloop.