<?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: how to write a file to shared path? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-a-file-to-shared-path/m-p/3149237#M748831</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;application server..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where we wll store all metrics related to program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Dec 2007 22:50:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-12T22:50:22Z</dc:date>
    <item>
      <title>how to write a file to shared path?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-a-file-to-shared-path/m-p/3149234#M748828</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 need to write a file to shared path, can anyone provide me the code for that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 19:55:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-a-file-to-shared-path/m-p/3149234#M748828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-12T19:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to write a file to shared path?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-a-file-to-shared-path/m-p/3149235#M748829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u need to have the remote name and some of the server related data to FTP ur file.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in se37 search for &lt;STRONG&gt;FTP&lt;/STRONG&gt; u should be finding a bunch of FM..&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZINT_SAPFTP'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;filenm = gv_filenm&lt;/P&gt;&lt;P&gt;ftpcommand = gv_ftpcommand&lt;/P&gt;&lt;P&gt;host = gv_host&lt;/P&gt;&lt;P&gt;localdir = gv_localdir&lt;/P&gt;&lt;P&gt;remotedir = gv_remotedir&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;communication_failure = 1&lt;/P&gt;&lt;P&gt;ftp_host_lookup_failure = 2&lt;/P&gt;&lt;P&gt;ftp_login_failure = 3&lt;/P&gt;&lt;P&gt;ftp_no_filenm = 4&lt;/P&gt;&lt;P&gt;ftp_no_remotedir = 5&lt;/P&gt;&lt;P&gt;host_not_in_netrc = 6&lt;/P&gt;&lt;P&gt;no_filenm = 7&lt;/P&gt;&lt;P&gt;no_localdir = 8&lt;/P&gt;&lt;P&gt;remote_system_privs = 9&lt;/P&gt;&lt;P&gt;system_failure = 10&lt;/P&gt;&lt;P&gt;three_strikes_ftp_connect = 11&lt;/P&gt;&lt;P&gt;unknown_error = 12&lt;/P&gt;&lt;P&gt;unsupported_ftpcommand = 13&lt;/P&gt;&lt;P&gt;OTHERS = 14.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;WRITE: / 'FTP COMMUNICATION VIA ZINT_SAPFTP FAILED TO SEND',&lt;/P&gt;&lt;P&gt;gv_filenm.&lt;/P&gt;&lt;P&gt;CASE sy-subrc.&lt;/P&gt;&lt;P&gt;WHEN 1. WRITE: / 'COMMUNICATION_FAILURE'.&lt;/P&gt;&lt;P&gt;WHEN 2. WRITE: / 'FTP_HOST_LOOKUP_FAILURE'.&lt;/P&gt;&lt;P&gt;WHEN 3. WRITE: / 'FTP_LOGIN_FAILURE'.&lt;/P&gt;&lt;P&gt;WHEN 4. WRITE: / 'FTP_NO_FILENM'.&lt;/P&gt;&lt;P&gt;WHEN 5. WRITE: / 'FTP_NO_REMOTEDIR'.&lt;/P&gt;&lt;P&gt;WHEN 6. WRITE: / 'HOST_NOT_IN_NETRC'.&lt;/P&gt;&lt;P&gt;WHEN 7. WRITE: / 'NO_FILENM'.&lt;/P&gt;&lt;P&gt;WHEN 8. WRITE: / 'NO_LOCALDIR'.&lt;/P&gt;&lt;P&gt;WHEN 9. WRITE: / 'REMOTE_SYSTEM_PRIVS'.&lt;/P&gt;&lt;P&gt;WHEN 10. WRITE: / 'SYSTEM_FAILURE'.&lt;/P&gt;&lt;P&gt;WHEN 11. WRITE: / 'THREE_STRIKES_FTP_CONNECT'.&lt;/P&gt;&lt;P&gt;WHEN 12. WRITE: / 'UNKNOWN_ERROR'.&lt;/P&gt;&lt;P&gt;WHEN 13. WRITE: / 'UNSUPPORTED_FTPCOMMAND'.&lt;/P&gt;&lt;P&gt;WHEN OTHERS. WRITE: / 'ERROR 13'.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 20:00:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-a-file-to-shared-path/m-p/3149235#M748829</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2007-12-12T20:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to write a file to shared path?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-a-file-to-shared-path/m-p/3149236#M748830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shared path - presentation or application server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 20:22:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-a-file-to-shared-path/m-p/3149236#M748830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-12T20:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to write a file to shared path?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-a-file-to-shared-path/m-p/3149237#M748831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;application server..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where we wll store all metrics related to program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 22:50:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-a-file-to-shared-path/m-p/3149237#M748831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-12T22:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to write a file to shared path?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-a-file-to-shared-path/m-p/3149238#M748832</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 get the data to an internal table then use datasets to load the data to Application server by specifying the directory name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;OPEN DATASET &amp;lt;DSNAME&amp;gt; FOR OUTPUT IN TEXT MODE.

LOOP AT ITAB INTO WA.

TRANSFER WA to FILE.

ENDLOOP.

CLOSE DATASET.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 00:05:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-a-file-to-shared-path/m-p/3149238#M748832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-13T00:05:11Z</dc:date>
    </item>
  </channel>
</rss>

