<?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: Transfering 0 byte file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-0-byte-file/m-p/2888296#M678619</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prasad..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u want to Get a 0 byte file, then Don't use the Transfer At all.&lt;/P&gt;&lt;P&gt;Just use OPEN Dataset .. and CLOSE Dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open dataset v_file for output in binary mode.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;close dataset v_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now check the size of the File.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Sep 2007 04:07:49 GMT</pubDate>
    <dc:creator>varma_narayana</dc:creator>
    <dc:date>2007-09-20T04:07:49Z</dc:date>
    <item>
      <title>Transfering 0 byte file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-0-byte-file/m-p/2888295#M678618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to transfer a 0 byte file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for that I am using the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;begin of i_zero occurs 0,&lt;/P&gt;&lt;P&gt;       dummy,&lt;/P&gt;&lt;P&gt;      end of i_zero,&lt;/P&gt;&lt;P&gt;move '' to i_zero-dummy.&lt;/P&gt;&lt;P&gt;  append i_zero.&lt;/P&gt;&lt;P&gt;  open dataset v_file for output in binary mode.&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;  loop at i_zero.&lt;/P&gt;&lt;P&gt;      transfer i_zero-dummy to v_file.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;  close dataset v_file.&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the above code is giving me a 1 byte size file. is there anyway around this to be able to transfer a 0 byte file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 04:00:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-0-byte-file/m-p/2888295#M678618</guid>
      <dc:creator>prasad_reddy9</dc:creator>
      <dc:date>2007-09-20T04:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Transfering 0 byte file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-0-byte-file/m-p/2888296#M678619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prasad..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u want to Get a 0 byte file, then Don't use the Transfer At all.&lt;/P&gt;&lt;P&gt;Just use OPEN Dataset .. and CLOSE Dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open dataset v_file for output in binary mode.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;close dataset v_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now check the size of the File.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 04:07:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-0-byte-file/m-p/2888296#M678619</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-09-20T04:07:49Z</dc:date>
    </item>
  </channel>
</rss>

