<?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 error cx_sy_conversion _codepage in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-cx-sy-conversion-codepage/m-p/6450323#M1413648</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have copied code page 1100 and created a new code page .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LATIN CAPITAL LETTER Z WITH CARON (Ž)  U+017D has been added to the new segment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are writing file on the application server.&lt;/P&gt;&lt;P&gt;The abap statement used is&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OPEN DATASET lv_string FOR OUTPUT IN LEGACY TEXT MODE CODE PAGE P_CODE  MESSAGE lv_message.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is that in quality system I am able to write data which contains Ž&lt;/P&gt;&lt;P&gt;but in production system it raises an exception cx_sy_conversion_codepage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest what can be done to resolve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Shraddha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Dec 2009 12:43:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-29T12:43:15Z</dc:date>
    <item>
      <title>error cx_sy_conversion _codepage</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-cx-sy-conversion-codepage/m-p/6450323#M1413648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have copied code page 1100 and created a new code page .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LATIN CAPITAL LETTER Z WITH CARON (Ž)  U+017D has been added to the new segment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are writing file on the application server.&lt;/P&gt;&lt;P&gt;The abap statement used is&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OPEN DATASET lv_string FOR OUTPUT IN LEGACY TEXT MODE CODE PAGE P_CODE  MESSAGE lv_message.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is that in quality system I am able to write data which contains Ž&lt;/P&gt;&lt;P&gt;but in production system it raises an exception cx_sy_conversion_codepage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest what can be done to resolve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Shraddha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 12:43:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-cx-sy-conversion-codepage/m-p/6450323#M1413648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-29T12:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: error cx_sy_conversion _codepage</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-cx-sy-conversion-codepage/m-p/6450324#M1413649</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;Try opening the dataset in TEXt mode encoding default.this normally works.&lt;/P&gt;&lt;P&gt;e.g. OPEN DATASET p_out FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;try to retreive the code page of the frontend system using FM NLS_GET_FRONTEND_CP and then do as follows&lt;/P&gt;&lt;P&gt; OPEN DATASET p_out FOR OUTPUT IN LEGACY TEXT MODE CODE PAGE gf_cp IGNORING CONVERSION ERRORS REPLACEMENT CHARACTER '#'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or lastly&lt;/P&gt;&lt;P&gt;you catch the execption using try and end try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;DATA: g_oref TYPE REF TO cx_root.&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;        TRANSFER g_output TO p_out.&lt;/P&gt;&lt;P&gt;      CATCH cx_sy_conversion_codepage INTO g_oref.&lt;/P&gt;&lt;P&gt;        g_text = g_oref-&amp;gt;get_text( ).&lt;/P&gt;&lt;P&gt;    ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Amber&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 13:10:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-cx-sy-conversion-codepage/m-p/6450324#M1413649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-29T13:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: error cx_sy_conversion _codepage</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-cx-sy-conversion-codepage/m-p/6450325#M1413650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please refer to OSS note 1179254. and read &lt;A href="http://www.sapnet.ru/abap_docu/ABAPREAD_DATASET.htm" target="test_blank"&gt;http://www.sapnet.ru/abap_docu/ABAPREAD_DATASET.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is all the content in character format and is it unicode format?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 13:18:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-cx-sy-conversion-codepage/m-p/6450325#M1413650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-29T13:18:08Z</dc:date>
    </item>
  </channel>
</rss>

