<?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: FTP connection in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connection/m-p/7422919#M1549541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;look at the FM interface...it's simple....&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;you construct the command (maybe get, mget *,  put, mdel, etc.) and call the FM and check the return code.  Google for FTP commands if you don't know them....essentially, FTP is performed by sending a stack of commands, one at a time....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code}call function 'FTP_COMMAND'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      handle        = p_handle  "returned from FTP_CONNECT&lt;/P&gt;&lt;P&gt;      command       = p_cmd  "(200) type c, contains commands like ascii, get &amp;lt;fn&amp;gt;, ls, etc.&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      data          = gt_ftp_ret  "results of the command (appended)&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;&lt;/P&gt;&lt;P&gt;In addition, after I have issued all my FTP commands, I call FTP_DISCONNECT, then RFC_CONNECTION_CLOSE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Nov 2010 17:53:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-11-16T17:53:58Z</dc:date>
    <item>
      <title>FTP connection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connection/m-p/7422914#M1549536</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;&lt;/P&gt;&lt;P&gt;I need to connect SAP to PDM server.&lt;/P&gt;&lt;P&gt;my issue is to transfer internal table data or csv file from SAP to PDM server.&lt;/P&gt;&lt;P&gt;how should i do it.&lt;/P&gt;&lt;P&gt;i am trying to use FM FTP_CONNECT and FTP_COMMAND. If it is currect way, please provide me what are the input parameters need to pass and how to transfer the file from SAP to PDM server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;margani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Nov 2010 17:11:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connection/m-p/7422914#M1549536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-14T17:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: FTP connection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connection/m-p/7422915#M1549537</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;It depends on if PDM server allows ftp transfer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you should have user, password and ip address of PDM server for ftp, anyway you can't transfer an internal table direclty, but just a file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So yuo need to download the internal table to SAP sever file and then transfer this tile from SAP to PDM server via ftp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do yuo need to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's so, you need to ask help to your basis for ftp user of PDM server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Nov 2010 17:47:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connection/m-p/7422915#M1549537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-14T17:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: FTP connection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connection/m-p/7422916#M1549538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi max bianchi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the user name, pasward and host from client. it was connecting to PDM server by using WINSCP. But if i am using the FTP_CONNECT It is not connecting i got sy-subrc = 1.&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            = lv_user&lt;/P&gt;&lt;P&gt;      password        = lv_pwd&lt;/P&gt;&lt;P&gt;      host            = HOST  &lt;/P&gt;&lt;P&gt;      rfc_destination = 'SAPFTP' ""'SAPFTPA'&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;"' i got sy-subrc = 1.&lt;/P&gt;&lt;P&gt;Please help me on this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;margani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 15:02:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connection/m-p/7422916#M1549538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-16T15:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: FTP connection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connection/m-p/7422917#M1549539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Obviously, there's a problem in input values, if FTP is allowed to/from the servers involved.  In my case, I have to have a scrambled password, which I created with FM HTTP_SCRAMBLE...for my situation, here'x what I did with a user-supplied password (v_pass) on selection panel.  In a subsequent step, the lv_password value is stored in a paramters table like tvarvc for future use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: lv_len      type i,
        lv_key      type i value 26101957,
        lv_password type tvarv_val.

  lv_len = strlen( lv_pass ).

  call function 'HTTP_SCRAMBLE'
    exporting
      source      = lv_pass
      sourcelen   = lv_len
      key         = lv_key
    importing
      destination = lv_password.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, I created a custom FM shell, which does the open, get/put, etc., and close/disconnect based upon values supplied through interface, which supplies FTP commands, using repetitive calls of fm FTP_COMMAND, changing the command text as needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 15:18:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connection/m-p/7422917#M1549539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-16T15:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: FTP connection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connection/m-p/7422918#M1549540</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 used this HTTP_SCRAMBLE function module. even it is connecting. Please give me the details about FTP_COMMAND function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;margani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 16:24:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connection/m-p/7422918#M1549540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-16T16:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: FTP connection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connection/m-p/7422919#M1549541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;look at the FM interface...it's simple....&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;you construct the command (maybe get, mget *,  put, mdel, etc.) and call the FM and check the return code.  Google for FTP commands if you don't know them....essentially, FTP is performed by sending a stack of commands, one at a time....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code}call function 'FTP_COMMAND'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      handle        = p_handle  "returned from FTP_CONNECT&lt;/P&gt;&lt;P&gt;      command       = p_cmd  "(200) type c, contains commands like ascii, get &amp;lt;fn&amp;gt;, ls, etc.&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      data          = gt_ftp_ret  "results of the command (appended)&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;&lt;/P&gt;&lt;P&gt;In addition, after I have issued all my FTP commands, I call FTP_DISCONNECT, then RFC_CONNECTION_CLOSE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 17:53:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connection/m-p/7422919#M1549541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-16T17:53:58Z</dc:date>
    </item>
  </channel>
</rss>

