Skip to Content
author's profile photo Former Member
Former Member

... are not mutually convertible in a Unicode program.

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Jan 09, 2007 at 02:18 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 02:20 PM

    hi Joris,

    loop at i_ylsrcord.

    move i_ylsrcord to h_linebuffer. ---><b> You are trying to pass an internal table to a string </b>

    TRANSFER h_linebuffer to h_file.

    endloop.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Rich Heilman

      > <i>move i_ylsrcord to h_linebuffer. <b>---> You are

      > trying to pass an internal table to a string</b></i>

      >

      >

      > No, he is not, he is passing the header line to the

      > string.

      >

      > Regards,

      > Rich Heilman

      -:( Your right....I didn't notice it -:)

      Greetings,

      Blag.

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 02:17 PM

    <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
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 02:21 PM

    Hi Joris,

    Try declaring h_linebuffer as below.

    data: h_linebuffer(132).

    Hope it helps..

    Regards

    Sekar

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.