<?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: application server file downloading in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-file-downloading/m-p/4202623#M1004437</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;&lt;/P&gt;&lt;P&gt;use following logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Compile the file path&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CONCATENATE text-t10 sy-datum c_txt INTO v_fname_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Open the filepath on the application server for writing&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  OPEN DATASET v_fname_out FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check if the file could be opened&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Loop at the internal table and transfer the contents to the file specified at the path&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    LOOP AT itab INTO wa.&lt;/P&gt;&lt;P&gt;      TRANSFER wa TO v_fname_out FOR APPENDING.&lt;/P&gt;&lt;P&gt;      CLEAR wa.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Close the dataset&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLOSE DATASET v_fname_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;srilatha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jul 2008 10:09:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-16T10:09:12Z</dc:date>
    <item>
      <title>application server file downloading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-file-downloading/m-p/4202621#M1004435</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;I have very urgent requiremnts for this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The data extract needs to be downloaded on SAP application server ( take whatever path accessible to you). &lt;/P&gt;&lt;P&gt;2. Thereafter for every run, it should check if the file available in the same path and if yes then append data to this file instead of creating new one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. If file is not available then create new file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest me, how to do this.&lt;/P&gt;&lt;P&gt;it's very urgent&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2008 10:04:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-file-downloading/m-p/4202621#M1004435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-16T10:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: application server file downloading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-file-downloading/m-p/4202622#M1004436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OPEN DATASET dsn FOR APPENDING.  As it says in the help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"If the file specified already exists, it is opened and the file pointer is set at the end of the file. If the file specified does not exist, it is created"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good, isn't it?  You don't even have to write any logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2008 10:06:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-file-downloading/m-p/4202622#M1004436</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-07-16T10:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: application server file downloading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-file-downloading/m-p/4202623#M1004437</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;&lt;/P&gt;&lt;P&gt;use following logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Compile the file path&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CONCATENATE text-t10 sy-datum c_txt INTO v_fname_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Open the filepath on the application server for writing&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  OPEN DATASET v_fname_out FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check if the file could be opened&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Loop at the internal table and transfer the contents to the file specified at the path&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    LOOP AT itab INTO wa.&lt;/P&gt;&lt;P&gt;      TRANSFER wa TO v_fname_out FOR APPENDING.&lt;/P&gt;&lt;P&gt;      CLEAR wa.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Close the dataset&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLOSE DATASET v_fname_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;srilatha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2008 10:09:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-file-downloading/m-p/4202623#M1004437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-16T10:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: application server file downloading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-file-downloading/m-p/4202624#M1004438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   Open the file using 'OPEN DATASET ....'&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;   Loop your internal table where in use command TRANSFER to transfer the contents of the file to application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Phani Diwakar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: MVPhani Diwakar on Jul 16, 2008 12:11 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2008 10:10:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-file-downloading/m-p/4202624#M1004438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-16T10:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: application server file downloading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-file-downloading/m-p/4202625#M1004439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; hi,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; use following logic&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; * Compile the file path&lt;/P&gt;&lt;P&gt;&amp;gt;   CONCATENATE text-t10 sy-datum c_txt INTO v_fname_out.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; * Open the filepath on the application server for writing&lt;/P&gt;&lt;P&gt;&amp;gt;   OPEN DATASET v_fname_out FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; * Check if the file could be opened&lt;/P&gt;&lt;P&gt;&amp;gt;   IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; *   Loop at the internal table and transfer the contents to the file specified at the path&lt;/P&gt;&lt;P&gt;&amp;gt;     LOOP AT itab INTO wa.&lt;/P&gt;&lt;P&gt;&amp;gt;       TRANSFER wa TO v_fname_out FOR APPENDING.&lt;/P&gt;&lt;P&gt;&amp;gt;       CLEAR wa.&lt;/P&gt;&lt;P&gt;&amp;gt;     ENDLOOP.&lt;/P&gt;&lt;P&gt;&amp;gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; * Close the dataset&lt;/P&gt;&lt;P&gt;&amp;gt;   CLOSE DATASET v_fname_out.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; regards,&lt;/P&gt;&lt;P&gt;&amp;gt; srilatha&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, but what if the file &lt;EM&gt;couldn't&lt;/EM&gt; be opened?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2008 10:14:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-file-downloading/m-p/4202625#M1004439</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-07-16T10:14:15Z</dc:date>
    </item>
  </channel>
</rss>

