when trying to write data to a file, I get this message:
<b>error message:</b>
"H_LINEBUFFER" and "I_YLSRCORD" are not mutually convertible in a Unicode program.
<b>my declaration:</b>
DATA: h_linebuffer TYPE string.
DATA: i_ylsrcord LIKE /bic/aylsrcord00 OCCURS 0 WITH HEADER LINE.
<b>place where I get the error:</b>
loop at i_ylsrcord.
move i_ylsrcord to h_linebuffer.
TRANSFER h_linebuffer to h_file.
endloop.
Do you even need the string?
loop at i_ylsrcord. *move i_ylsrcord to h_linebuffer. TRANSFER i_ylsrcord to h_file. endloop.
Regards,
RIch Heilman
<b>DATA: i_ylsrcord LIKE /bic/aylsrcord00 OCCURS 0 WITH HEADER LINE.</b>
It's declared as an Internal Table while
<b>DATA: h_linebuffer TYPE string.</b>
It's declared as a field....That's why you can't assign i_ylsrcord to h_linebuffer. You can pass fields not tables to a field type....
Greetings,
Blag.
Add a comment