<?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 Re: OPEN DATASET error in Binary Mode in Unicode system in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error-in-binary-mode-in-unicode-system/m-p/7101869#M1508570</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Closing this thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Aug 2010 06:39:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-11T06:39:15Z</dc:date>
    <item>
      <title>OPEN DATASET error in Binary Mode in Unicode system</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error-in-binary-mode-in-unicode-system/m-p/7101866#M1508567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have done technical upgrade from 4.7 to ECC 6.0 version. We have a problem with the OPEN DATASET statement. In the 4.7 version of the code, the statement OPEN DATASET in BINARY mode was used to write the file. Now in ECC 6.0 system, as it is unicode enabled is altering the output. The ouput is altered becaused of the insertion of space between each character in the output. i know i can use statements like OPEN DATASET in TEXT mode ENCODING DEFAULT. But the requiement is to get the file in the same format (BINARY format) w/o altering the output as was in the 4.7 system. I have changed the code as OPEN DATASET in LEGACY BINAY mode. Can anyone confirm if this is the correct way of getting the output in BINARY format. If not, can you suggest an appropriate alternative.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rupesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rupesh_nitk &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Posts: 1&lt;/P&gt;&lt;P&gt;Joined: July 22nd, 2010, 8:44 pm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 16:30:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error-in-binary-mode-in-unicode-system/m-p/7101866#M1508567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-22T16:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET error in Binary Mode in Unicode system</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error-in-binary-mode-in-unicode-system/m-p/7101867#M1508568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on your comments it sounds to me that you actually had more like a text file in 4.7 than a binary file. I.e. I'm thinking for example of a flat file with fixed length records: In such a file you would still have text information (encoded probably with the default code page from your SAP system), yet you would have more control over what data should be written (no automated newline handling).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With your release upgrade to ECC 6.0 you probably also Unicode-enabled the system. On the application server all data is stored in [UTF-16|http://help.sap.com/abapdocu_70/en/ABENUNICODE_SYSTEM_GLOSRY.htm] and thus each character occupies 2 bytes. For some alternatives on how to do code page conversions you can check out the [wiki entry on character coding conversion|http://wiki.sdn.sap.com/wiki/display/ABAP/Character&lt;EM&gt;encoding&lt;/EM&gt;conversion].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&amp;lt;div style="text-align:left"&amp;gt;Can anyone confirm if this is the correct way of getting the output in BINARY format.&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Nobody can answer this question. What you have to do is figure out which format and encoding should be used for the file and then adapt your coding to write the correct format. Obviously this doesn't necessarily have to be the same encoding as you had before. I.e. your SAP application server also changed from non-Unicode to Unicode, so it's possible that trying to produce the exact same file format/encoding as you had before is also not the right approach... (admitted most likely it is, but it's always better to evaluate such things).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jul 2010 00:22:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error-in-binary-mode-in-unicode-system/m-p/7101867#M1508568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-23T00:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET error in Binary Mode in Unicode system</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error-in-binary-mode-in-unicode-system/m-p/7101868#M1508569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was solved using the same solution i discussed with you all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rupesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 06:33:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error-in-binary-mode-in-unicode-system/m-p/7101868#M1508569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-11T06:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET error in Binary Mode in Unicode system</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error-in-binary-mode-in-unicode-system/m-p/7101869#M1508570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Closing this thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 06:39:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error-in-binary-mode-in-unicode-system/m-p/7101869#M1508570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-11T06:39:15Z</dc:date>
    </item>
  </channel>
</rss>

