<?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: Unicode 'OPEN 004' error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-open-004-error/m-p/2510321#M567720</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;From your reply what I understand is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET G_DATAFILE for OUTPUT IN TEXT MODE. &lt;/P&gt;&lt;P&gt;would be replaced with &lt;/P&gt;&lt;P&gt;OPEN DATASET G_DATAFILE for OUTPUT IN TEXT MODE ENCODING &amp;lt;b&amp;gt;NON-UNICODE.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is the case, then in which scenario we should use ENCODING utf-8?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yogita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Aug 2007 18:37:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-02T18:37:45Z</dc:date>
    <item>
      <title>Unicode 'OPEN 004' error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-open-004-error/m-p/2510314#M567713</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;For OPEN DATASET statement, I get error OPEN 004 error in UCCHECK.&lt;/P&gt;&lt;P&gt;Can you please let me know what addition should be used to solve this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENCODING DEFAULT ??&lt;/P&gt;&lt;P&gt;ENCODING UTF-8      ??&lt;/P&gt;&lt;P&gt;ENCODING NON_UNICODE  ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per SAP Help, I have added ENCODING DEFAULT but still not sure as I have seen ENCODING NON_UNICODE  in some of the SAP standard programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;yogita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 18:29:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-open-004-error/m-p/2510314#M567713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T18:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode 'OPEN 004' error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-open-004-error/m-p/2510315#M567714</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;We have added the option ENCODING NON-UNICODE and it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shounak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 20:18:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-open-004-error/m-p/2510315#M567714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T20:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode 'OPEN 004' error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-open-004-error/m-p/2510316#M567715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OPEN DATASET lv_file for OUTPUT IN TEXT MODE ENCODING NON-UNICODE.	&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;ENCODING NON_UNICODE&amp;lt;/i&amp;gt; corresponds to  NON-UNICODE in non-Unicode systems. So can somebody clarify if ENCODING utf-8 is the appropriate addition in Unicode system?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yogita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 16:55:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-open-004-error/m-p/2510316#M567715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T16:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode 'OPEN 004' error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-open-004-error/m-p/2510317#M567716</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 to use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
open dataset fnam for output in legacy text mode code page '1100'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 17:19:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-open-004-error/m-p/2510317#M567716</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-08-02T17:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode 'OPEN 004' error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-open-004-error/m-p/2510318#M567717</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 really confuse now. I have many OPEN 004 errors in my UCCHECK list. I wanted to know to solve the OPEN 004 error what is the appropriate addition. As per SAP help documentation, it seems ENCODING utf-8 should solve the OPEN 004 error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody confirm what is the correct addition with ENCODING to solve this error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yogita&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : I had checked all the additions ex. DEFAULT, NON-UNICODE and UTF-8 and it all solves the UCCHECK error, so want to know which is more appropriate solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 18:12:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-open-004-error/m-p/2510318#M567717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T18:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode 'OPEN 004' error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-open-004-error/m-p/2510319#M567718</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;Please find OPEN error in UCCHECK and how to correct the same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN 004 --&amp;gt; Add ENCODING addition to statement i.e.&lt;/P&gt;&lt;P&gt;OPEN DATASET G_DATAFILE for OUTPUT IN TEXT MODE. &lt;/P&gt;&lt;P&gt;would be replaced with &lt;/P&gt;&lt;P&gt;OPEN DATASET G_DATAFILE for OUTPUT IN TEXT MODE ENCODING ON-UNICODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN 002 --&amp;gt; IN..Mode is expected within open dataset command. i.e.&lt;/P&gt;&lt;P&gt;OPEN DATASET wfilepath FOR OUTPUT.&lt;/P&gt;&lt;P&gt;would be replaced with &lt;/P&gt;&lt;P&gt;OPEN DATASET wfilepath FOR OUTPUT IN TEXT MODE ENCODING NON-UNICODE. Or&lt;/P&gt;&lt;P&gt;OPEN DATASET wfilepath FOR OUTPUT IN BINARY MODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN 001--&amp;gt; FOR INPUT, FOR OUTPUT, FOR APPENDING or FOR UPDATE expected! i.e.&lt;/P&gt;&lt;P&gt;OPEN DATASET wfilepath FOR OUTPUT. &lt;/P&gt;&lt;P&gt;would be replaced with &lt;/P&gt;&lt;P&gt;OPEN FOR OUTPUT DATASET wfilepath FOR OUTPUT IN TEXT MODE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;P&gt;Points are always welcome.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 18:25:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-open-004-error/m-p/2510319#M567718</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-08-02T18:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode 'OPEN 004' error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-open-004-error/m-p/2510320#M567719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Yogita&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UCCHECK error OPEN 004 means that the ENCODING option is missing for the OPEN DATASET statement. Under unicode this option is mandatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your SAP system is a Unicode system then there is no difference between ENCODING UTF-8 and ENCODING DEFAULT because under unicode default = utf-8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which encoding you need to choose depends on the file that is to be read or written. Recently I adjusted a file interface program for a customer who had upgraded his systems to ECC 6.0 Unicode (from 4.6c non-Unicode). For almost all file interfaces the ENCODING DEFAULT worked. However, for a specific interface I had to use ENCODING NON_UNICODE.&lt;/P&gt;&lt;P&gt;Thus, for reading files you have to check the read file contents (in debugging mode) to check which encoding works.&lt;/P&gt;&lt;P&gt;For writing files you have to check what the receiver expects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 18:35:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-open-004-error/m-p/2510320#M567719</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-08-02T18:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode 'OPEN 004' error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-open-004-error/m-p/2510321#M567720</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;From your reply what I understand is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET G_DATAFILE for OUTPUT IN TEXT MODE. &lt;/P&gt;&lt;P&gt;would be replaced with &lt;/P&gt;&lt;P&gt;OPEN DATASET G_DATAFILE for OUTPUT IN TEXT MODE ENCODING &amp;lt;b&amp;gt;NON-UNICODE.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is the case, then in which scenario we should use ENCODING utf-8?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yogita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 18:37:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-open-004-error/m-p/2510321#M567720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T18:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode 'OPEN 004' error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-open-004-error/m-p/2510322#M567721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Uwe and All!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 18:45:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-open-004-error/m-p/2510322#M567721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T18:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode 'OPEN 004' error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-open-004-error/m-p/2510323#M567722</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;As per my understanding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unlike other standard code pages, Unicode defines a character set that includes virtually all characters used in the world and therefore provides a consistent, global character encoding. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When converting from UTF-16 to UTF-8 and algorithm determines the number of bytes required and "inserts" the Lead Byte Indicator and Follow Byte Indicator(s) as needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UTF-8 : Unicode Transformation Format based on 8 bit representation CESU-8 : Compatibility Encoding Scheme of UTF-16 on an 8-bit base. UTF-16 : Unicode Transformation Format based on 16 bit representation. UTF-32 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each encoding offers advantages and disadvantages. The 8-bit encodings are well-suited for data transfer, because all 7-bit US ASCII characters retain the same code points and this makes communication with legacy, non-Unicode systems easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 18:46:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-open-004-error/m-p/2510323#M567722</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-08-02T18:46:40Z</dc:date>
    </item>
  </channel>
</rss>

