<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic CodePage conversion error while writing data to the App Server file... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/codepage-conversion-error-while-writing-data-to-the-app-server-file/m-p/2351066#M519040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting codepage conversion error while transfering data on to the App Server file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;"At the conversion of a text from codepage '4103' to codepage '4110':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- a character was found that cannot be displayed in one of the two&lt;/P&gt;&lt;P&gt;codepages;&lt;/P&gt;&lt;P&gt;- or it was detected that this conversion is not supported"&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:       w_temp(3000).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        TRANSFER w_temp TO p_file_o.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know, if anyone knows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Puneet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2007 20:37:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-31T20:37:33Z</dc:date>
    <item>
      <title>CodePage conversion error while writing data to the App Server file...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/codepage-conversion-error-while-writing-data-to-the-app-server-file/m-p/2351066#M519040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting codepage conversion error while transfering data on to the App Server file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;"At the conversion of a text from codepage '4103' to codepage '4110':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- a character was found that cannot be displayed in one of the two&lt;/P&gt;&lt;P&gt;codepages;&lt;/P&gt;&lt;P&gt;- or it was detected that this conversion is not supported"&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:       w_temp(3000).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        TRANSFER w_temp TO p_file_o.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know, if anyone knows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Puneet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 20:37:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/codepage-conversion-error-while-writing-data-to-the-app-server-file/m-p/2351066#M519040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T20:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: CodePage conversion error while writing data to the App Server file...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/codepage-conversion-error-while-writing-data-to-the-app-server-file/m-p/2351067#M519041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, you can try class  cl_abap_conv_OUT_ce and cl_abap_conv_in_ce.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call them like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL METHOD cl_abap_conv_OUT_ce=&amp;gt;create&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;              encoding    = '4103'                          "UTF-8&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             endian      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             replacement = '#'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             input       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        RECEIVING&lt;/P&gt;&lt;P&gt;          conv        = R_CONV_O&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL METHOD cl_abap_conv_in_ce=&amp;gt;create&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;              encoding    = '4110'                          "UTF-8&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             endian      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             replacement = '#'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             input       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        RECEIVING&lt;/P&gt;&lt;P&gt;          conv        = R_CONV_I&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL METHOD R_CONV_O-&amp;gt;convert&lt;/P&gt;&lt;P&gt;            ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL METHOD R_CONV_I-&amp;gt;convert&lt;/P&gt;&lt;P&gt;            ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just convert your codepage 4103 text into xstring, and convert it back into text of codepage 4110.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 01:27:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/codepage-conversion-error-while-writing-data-to-the-app-server-file/m-p/2351067#M519041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T01:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: CodePage conversion error while writing data to the App Server file...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/codepage-conversion-error-while-writing-data-to-the-app-server-file/m-p/2351068#M519042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you send me the complete code for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting error "R_CONV_O is unknown". How does this has to be declared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will I be passing my w_temp (data structure) to any of these function modules as input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Puneet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 16:31:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/codepage-conversion-error-while-writing-data-to-the-app-server-file/m-p/2351068#M519042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T16:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: CodePage conversion error while writing data to the App Server file...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/codepage-conversion-error-while-writing-data-to-the-app-server-file/m-p/2351069#M519043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,  declaration like this:&lt;/P&gt;&lt;P&gt;data: R_CONV_O TYPE REF TO  cl_abap_conv_OUT_ce.&lt;/P&gt;&lt;P&gt;data: R_CONV_I TYPE REF TO  cl_abap_conv_in_ce.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the instanted class R_CONV_O convert you 4101 codepage text into xstring,&lt;/P&gt;&lt;P&gt;then use instanted class R_CONV_I convert them back to 4103 codepage text.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 01:32:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/codepage-conversion-error-while-writing-data-to-the-app-server-file/m-p/2351069#M519043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T01:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: CodePage conversion error while writing data to the App Server file...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/codepage-conversion-error-while-writing-data-to-the-app-server-file/m-p/2351070#M519044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did the coding in following way. But still short dump is coming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;"At the conversion of a text from codepage '4103' to codepage '4110':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- a character was found that cannot be displayed in one of the two&lt;/P&gt;&lt;P&gt;codepages;&lt;/P&gt;&lt;P&gt;- or it was detected that this conversion is not supported"&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: r_conv_o TYPE REF TO cl_abap_conv_out_ce,&lt;/P&gt;&lt;P&gt;           r_conv_i TYPE REF TO cl_abap_conv_in_ce,&lt;/P&gt;&lt;P&gt;           w_temp2(4000),&lt;/P&gt;&lt;P&gt;           w_temp1 TYPE xstring,&lt;/P&gt;&lt;P&gt;           xw_temp TYPE xstring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL METHOD cl_abap_conv_out_ce=&amp;gt;create&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            encoding = '4103'                               &lt;/P&gt;&lt;P&gt;          RECEIVING&lt;/P&gt;&lt;P&gt;            conv     = r_conv_o.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL METHOD cl_abap_conv_in_ce=&amp;gt;create&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            encoding = '4110'                              &lt;/P&gt;&lt;P&gt;          RECEIVING&lt;/P&gt;&lt;P&gt;            conv     = r_conv_i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;      w_temp is the INPUT string.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL METHOD r_conv_o-&amp;gt;convert&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            data   = w_temp&lt;/P&gt;&lt;P&gt;            n      = '-1'&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            buffer = w_temp1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           len    = g_int.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        xw_temp = w_temp1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting short dump here below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;        CALL METHOD r_conv_i-&amp;gt;convert&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            input = xw_temp&lt;/P&gt;&lt;P&gt;            n     = '-1'&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            data  = w_temp2.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           len   = g_int.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        TRANSFER w_temp2 TO p_file_o.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know, if you have any idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Puneet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 01:55:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/codepage-conversion-error-while-writing-data-to-the-app-server-file/m-p/2351070#M519044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T01:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: CodePage conversion error while writing data to the App Server file...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/codepage-conversion-error-while-writing-data-to-the-app-server-file/m-p/2351071#M519045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,  puneet.&lt;/P&gt;&lt;P&gt;Sorry for the delay reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I made some mistake in the former reply, not the two class, but this one &amp;lt;b&amp;gt;cl_abap_conv_x2x_ce&amp;lt;/b&amp;gt; is be used to realize the codepage conversion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check a SAP standard program, named RSCP_CONVERT_FILE, it is a report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is used to do codepage conversion with this class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you should input a Xstring stream into this class, and set the source Codepage code, and target one, and after some method calling, you will get a xstring buffer which is for the target Codepage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: l_content_in         type xstring,
      l_content_out        type xstring,
      l_file_list          type table of string,
      l_filename_in        type string,
      l_filename_out       type string,
      l_files              type string,
      l_file_table         type filetable,
      l_user_action        type i,
      l_gui_title          type string,
      l_button             type smp_dyntxt,
      l_dummylink          type table of tline,
      l_conv               type ref to cl_abap_conv_x2x_ce,
      l_encoding_in        type abap_encoding,
      l_encoding_out       type abap_encoding,
      l_text               type string,
      l_answer(1)          type c,
      l_overwrite_all(1)   type c,
      l_tcp00_wa_in        type tcp00,
      l_tcp00_wa_out       type tcp00,
      l_xtab               type cpt_x255,
      l_size               type i,
      l_rc                 type i,
      l_exist              type abap_bool.

.......

 try.
      call method cl_abap_conv_x2x_ce=&amp;gt;create
        exporting
          in_encoding  = l_encoding_in
          replacement  = '#'
          ignore_cerr  = igncerr
          out_encoding = l_encoding_out
          input        = l_content_in
        receiving
          conv         = l_conv.
    catch cx_parameter_invalid_type.
      message x000(00).
    catch cx_parameter_invalid_range .
      message x000(00).
    catch cx_sy_codepage_converter_init .
      l_text = 'Error creating converter object for codepage pair: &amp;amp;1 &amp;amp;2'(001).
      replace '&amp;amp;1' with cpin into l_text.
      replace '&amp;amp;2' with cpout into l_text.
      write :/ l_text.
      exit.
  endtry.
.....
  try.
        call method l_conv-&amp;gt;reset
          exporting
            input = l_content_in.
      catch cx_parameter_invalid_range .
        message x000(00).
      catch cx_sy_codepage_converter_init .
        l_text = 'Error during stream input: &amp;amp;1'(005).
        replace '&amp;amp;1' with l_filename_in into l_text.
        write :/ l_text.
        continue.
    endtry.
.......
    try.
        call method l_conv-&amp;gt;convert_c.
      catch cx_sy_codepage_converter_init .
        l_text = 'Error cx_sy_codepage_converter_init during conversion: &amp;amp;1'(006).
        replace '&amp;amp;1' with l_filename_in into l_text.
        write :/ l_text.
        continue.
      catch cx_sy_conversion_codepage .
        l_text = 'Conversion error: &amp;amp;1'(007).
        replace '&amp;amp;1' with l_filename_in into l_text.
        write :/ l_text.
        continue.
    endtry.
.....
    l_content_out = l_conv-&amp;gt;get_out_buffer( ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 13:37:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/codepage-conversion-error-while-writing-data-to-the-app-server-file/m-p/2351071#M519045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-06T13:37:27Z</dc:date>
    </item>
  </channel>
</rss>

