<?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: extract files from external server.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/extract-files-from-external-server/m-p/3941706#M942912</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;1., 4. - Depends on the external server/operating system type.&lt;/P&gt;&lt;P&gt;2. You have to create an setting for your FTP program on the server. After it is working at operating system level, you can call this FTP command with the following function module: SXPG_COMMAND_EXECUTE&lt;/P&gt;&lt;P&gt;3. OPEN DATASET ... CLOSE DATASET commands will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just found this one:&lt;/P&gt;&lt;P&gt;For single files you can use EPS_FTP_PUT or EPS_FTP_GET (depending on whether you push or pull your files).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For multiple files&lt;/P&gt;&lt;P&gt;EPS_FTP_MPUT and EPS_FTP_MGET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'EPS_FTP_PUT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import parameters Value&lt;/P&gt;&lt;P&gt;RFC_DESTINATION = NONE&lt;/P&gt;&lt;P&gt;LOCAL_FILE = filename&lt;/P&gt;&lt;P&gt;LOCAL_DIRECTORY = /dir1/dir2&lt;/P&gt;&lt;P&gt;REMOTE_FILE = filename&lt;/P&gt;&lt;P&gt;REMOTE_DIRECTORY = /dir1&lt;/P&gt;&lt;P&gt;OVERWRITE_MODE = F " force -&amp;gt; overwrite existing file&lt;/P&gt;&lt;P&gt;TEXT_MODE = B " binary&lt;/P&gt;&lt;P&gt;TRANSMISSION_MONITOR X " display transmission monitor&lt;/P&gt;&lt;P&gt;*RECORDS_PER_TRANSFER 10&lt;/P&gt;&lt;P&gt;*REQUESTED_FILE_SIZE 0&lt;/P&gt;&lt;P&gt;*MONITOR_TITLE&lt;/P&gt;&lt;P&gt;*MONITOR_TEXT1&lt;/P&gt;&lt;P&gt;*MONITOR_TEXT2&lt;/P&gt;&lt;P&gt;*PROGRESS_TEXT&lt;/P&gt;&lt;P&gt;*OBJECT_NAME&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;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 May 2008 10:39:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-30T10:39:31Z</dc:date>
    <item>
      <title>extract files from external server..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extract-files-from-external-server/m-p/3941705#M942911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to connect to an external non SAP server, from which i need to extract invoice files.&lt;/P&gt;&lt;P&gt;Invoice files are of two types:&lt;/P&gt;&lt;P&gt;1. &lt;STRONG&gt;.dat&lt;/STRONG&gt; format files which contain invoice data&lt;/P&gt;&lt;P&gt;2. &lt;STRONG&gt;.PDF&lt;/STRONG&gt; or &lt;STRONG&gt;.JPEG&lt;/STRONG&gt; documents, which are supporting documents for those invoice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question are&lt;/P&gt;&lt;P&gt;1. How do i connect to the external server?&lt;/P&gt;&lt;P&gt;2. Do i have to do a FTP from SAP to that file server?&lt;/P&gt;&lt;P&gt;3. Do i have to fetch the &lt;STRONG&gt;.dat&lt;/STRONG&gt; file using dataset statments?&lt;/P&gt;&lt;P&gt;4. &lt;STRONG&gt;What are the basis and network related activities involved to get connected to that external server?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any inputs and help on this is highly appreciated and rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Simha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Simha on May 30, 2008 12:21 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 10:21:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extract-files-from-external-server/m-p/3941705#M942911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T10:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: extract files from external server..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extract-files-from-external-server/m-p/3941706#M942912</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;1., 4. - Depends on the external server/operating system type.&lt;/P&gt;&lt;P&gt;2. You have to create an setting for your FTP program on the server. After it is working at operating system level, you can call this FTP command with the following function module: SXPG_COMMAND_EXECUTE&lt;/P&gt;&lt;P&gt;3. OPEN DATASET ... CLOSE DATASET commands will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just found this one:&lt;/P&gt;&lt;P&gt;For single files you can use EPS_FTP_PUT or EPS_FTP_GET (depending on whether you push or pull your files).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For multiple files&lt;/P&gt;&lt;P&gt;EPS_FTP_MPUT and EPS_FTP_MGET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'EPS_FTP_PUT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import parameters Value&lt;/P&gt;&lt;P&gt;RFC_DESTINATION = NONE&lt;/P&gt;&lt;P&gt;LOCAL_FILE = filename&lt;/P&gt;&lt;P&gt;LOCAL_DIRECTORY = /dir1/dir2&lt;/P&gt;&lt;P&gt;REMOTE_FILE = filename&lt;/P&gt;&lt;P&gt;REMOTE_DIRECTORY = /dir1&lt;/P&gt;&lt;P&gt;OVERWRITE_MODE = F " force -&amp;gt; overwrite existing file&lt;/P&gt;&lt;P&gt;TEXT_MODE = B " binary&lt;/P&gt;&lt;P&gt;TRANSMISSION_MONITOR X " display transmission monitor&lt;/P&gt;&lt;P&gt;*RECORDS_PER_TRANSFER 10&lt;/P&gt;&lt;P&gt;*REQUESTED_FILE_SIZE 0&lt;/P&gt;&lt;P&gt;*MONITOR_TITLE&lt;/P&gt;&lt;P&gt;*MONITOR_TEXT1&lt;/P&gt;&lt;P&gt;*MONITOR_TEXT2&lt;/P&gt;&lt;P&gt;*PROGRESS_TEXT&lt;/P&gt;&lt;P&gt;*OBJECT_NAME&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;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 10:39:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extract-files-from-external-server/m-p/3941706#M942912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T10:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: extract files from external server..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extract-files-from-external-server/m-p/3941707#M942913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tamás,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you brief meon how to connect and the basis activity to set up the connectivity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 09:06:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extract-files-from-external-server/m-p/3941707#M942913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-02T09:06:28Z</dc:date>
    </item>
  </channel>
</rss>

