<?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: Transfer a xml file from application server to another server using FTP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-a-xml-file-from-application-server-to-another-server-using-ftp/m-p/4975090#M1159335</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Iri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got it resolved by using Report RSFTP002.&lt;/P&gt;&lt;P&gt;I was not able to figure out how to use it before.&lt;/P&gt;&lt;P&gt;It has the same functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Gayurav raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Jan 2009 16:33:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-21T16:33:36Z</dc:date>
    <item>
      <title>Transfer a xml file from application server to another server using FTP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-a-xml-file-from-application-server-to-another-server-using-ftp/m-p/4975079#M1159324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am stuck in this situtaion.&lt;/P&gt;&lt;P&gt;My interface generates a xml file on an application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i need to read the xml file generated and transfer it to another system using FTP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can use READ DATASET to read the file from the application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And use the below function modules to transfer it to another system&lt;/P&gt;&lt;P&gt;     HTTP_SCRAMBLE.&lt;/P&gt;&lt;P&gt;     FTP_CONNECT&lt;/P&gt;&lt;P&gt;     CONCATENATE 'put' src_file_dest into variable.&lt;/P&gt;&lt;P&gt;     FTP_COMMAND with command = variable.&lt;/P&gt;&lt;P&gt;     FTP_DISCONNECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my question is:&lt;/P&gt;&lt;P&gt;   - Is it correct????&lt;/P&gt;&lt;P&gt;   - I am getting an cerror = 3 while using FTP_CONNECT. is it an authorization issue???&lt;/P&gt;&lt;P&gt;     if yes, what is the issue???&lt;/P&gt;&lt;P&gt;   - How to connect the file read from READ DATASET to the FTP Function Modules ????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Gaurav Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 09:23:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-a-xml-file-from-application-server-to-another-server-using-ftp/m-p/4975079#M1159324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T09:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer a xml file from application server to another server using FTP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-a-xml-file-from-application-server-to-another-server-using-ftp/m-p/4975080#M1159325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the following set of FTP commands..&lt;/P&gt;&lt;P&gt;This code gets the file (NOT the content) from the server and sends it to the FTP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


*********start send file to FTP********************
* FTP commands : 1. ascii
*       2. cd 
*       3. lcd
*       4. put 



call function 'HTTP_SCRAMBLE'
    exporting
      source      = x_pwd
      sourcelen   = dstlen
      key         = key
    importing
      destination = destin.

  clear pass.
  pass = destin.


  call function 'FTP_CONNECT'
       exporting
            user            = x_user
*            PASSWORD       = X_PWD
            password        = pass
            host            = x_host
            rfc_destination = x_dest
       importing
            handle          = hdl.


*  COMMAND ascii --&amp;gt;
  refresh : x_result.
  call function 'FTP_COMMAND'
    exporting
      handle        = hdl
      command       = cmd_ascii
      compress      = compress
    tables
      data          = x_result
    exceptions
      command_error = 1
      tcpip_error   = 2.




*command cd SAP\ --&amp;gt;
  split x_file at '\' into dummy ftp_file.
  concatenate x_cmd1 dummy into dummy2 separated by space.
  concatenate dummy2 '\' into cmd_cd.
  refresh : x_result.

  call function 'FTP_COMMAND'
    exporting
      handle        = hdl
      command       = cmd_cd
      compress      = compress
    tables
      data          = x_result
    exceptions
      command_error = 1
      tcpip_error   = 2.

 constants: winslash(1)   value  '\',
            unixslash(1)  value  '/'.

 call 'C_SAPGPARAM' id 'NAME'  field 'DIR_HOME'
                     id 'VALUE' field  tempdir.



* command lcd SERVER\usr\....\DIR_HOME --?
concatenate 'lcd' tempdir into cmd_lcd separated by space.
refresh : x_result.
 call function 'FTP_COMMAND'
    exporting
      handle        = hdl
      command       = cmd_lcd
      compress      = compress
    tables
      data          = x_result
    exceptions
      command_error = 1
      tcpip_error   = 2.


* COMMAND put file --&amp;gt;
concatenate 'put' ftp_file into cmd_put separated by space.
 refresh : x_result.
  call function 'FTP_COMMAND'
    exporting
      handle        = hdl
      command       = cmd_put
      compress      = compress
    tables
      data          = x_result
    exceptions
      command_error = 1
      tcpip_error   = 2.


* command ls --&amp;gt;
  refresh : x_result.
  call function 'FTP_COMMAND'
    exporting
      handle        = hdl
      command       = cmd2
      compress      = compress
    tables
      data          = x_result
    exceptions
      command_error = 1
      tcpip_error   = 2.


  call function 'FTP_DISCONNECT'
    exporting
      handle = hdl.
******* end send file to FTP*****
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Iria Koutsogianni on Jan 19, 2009 11:50 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 10:50:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-a-xml-file-from-application-server-to-another-server-using-ftp/m-p/4975080#M1159325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T10:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer a xml file from application server to another server using FTP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-a-xml-file-from-application-server-to-another-server-using-ftp/m-p/4975081#M1159326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Iria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to send the file as well as the content to the server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Gaurav Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 10:19:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-a-xml-file-from-application-server-to-another-server-using-ftp/m-p/4975081#M1159326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-21T10:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer a xml file from application server to another server using FTP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-a-xml-file-from-application-server-to-another-server-using-ftp/m-p/4975082#M1159327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!!&lt;/P&gt;&lt;P&gt;The content is also transfered, what i meant is that with this code it's like copy the file from the server &amp;amp; paste it to the FTP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it and let me know!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 10:22:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-a-xml-file-from-application-server-to-another-server-using-ftp/m-p/4975082#M1159327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-21T10:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer a xml file from application server to another server using FTP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-a-xml-file-from-application-server-to-another-server-using-ftp/m-p/4975083#M1159328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Iria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try and let you know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more thing, how can we generate multiple files on the application server.&lt;/P&gt;&lt;P&gt;I am using open and close dataset inside a loop.&lt;/P&gt;&lt;P&gt;but it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Gaurav raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 10:25:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-a-xml-file-from-application-server-to-another-server-using-ftp/m-p/4975083#M1159328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-21T10:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer a xml file from application server to another server using FTP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-a-xml-file-from-application-server-to-another-server-using-ftp/m-p/4975084#M1159329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Normally it should work, but how do u transfer data to the files??&lt;/P&gt;&lt;P&gt;Please provide the code here so i can understand the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 10:40:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-a-xml-file-from-application-server-to-another-server-using-ftp/m-p/4975084#M1159329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-21T10:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer a xml file from application server to another server using FTP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-a-xml-file-from-application-server-to-another-server-using-ftp/m-p/4975085#M1159330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Iria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working fine now.&lt;/P&gt;&lt;P&gt;I had added a Count so the files were not coming together at the end.&lt;/P&gt;&lt;P&gt;Sorry for the silly issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Gaurav raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 10:44:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-a-xml-file-from-application-server-to-another-server-using-ftp/m-p/4975085#M1159330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-21T10:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer a xml file from application server to another server using FTP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-a-xml-file-from-application-server-to-another-server-using-ftp/m-p/4975086#M1159331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are no "silly" questions..&lt;/P&gt;&lt;P&gt;Let me know if u get the FTP code to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Iria&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 10:46:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-a-xml-file-from-application-server-to-another-server-using-ftp/m-p/4975086#M1159331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-21T10:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer a xml file from application server to another server using FTP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-a-xml-file-from-application-server-to-another-server-using-ftp/m-p/4975087#M1159332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will let you know asap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 10:50:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-a-xml-file-from-application-server-to-another-server-using-ftp/m-p/4975087#M1159332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-21T10:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer a xml file from application server to another server using FTP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-a-xml-file-from-application-server-to-another-server-using-ftp/m-p/4975088#M1159333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gaurav&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to transfer files from one SAP application server to another SAP application server then I like to (ab)use the fm &lt;STRONG&gt;EPS_FTP_PUT&lt;/STRONG&gt;. All you need is a RFC destination between the two systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 11:01:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-a-xml-file-from-application-server-to-another-server-using-ftp/m-p/4975088#M1159333</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-01-21T11:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer a xml file from application server to another server using FTP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-a-xml-file-from-application-server-to-another-server-using-ftp/m-p/4975089#M1159334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to transfer file to a Non-SAP server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and REgards&lt;/P&gt;&lt;P&gt;Gaurav Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 11:15:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-a-xml-file-from-application-server-to-another-server-using-ftp/m-p/4975089#M1159334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-21T11:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer a xml file from application server to another server using FTP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-a-xml-file-from-application-server-to-another-server-using-ftp/m-p/4975090#M1159335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Iri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got it resolved by using Report RSFTP002.&lt;/P&gt;&lt;P&gt;I was not able to figure out how to use it before.&lt;/P&gt;&lt;P&gt;It has the same functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Gayurav raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 16:33:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-a-xml-file-from-application-server-to-another-server-using-ftp/m-p/4975090#M1159335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-21T16:33:36Z</dc:date>
    </item>
  </channel>
</rss>

