<?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: Get data from FTP Server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-data-from-ftp-server/m-p/2806125#M655762</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 run ftp, as an external program. Make a configuration file and put it into the same dir, in your ftp exists, and make the ftp to use the config file.&lt;/P&gt;&lt;P&gt;Try using SXPG_COMMAND_EXECUTE fm to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can query the content of a directory with EPS_GET_DIRECTORY_LISTING&lt;/P&gt;&lt;P&gt; fm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use OPEN DATASET - CLOSE DATASET to manipulate the files within the directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Sep 2007 13:18:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-07T13:18:56Z</dc:date>
    <item>
      <title>Get data from FTP Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-data-from-ftp-server/m-p/2806123#M655760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I should access an external server(FTP) and get data which is in the form of flat file.&lt;/P&gt;&lt;P&gt;The Flat files are in a server. Eg:- ftp://b2b.xyz.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone let me how I can do this in an SAP Program.&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>Fri, 07 Sep 2007 13:08:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-data-from-ftp-server/m-p/2806123#M655760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-07T13:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Get data from FTP Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-data-from-ftp-server/m-p/2806124#M655761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;User Trasaction CG3Y/CG3Z&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Prashant Patil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 13:16:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-data-from-ftp-server/m-p/2806124#M655761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-07T13:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Get data from FTP Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-data-from-ftp-server/m-p/2806125#M655762</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 run ftp, as an external program. Make a configuration file and put it into the same dir, in your ftp exists, and make the ftp to use the config file.&lt;/P&gt;&lt;P&gt;Try using SXPG_COMMAND_EXECUTE fm to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can query the content of a directory with EPS_GET_DIRECTORY_LISTING&lt;/P&gt;&lt;P&gt; fm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use OPEN DATASET - CLOSE DATASET to manipulate the files within the directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 13:18:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-data-from-ftp-server/m-p/2806125#M655762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-07T13:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get data from FTP Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-data-from-ftp-server/m-p/2806126#M655763</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;You can use the FMs  for FTP communication.&lt;/P&gt;&lt;P&gt;FTP_CONNECT&lt;/P&gt;&lt;P&gt;FTP_COMMAND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the other FMs in SE37 using FTP_*  SEARCH...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Alvaro Tejada Galindo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 13:19:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-data-from-ftp-server/m-p/2806126#M655763</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-09-07T13:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get data from FTP Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-data-from-ftp-server/m-p/2806127#M655764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to command promp(or DOS prompt).&lt;/P&gt;&lt;P&gt;Change directory to place where you want to store file (which you get from 3rd party machine).&lt;/P&gt;&lt;P&gt;Type command " FTP ipaddress"&lt;/P&gt;&lt;P&gt;it prompts for UserId and followed by password to login to remote machine.&lt;/P&gt;&lt;P&gt;Enter ftp command "get filename" to get file to your machine.&lt;/P&gt;&lt;P&gt;Enter command" Bye" to exit from FTP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Let me know if you need any more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Alvaro Tejada Galindo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 13:20:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-data-from-ftp-server/m-p/2806127#M655764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-07T13:20:13Z</dc:date>
    </item>
  </channel>
</rss>

