<?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: how to implement the FTP_CONNECT FUNCTION? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-implement-the-ftp-connect-function/m-p/2636555#M606640</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear shiska,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is the code we have used and it is working without any problems..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Password encryption&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;data : v_password(20),&lt;/P&gt;&lt;P&gt;         v_key type i value 26101957,&lt;/P&gt;&lt;P&gt;         v_slen type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;--- ENCRYPT PASSWORD&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The password is entered by the user on the selection screen in the parameter p_pswd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  clear v_password.&lt;/P&gt;&lt;P&gt;  set extended check off.&lt;/P&gt;&lt;P&gt;  v_password = p_pswd.&lt;/P&gt;&lt;P&gt;  translate v_password to lower case.&lt;/P&gt;&lt;P&gt;  v_slen = strlen( v_password ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call 'AB_RFC_X_SCRAMBLE_STRING'&lt;/P&gt;&lt;P&gt;    id 'SOURCE'      field v_password&lt;/P&gt;&lt;P&gt;    id 'KEY'         field v_key&lt;/P&gt;&lt;P&gt;    id 'SCR'         field 'X'&lt;/P&gt;&lt;P&gt;    id 'DESTINATION' field v_password&lt;/P&gt;&lt;P&gt;    id 'DSTLEN'      field v_slen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;FTP Connect&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;data v_hdl type i.&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            = p_usrid (User id used to connect)&lt;/P&gt;&lt;P&gt;            password        = v_password &lt;/P&gt;&lt;P&gt;            host            = p_ip_add (IP of the server to be connected)&lt;/P&gt;&lt;P&gt;            rfc_destination = p_sapftp (value is normally SAPFTP or SAPFTPA)&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            handle          = v_hdl&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;From your msg it looks that the FTP connection is not the problem.. The problem is with the unix level permissions the user, with which you are doing the ftp, has..&lt;/P&gt;&lt;P&gt;This user does not have write permissions in the directory in which it is trying to write the file.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try doing the FTP manually from the SAP Application server.. If this works then the FTP Command u r using after the FTP Connect should also work..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Nitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jul 2007 00:12:16 GMT</pubDate>
    <dc:creator>nitesh_jain3</dc:creator>
    <dc:date>2007-07-26T00:12:16Z</dc:date>
    <item>
      <title>how to implement the FTP_CONNECT FUNCTION?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-implement-the-ftp-connect-function/m-p/2636554#M606639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello:&lt;/P&gt;&lt;P&gt; i would to ask one favor i am trying to send a file to FTP server but i have a problem when i try to connect to the FTP SERVER using the FTP_CONNECT FUNCTION  the system send an error message like this 'this user has no permission to write', i have being looking some information of how to implement this FUNCTION? and i found that is necessary to send the user parameter in encrypted mode, i already used the  DP_SCRAMBLE_STRING FUCNTION , but is still no working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does anybody knows how to implement the FTP_CONNECT without any problems?&lt;/P&gt;&lt;P&gt;thanks a lot for you help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 22:56:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-implement-the-ftp-connect-function/m-p/2636554#M606639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T22:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to implement the FTP_CONNECT FUNCTION?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-implement-the-ftp-connect-function/m-p/2636555#M606640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear shiska,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is the code we have used and it is working without any problems..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Password encryption&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;data : v_password(20),&lt;/P&gt;&lt;P&gt;         v_key type i value 26101957,&lt;/P&gt;&lt;P&gt;         v_slen type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;--- ENCRYPT PASSWORD&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The password is entered by the user on the selection screen in the parameter p_pswd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  clear v_password.&lt;/P&gt;&lt;P&gt;  set extended check off.&lt;/P&gt;&lt;P&gt;  v_password = p_pswd.&lt;/P&gt;&lt;P&gt;  translate v_password to lower case.&lt;/P&gt;&lt;P&gt;  v_slen = strlen( v_password ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call 'AB_RFC_X_SCRAMBLE_STRING'&lt;/P&gt;&lt;P&gt;    id 'SOURCE'      field v_password&lt;/P&gt;&lt;P&gt;    id 'KEY'         field v_key&lt;/P&gt;&lt;P&gt;    id 'SCR'         field 'X'&lt;/P&gt;&lt;P&gt;    id 'DESTINATION' field v_password&lt;/P&gt;&lt;P&gt;    id 'DSTLEN'      field v_slen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;FTP Connect&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;data v_hdl type i.&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            = p_usrid (User id used to connect)&lt;/P&gt;&lt;P&gt;            password        = v_password &lt;/P&gt;&lt;P&gt;            host            = p_ip_add (IP of the server to be connected)&lt;/P&gt;&lt;P&gt;            rfc_destination = p_sapftp (value is normally SAPFTP or SAPFTPA)&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            handle          = v_hdl&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;From your msg it looks that the FTP connection is not the problem.. The problem is with the unix level permissions the user, with which you are doing the ftp, has..&lt;/P&gt;&lt;P&gt;This user does not have write permissions in the directory in which it is trying to write the file.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try doing the FTP manually from the SAP Application server.. If this works then the FTP Command u r using after the FTP Connect should also work..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Nitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 00:12:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-implement-the-ftp-connect-function/m-p/2636555#M606640</guid>
      <dc:creator>nitesh_jain3</dc:creator>
      <dc:date>2007-07-26T00:12:16Z</dc:date>
    </item>
  </channel>
</rss>

