<?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 Open Dataset BINARY mode problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-binary-mode-problem/m-p/6372944#M1402152</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;&lt;/P&gt;&lt;P&gt;We have done an upgrade from 4.6c to ECC 6.0. We have a program which downloads a BINARY file on application server. After upgrade the file output has blank spaces between each character. Any pointers to fix this issue would be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;4.6c output&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;MAS02   ORDERS01   ORDERS02   EDI_DC403  &lt;/P&gt;&lt;P&gt;MAS03   ORDERS01   ORDERS02   EDI_DC401&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;ECC 6.0 output&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;M A S 0 2   O R D E R S 0 1   O R D E R S 0 2   E D I _ D C 4 0 3  &lt;/P&gt;&lt;P&gt;M A S 0 3   O R D E R S 0 1   O R D E R S 0 2   E D I _ D C 4 0 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every character has a blank space in between&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The syntax in the program is as follows&lt;/STRONG&gt; :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;outfile_path = '/tmp/test2.z'.

  OPEN DATASET outfile_path FOR output IN BINARY MODE.

  rec_out = 'MATMAS02 ORDERS01 ORDERS02 EDI_DC403'.
  CONCATENATE rec_out crlf INTO rec_out.
  clear seg_length.
  seg_length = strlen( rec_out ).
  TRANSFER rec_out TO outfile_path LENGTH seg_length.

  clear rec_out.
  rec_out = 'MATMAS03 ORDERS01 ORDERS02 EDI_DC401'
  CONCATENATE rec_out crlf INTO rec_out.
  clear seg_length.
  seg_length = strlen( rec_out ).
  TRANSFER rec_out TO outfile_path LENGTH seg_length.

  CLOSE DATASET outfile_path.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Dec 2009 04:02:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-11T04:02:11Z</dc:date>
    <item>
      <title>Open Dataset BINARY mode problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-binary-mode-problem/m-p/6372944#M1402152</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;&lt;/P&gt;&lt;P&gt;We have done an upgrade from 4.6c to ECC 6.0. We have a program which downloads a BINARY file on application server. After upgrade the file output has blank spaces between each character. Any pointers to fix this issue would be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;4.6c output&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;MAS02   ORDERS01   ORDERS02   EDI_DC403  &lt;/P&gt;&lt;P&gt;MAS03   ORDERS01   ORDERS02   EDI_DC401&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;ECC 6.0 output&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;M A S 0 2   O R D E R S 0 1   O R D E R S 0 2   E D I _ D C 4 0 3  &lt;/P&gt;&lt;P&gt;M A S 0 3   O R D E R S 0 1   O R D E R S 0 2   E D I _ D C 4 0 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every character has a blank space in between&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The syntax in the program is as follows&lt;/STRONG&gt; :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;outfile_path = '/tmp/test2.z'.

  OPEN DATASET outfile_path FOR output IN BINARY MODE.

  rec_out = 'MATMAS02 ORDERS01 ORDERS02 EDI_DC403'.
  CONCATENATE rec_out crlf INTO rec_out.
  clear seg_length.
  seg_length = strlen( rec_out ).
  TRANSFER rec_out TO outfile_path LENGTH seg_length.

  clear rec_out.
  rec_out = 'MATMAS03 ORDERS01 ORDERS02 EDI_DC401'
  CONCATENATE rec_out crlf INTO rec_out.
  clear seg_length.
  seg_length = strlen( rec_out ).
  TRANSFER rec_out TO outfile_path LENGTH seg_length.

  CLOSE DATASET outfile_path.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2009 04:02:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-binary-mode-problem/m-p/6372944#M1402152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-11T04:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Open Dataset BINARY mode problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-binary-mode-problem/m-p/6372945#M1402153</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 guess that you converted to Unicode during upgrade as well. I guess that your extra spaces are a second byte of UTF-16. You should try with LEGACY BINARY MODE  where you can defined a codepage. Have a look at the ABAP documentation for command OPEN DATASET. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2009 04:29:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-binary-mode-problem/m-p/6372945#M1402153</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2009-12-11T04:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Open Dataset BINARY mode problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-binary-mode-problem/m-p/6372946#M1402154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes that correct. I missed that out earlier. If i change the Open dataset binary mode to Open dataset legacy binary mode then i get the desired output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if i run the same program in another ECC6 system with Open dataset binary mode i get the desired output.  So i have following concerns :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Why is the open dataset binary mode not working in my system&lt;/P&gt;&lt;P&gt;2. Is there any impact of using legacy binary mode instead of binary mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My program :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZTEST1234.

DATA: outfile_path LIKE rlgrap-filename,
      seg_length TYPE i VALUE 0.

DATA: BEGIN OF rec_out,
      char(2000) TYPE c.
DATA: END OF rec_out.

DATA: BEGIN OF crlf,
          lf(1) TYPE c,
      END OF crlf.

CLASS: CL_ABAP_CONV_IN_CE DEFINITION LOAD.
crlf-lf = CL_ABAP_CONV_IN_CE=&amp;gt;UCCP('000A').
*crlf-lf = CL_ABAP_CHAR_UTILITIES=&amp;gt;cr_lf.


start-of-selection.

  outfile_path = '/tmp/test2.z'.

    OPEN DATASET outfile_path FOR output IN BINARY MODE.
 
  rec_out = 'MATMAS02 ORDERS01 ORDERS02 EDI_DC403'.
  CONCATENATE rec_out crlf INTO rec_out.
  clear seg_length.
  seg_length = strlen( rec_out ).
  TRANSFER rec_out TO outfile_path LENGTH seg_length.
 
  clear rec_out.
  rec_out = 'MATMAS03 ORDERS01 ORDERS02 EDI_DC401'
  CONCATENATE rec_out crlf INTO rec_out.
  clear seg_length.
  seg_length = strlen( rec_out ).
  TRANSFER rec_out TO outfile_path LENGTH seg_length.
 
  CLOSE DATASET outfile_path.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2009 04:34:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-binary-mode-problem/m-p/6372946#M1402154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-11T04:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Open Dataset BINARY mode problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-binary-mode-problem/m-p/6372947#M1402155</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;1) Unicode wasn't mandatory for all Netweaver 7.0 installation. So maybe the other system wasn't installed as Unicode system. Just my guess. &lt;/P&gt;&lt;P&gt;2) I don't know about any impact. Definitely, the system will have to convert it to another code page, hence some performance degradation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2009 04:48:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-binary-mode-problem/m-p/6372947#M1402155</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2009-12-11T04:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Open Dataset BINARY mode problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-binary-mode-problem/m-p/6372948#M1402156</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 checked the other system in which open dataset BINARY mode worked &amp;amp; that system is also unicode enabled !&lt;/P&gt;&lt;P&gt;Then what is it that my system is missing because of which i am getting such a output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2009 05:48:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-binary-mode-problem/m-p/6372948#M1402156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-11T05:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Open Dataset BINARY mode problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-binary-mode-problem/m-p/6372949#M1402157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;guys how do you define the file to open for writing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here whats the extension ? ".Z" in the file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 06:05:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-binary-mode-problem/m-p/6372949#M1402157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-09T06:05:55Z</dc:date>
    </item>
  </channel>
</rss>

