<?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: Read Files from a Remote Server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005714#M1607158</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check out SAP help below:&lt;/P&gt;&lt;P&gt;[http://help.sap.com/saphelp_nw70ehp1/helpdata/en/c7/eff2280d0511d3a6300060087832f8/content.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and search SDN Wiki for examples. You should get some.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2011 15:00:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-06-16T15:00:22Z</dc:date>
    <item>
      <title>Read Files from a Remote Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005708#M1607152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My client wants my program to read files on a remote server. He does not want to place the files on SAP server, or the read it locally because the program will run in background. Is there a way to read files in a remote server like no SAP server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 14:45:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005708#M1607152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-16T14:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Read Files from a Remote Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005709#M1607153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a BAPI .. and code init to read data from remote server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 14:50:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005709#M1607153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-16T14:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Read Files from a Remote Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005710#M1607154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jose,&lt;/P&gt;&lt;P&gt;                 You can ask your basis to do  the following :&lt;/P&gt;&lt;P&gt;Option 1:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)  Mounting to the Remote server .&lt;/P&gt;&lt;P&gt;2)Then in your code you can use the open data set statement abap statement to read the file and write whereever you want. or copy the file using the command statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option 2:-&lt;/P&gt;&lt;P&gt;Use the FTP FM's to copy the file from the remote server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this answers your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Greetson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 14:55:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005710#M1607154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-16T14:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Read Files from a Remote Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005711#M1607155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've never created a BAPI, for that i can search a tutorial, but what would be the commands or functions to execute. Please give me some sample or a idea. I'm new on ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 14:55:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005711#M1607155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-16T14:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Read Files from a Remote Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005712#M1607156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have the client NFS mount the server to SAP.  In this way, the data will not exist in SAP - but SAP can read it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 14:59:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005712#M1607156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-16T14:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Read Files from a Remote Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005713#M1607157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, but wat is Mounting? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know any FTP FM statements? or a ideia on how to use one in my program to read from remote server and place on the SAP server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 14:59:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005713#M1607157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-16T14:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Read Files from a Remote Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005714#M1607158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check out SAP help below:&lt;/P&gt;&lt;P&gt;[http://help.sap.com/saphelp_nw70ehp1/helpdata/en/c7/eff2280d0511d3a6300060087832f8/content.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and search SDN Wiki for examples. You should get some.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 15:00:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005714#M1607158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-16T15:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Read Files from a Remote Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005715#M1607159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is process that the Basis or Infrastructure team must perform.  It allows SAP and the external box to communuicate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once they are linked, you can write custom ABAP to read the data on the remote server - because will be able to "see" into the remote server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 15:01:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005715#M1607159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-16T15:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Read Files from a Remote Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005716#M1607160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The remote server does not have SAP, will BAPI still be able?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 15:02:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005716#M1607160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-16T15:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Read Files from a Remote Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005717#M1607161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The remote server does not need to change at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once Basis mounts the remote server (using NFS), the SAP boxes will be able to perform OPEN DATASETs, and READs, to the remote server.  In effect, the remote server is just another disk system to SAP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 15:04:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005717#M1607161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-16T15:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Read Files from a Remote Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005718#M1607162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice, so at the SAP server, would it be like a another disc, like e:\ for example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm in the client with a little bit of ruch, they don't have a basis team here. The option with function module is availabe? If so, do you them?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 15:08:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005718#M1607162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-16T15:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Read Files from a Remote Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005719#M1607163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not likely e:\ &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What OS is the client running?  Without a Basis team - you will likely have problems.  I have never heard a company running SAP that does not have a Basis team... yikes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sounds like you will need call in some Basis support from your consulting company.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 15:21:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005719#M1607163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-16T15:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Read Files from a Remote Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005720#M1607164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;A simple way to get files from another server is using FTP functions.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
HTTP_SCRAMBLE (Encyrpted Password)
FTP_CONNECT (user name, Encyrpted Password, ip, rfc_destination = 'SAPFTP' )
FTP_SERVER_TO_R3
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 15:25:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005720#M1607164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-16T15:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Read Files from a Remote Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005721#M1607165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Miguel option is certainly possible depending on the security, etc on the remote server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is some sample code:&lt;/P&gt;&lt;P&gt;DATA: l_slen TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS: c_dest TYPE rfcdes-rfcdest VALUE 'SAPFTP',&lt;/P&gt;&lt;P&gt;c_key TYPE i VALUE 26101957.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;connect to ftp server&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;l_pwd = &amp;lt;password&amp;gt;.&lt;/P&gt;&lt;P&gt;l_slen = STRLEN( l_pwd ).&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HTTP_SCRAMBLE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;SOURCE = l_pwd&lt;/P&gt;&lt;P&gt;sourcelen = l_slen&lt;/P&gt;&lt;P&gt;key = c_key&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;destination = l_pwd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To Connect to the Server using FTP&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'FTP_CONNECT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;user = &amp;lt;userid&amp;gt;&lt;/P&gt;&lt;P&gt;password = l_pwd&lt;/P&gt;&lt;P&gt;host = &amp;lt;host&amp;gt;&lt;/P&gt;&lt;P&gt;rfc_destination = c_dest&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;handle = w_hdl&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;OTHERS = 1.&lt;/P&gt;&lt;P&gt;IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FTP_SERVER_TO_R3'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;handle = w_hdl&lt;/P&gt;&lt;P&gt;fname = l_string&lt;/P&gt;&lt;P&gt;character_mode = 'X'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;text = &amp;lt;internal table&amp;gt;&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;IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4&lt;/P&gt;&lt;P&gt;RAISING invalid_output_file.&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;To disconnect the FTP&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'FTP_DISCONNECT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;handle = w_hdl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To disconnect the RFC Connection&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'RFC_CONNECTION_CLOSE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;destination = c_dest&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;OTHERS = 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 15:32:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005721#M1607165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-16T15:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Read Files from a Remote Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005722#M1607166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank´s to all, i've talked to the basis team and they will take a look&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 20:18:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-files-from-a-remote-server/m-p/8005722#M1607166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-16T20:18:06Z</dc:date>
    </item>
  </channel>
</rss>

