<?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: Strange problem with TRANSFER statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-transfer-statement/m-p/1424281#M203430</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;First check your Open dataset working properly or not. then see the transfer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;OPEN DATASET file for output in text mode encoding default.

if sy-subrc = 0.
loop at itab.
transfer itab to file.
endloop.

close dataset.
if sy-subrc &amp;lt;&amp;gt; 0.
"error.....
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jun 2006 15:52:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-22T15:52:07Z</dc:date>
    <item>
      <title>Strange problem with TRANSFER statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-transfer-statement/m-p/1424277#M203426</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 facing a strange problem:&lt;/P&gt;&lt;P&gt;I am transferring data to file on application server.&lt;/P&gt;&lt;P&gt;Sometimes the data is duplicated or a additional corrupted line is transferred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no way in code that such data be sent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any possibility that, if the TRANSFER statement fails internally system retries to send data without making sy-subrc 0 causing some additional data to be written?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone faced similar problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Shreyas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help will be rewarded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 15:38:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-transfer-statement/m-p/1424277#M203426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T15:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Strange problem with TRANSFER statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-transfer-statement/m-p/1424278#M203427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no such possibility of resending the data.&lt;/P&gt;&lt;P&gt;MOreover Transfer statement doesn't return a Sy-subrc at all.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 15:43:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-transfer-statement/m-p/1424278#M203427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T15:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Strange problem with TRANSFER statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-transfer-statement/m-p/1424279#M203428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check whether there is any junk line added to the internal table in the program before transferring it to the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 15:45:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-transfer-statement/m-p/1424279#M203428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T15:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Strange problem with TRANSFER statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-transfer-statement/m-p/1424280#M203429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;put a break point before transfer statement &amp;amp; check what text is transferring in each loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is NO such possibility of sending data on its own by SAP. whatever is there in the internal table only will be stored in the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 15:48:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-transfer-statement/m-p/1424280#M203429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T15:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Strange problem with TRANSFER statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-transfer-statement/m-p/1424281#M203430</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;First check your Open dataset working properly or not. then see the transfer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;OPEN DATASET file for output in text mode encoding default.

if sy-subrc = 0.
loop at itab.
transfer itab to file.
endloop.

close dataset.
if sy-subrc &amp;lt;&amp;gt; 0.
"error.....
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 15:52:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-transfer-statement/m-p/1424281#M203430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T15:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Strange problem with TRANSFER statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-transfer-statement/m-p/1424282#M203431</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;  In the TRANSFER statement has used,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          &amp;lt;u&amp;gt;&amp;lt;b&amp;gt;The runtime system produces a runtime error message if there was a problem during the execution of the TRANSFER statement. A possible error might be that free space on the drive is exhausted.&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can use LENGTH addition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By default, data is transferred in the length of the respective field or structure. If you prefer to transfer a different number of bytes, add the parameter LENGTH to the TRANSFER command followed by the actual length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&amp;lt;b&amp;gt;Sample Code:&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: len type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_customers.&lt;/P&gt;&lt;P&gt;   len = strlen(it_customers-name).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    TRANSFER it_customers-name to filename LENGTH len.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 16:02:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-transfer-statement/m-p/1424282#M203431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T16:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Strange problem with TRANSFER statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-transfer-statement/m-p/1424283#M203432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Verify if you already have the file in the directory. See if you are downloading in append mode rather than overwrite mode. This will probably explain the duplicate records. Assuming your internal table is ok, download it to desktop, and see if you see the corrupted records. Also check if your internal table has fields that are not character or character like fields. You should not download fields that are pack, decimal, currency etc types.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 16:12:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-transfer-statement/m-p/1424283#M203432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T16:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Strange problem with TRANSFER statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-transfer-statement/m-p/1424284#M203433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way, what are you using to look at the downloaded data? Sometimes, depending on what you are using to view the data, you may have unexpected display.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 16:48:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-transfer-statement/m-p/1424284#M203433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T16:48:26Z</dc:date>
    </item>
  </channel>
</rss>

