<?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_CONNECT to Windows based server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-to-windows-based-server/m-p/2811736#M657304</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, the username, pwd are correctly given and I also tried to give IP instead of HOST Name but still in error of authorization.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Oct 2007 06:34:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-04T06:34:14Z</dc:date>
    <item>
      <title>FTP_CONNECT to Windows based server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-to-windows-based-server/m-p/2811734#M657302</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 using FM &amp;lt;b&amp;gt;'FTP_CONNECT'&amp;lt;/b&amp;gt; to send a file from local pc to &amp;lt;b&amp;gt;Windows based server&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the parameters: username, pwd, hostname, rfc destination (when I test the RFC destination SAPFTP in SM59, it connects OK)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I connected to the HOSTNAME from &amp;lt;b&amp;gt;command prompt&amp;lt;/b&amp;gt; and it connects OK with same parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when we try to connect with FM &amp;lt;b&amp;gt;'FTP_CONNECT'&amp;lt;/b&amp;gt;, it gives error:&lt;/P&gt;&lt;P&gt;'User has no access authorization for computer HOSTNAME'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;FS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 06:20:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-to-windows-based-server/m-p/2811734#M657302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T06:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: FTP_CONNECT to Windows based server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-to-windows-based-server/m-p/2811735#M657303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;r u giving user, pwd correctly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try giving the ipaddress instead of name to the HOST.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 06:24:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-to-windows-based-server/m-p/2811735#M657303</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2007-10-04T06:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: FTP_CONNECT to Windows based server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-to-windows-based-server/m-p/2811736#M657304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, the username, pwd are correctly given and I also tried to give IP instead of HOST Name but still in error of authorization.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 06:34:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-to-windows-based-server/m-p/2811736#M657304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T06:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: FTP_CONNECT to Windows based server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-to-windows-based-server/m-p/2811737#M657305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you guys send some sample code for FM   'FTP_CONNECT'. Thanks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;FS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 23:50:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-to-windows-based-server/m-p/2811737#M657305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T23:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: FTP_CONNECT to Windows based server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-to-windows-based-server/m-p/2811738#M657306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;Password encryption&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;FTP Connect&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 permissions for 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.. If this works then the FTP Command u r using after the FTP Connect should also work..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 00:35:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-to-windows-based-server/m-p/2811738#M657306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T00:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: FTP_CONNECT to Windows based server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-to-windows-based-server/m-p/2811739#M657307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The issue was related to user getting locked. Thanks for your assistance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2007 03:34:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-to-windows-based-server/m-p/2811739#M657307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-22T03:34:02Z</dc:date>
    </item>
  </channel>
</rss>

