<?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: Ftp from sap server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-from-sap-server/m-p/7456654#M1553501</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 you have to connect to the ftp using FTP_connect which ask for the id, password and HOST name , which return the handle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then pass the command either binary or ascii , the type of file you want to trasfter as in ftp_command along with the handle. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then again make one more command &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;put /usr/tmp/abc.txt   /home/td_F/abc.txt&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and again call the ftp_command with the handle you get during the ftp connect. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will transfer the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: It will recognize the local commands or file path .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;for eg put c:\test to /home/td_F/abc.txt&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this you have to require the put it into the application server then FTP it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Dec 2010 08:56:08 GMT</pubDate>
    <dc:creator>himanshu_gupta2</dc:creator>
    <dc:date>2010-12-14T08:56:08Z</dc:date>
    <item>
      <title>Ftp from sap server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-from-sap-server/m-p/7456652#M1553499</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 transfer my file from sap server directory to a location at ftp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just cant figure out how to reach that directory. I wrote to that directory with open dataset but cant transfer it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying this program to test my command lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RSFTP002&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my sap server directory is when i check al11 it shows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E:\usr\sap\PDD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How should i write this in that program as parameter command&lt;/P&gt;&lt;P&gt;i tried&lt;/P&gt;&lt;P&gt;lcd /usr/sap/PDD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it says invalid directory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also in my code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE 'lcd' w_file_path INTO command SEPARATED BY space.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'FTP_COMMAND'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        handle        = mi_handle&lt;/P&gt;&lt;P&gt;        command       = command&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        data          = mtab_data&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        tcpip_error   = 1&lt;/P&gt;&lt;P&gt;        command_error = 2&lt;/P&gt;&lt;P&gt;        data_error    = 3&lt;/P&gt;&lt;P&gt;        OTHERS        = 4.&lt;/P&gt;&lt;P&gt;    CHECK sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i just get same error please help me what to write for the file path&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 13:49:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-from-sap-server/m-p/7456652#M1553499</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-03T13:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Ftp from sap server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-from-sap-server/m-p/7456653#M1553500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;better use rsftp004 !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;grx&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 14:53:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-from-sap-server/m-p/7456653#M1553500</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2010-12-03T14:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Ftp from sap server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-from-sap-server/m-p/7456654#M1553501</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 you have to connect to the ftp using FTP_connect which ask for the id, password and HOST name , which return the handle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then pass the command either binary or ascii , the type of file you want to trasfter as in ftp_command along with the handle. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then again make one more command &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;put /usr/tmp/abc.txt   /home/td_F/abc.txt&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and again call the ftp_command with the handle you get during the ftp connect. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will transfer the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: It will recognize the local commands or file path .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;for eg put c:\test to /home/td_F/abc.txt&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this you have to require the put it into the application server then FTP it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 08:56:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-from-sap-server/m-p/7456654#M1553501</guid>
      <dc:creator>himanshu_gupta2</dc:creator>
      <dc:date>2010-12-14T08:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Ftp from sap server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-from-sap-server/m-p/7456655#M1553502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for answers.&lt;/P&gt;&lt;P&gt;I solved it. The problem was the ftp connection options from sm59. SAPFTP from aplication server solved it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 09:52:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-from-sap-server/m-p/7456655#M1553502</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-14T09:52:57Z</dc:date>
    </item>
  </channel>
</rss>

