<?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: Saving a File in FTP using DSN or FTPCOMMAND in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-a-file-in-ftp-using-dsn-or-ftpcommand/m-p/7061445#M1503371</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;Please  use HTTP_SCRAMBLE' FM before 'FTP_connect" as follows : &lt;/P&gt;&lt;P&gt;*-- FTP_CONNECT requires an encrypted password to work&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HTTP_SCRAMBLE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      SOURCE      = password&lt;/P&gt;&lt;P&gt;      sourcelen   = lv_len&lt;/P&gt;&lt;P&gt;      key         = lv_key&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      destination = password.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FTP_CONNECT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      user                   = ftp_user&lt;/P&gt;&lt;P&gt;      password               = password&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ACCOUNT                =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      host                   = host&lt;/P&gt;&lt;P&gt;      rfc_destination        = 'SAPFTP'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      handle                 = lv_handle&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      not_connected          = 1&lt;/P&gt;&lt;P&gt;      OTHERS                 = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also note that FTP_USER contains the user name of the FTP server, PASSWORD contains the scrambled password received from  'HTTP_SCRAMBLE'. HOST contains the name of server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;P.Bharadwaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Jul 2010 08:11:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-07-19T08:11:18Z</dc:date>
    <item>
      <title>Saving a File in FTP using DSN or FTPCOMMAND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-a-file-in-ftp-using-dsn-or-ftpcommand/m-p/7061442#M1503368</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'm trying to save a file to a remote location in the background using ABAP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried DSN. This didnt work as it writes only to application server SAPUSERS directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried FTPCONNECT and FTPCOMMAND but getting an error connecting to FTP.  (connection failed)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to write a file to a remote location in the background using ABAP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use a VPN gateway to connect to the remote server (location where file are to be saved) and SAP as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 07:32:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-a-file-in-ftp-using-dsn-or-ftpcommand/m-p/7061442#M1503368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-19T07:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Saving a File in FTP using DSN or FTPCOMMAND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-a-file-in-ftp-using-dsn-or-ftpcommand/m-p/7061443#M1503369</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;Try using below logic :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use 'FTP_CONNECT' which is used to work with FTP server in ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Afetr connection is established now set path on the FTP server. The path where the file is stored on the FTP server. Using this path we will build a command and pass it to the function module FTP_COMMAND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use 'FTP_DISCONNECT' to disconnect to FTP server and 'RFC_CONNECTION_CLOSE' to close RFC connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use of the function module FTP_R3_TO_SERVER would copy the contents from an internal table on the FTP server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please revert for further Qs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;P.Bharadwaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 07:40:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-a-file-in-ftp-using-dsn-or-ftpcommand/m-p/7061443#M1503369</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-19T07:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Saving a File in FTP using DSN or FTPCOMMAND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-a-file-in-ftp-using-dsn-or-ftpcommand/m-p/7061444#M1503370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bharadwaj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'FTP_CONNECT' itself is failing for me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using FTP login. I'm not sure if am doing something wrong here or if something wrong in the configuration.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FTP_CONNECT'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;*-- Your SAP-UNIX FTP user name (case sensitive)&lt;/P&gt;&lt;P&gt;       USER            = '&amp;lt;Domain-name&amp;gt;\&amp;lt;userid&amp;gt;' "FTP Domain name and userid&lt;/P&gt;&lt;P&gt;       PASSWORD        = MC_PASSWORD&lt;/P&gt;&lt;P&gt;*-- Your SAP-UNIX server host name (case sensitive)&lt;/P&gt;&lt;P&gt;       HOST            = '&amp;lt;Remote machine IP&amp;gt;'   "FTP server name/IP&lt;/P&gt;&lt;P&gt;       RFC_DESTINATION = 'SAPFTP'&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;       HANDLE          = MI_HANDLE&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;       NOT_CONNECTED   = 1&lt;/P&gt;&lt;P&gt;       OTHERS          = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sri on Jul 19, 2010 10:04 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 08:01:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-a-file-in-ftp-using-dsn-or-ftpcommand/m-p/7061444#M1503370</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-19T08:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Saving a File in FTP using DSN or FTPCOMMAND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-a-file-in-ftp-using-dsn-or-ftpcommand/m-p/7061445#M1503371</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;Please  use HTTP_SCRAMBLE' FM before 'FTP_connect" as follows : &lt;/P&gt;&lt;P&gt;*-- FTP_CONNECT requires an encrypted password to work&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HTTP_SCRAMBLE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      SOURCE      = password&lt;/P&gt;&lt;P&gt;      sourcelen   = lv_len&lt;/P&gt;&lt;P&gt;      key         = lv_key&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      destination = password.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FTP_CONNECT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      user                   = ftp_user&lt;/P&gt;&lt;P&gt;      password               = password&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ACCOUNT                =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      host                   = host&lt;/P&gt;&lt;P&gt;      rfc_destination        = 'SAPFTP'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      handle                 = lv_handle&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      not_connected          = 1&lt;/P&gt;&lt;P&gt;      OTHERS                 = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also note that FTP_USER contains the user name of the FTP server, PASSWORD contains the scrambled password received from  'HTTP_SCRAMBLE'. HOST contains the name of server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;P.Bharadwaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 08:11:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-a-file-in-ftp-using-dsn-or-ftpcommand/m-p/7061445#M1503371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-19T08:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Saving a File in FTP using DSN or FTPCOMMAND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-a-file-in-ftp-using-dsn-or-ftpcommand/m-p/7061446#M1503372</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;I did use http_scramble before FTP_CONNECT. ftp server, username and password (scramble) are used correctly too. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if I need anything else on SAP side in order FTP_CONNECT to work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tested FTP programs. RSFTP001passed but RSFTP002 is failing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 08:20:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-a-file-in-ftp-using-dsn-or-ftpcommand/m-p/7061446#M1503372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-19T08:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Saving a File in FTP using DSN or FTPCOMMAND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-a-file-in-ftp-using-dsn-or-ftpcommand/m-p/7061447#M1503373</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;Please check  RFC connection using transaction SM59.Also try using SAPFTPA .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;P.Bharadwaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 09:36:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-a-file-in-ftp-using-dsn-or-ftpcommand/m-p/7061447#M1503373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-19T09:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Saving a File in FTP using DSN or FTPCOMMAND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-a-file-in-ftp-using-dsn-or-ftpcommand/m-p/7061448#M1503374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bharadwaj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I realized that FTP_CONNECT takes only ftp locations. I'm using a UNC path that might be the reason for this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to write/read files from a remote network folder using  UNC path? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 22:39:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-a-file-in-ftp-using-dsn-or-ftpcommand/m-p/7061448#M1503374</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-19T22:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Saving a File in FTP using DSN or FTPCOMMAND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-a-file-in-ftp-using-dsn-or-ftpcommand/m-p/7061449#M1503375</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;For UNC path , The job server needs to run under an account that has permissions to the UNC path that you are trying to schedule. By default, the services are running under a machine account that will likely not have access to the UNC path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Universal Naming Convention is a way to identify a shared file in a computer without having to specify (or know) the storage device it is on. In Windows, the UNC name format is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;servername\sharename\path\filename&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check above. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;P.Bharadwaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 07:44:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-a-file-in-ftp-using-dsn-or-ftpcommand/m-p/7061449#M1503375</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-20T07:44:39Z</dc:date>
    </item>
  </channel>
</rss>

