<?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: Error while connecting to FTP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-connecting-to-ftp/m-p/1571924#M258205</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 tried logging in to the remote system. But I was not able to do so. How can I check the authorization for the remote system? Is there anything in particular I should do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Oct 2006 15:03:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-04T15:03:57Z</dc:date>
    <item>
      <title>Error while connecting to FTP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-connecting-to-ftp/m-p/1571921#M258202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the function module FTP_CONNECT to connect to a FTP site. I am providing the correct IP address of the host, the user ID and password. Before passing all these parameters to the function module, I am also calling 'AB_RFC_X_SCRAMBLE_STRING' to encrypt the password. But I am getting an error which says the user has no authorization to connect to the ftp site. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The IP address of the host is correct, and the FTP site exists. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me out with this problem? Even if this might not be an ABAP problem I would appreciate suggestions that could direct me to the exact problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Swaminath G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 14:06:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-connecting-to-ftp/m-p/1571921#M258202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T14:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error while connecting to FTP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-connecting-to-ftp/m-p/1571922#M258203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think you do not have Authorization for that one, make sure whether you have the correct Authorization to conect FTP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;see the example program:-&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ZFTPSAP LINE-SIZE 132.

DATA: BEGIN OF MTAB_DATA OCCURS 0,
LINE(132) TYPE C,
END OF MTAB_DATA.

DATA: MC_PASSWORD(20) TYPE C,
MI_KEY TYPE I VALUE 26101957,
MI_PWD_LEN TYPE I,
MI_HANDLE TYPE I.

START-OF-SELECTION.

*-- Your SAP-UNIX FTP password (case sensitive)
MC_PASSWORD = 'password'.

DESCRIBE FIELD MC_PASSWORD LENGTH MI_PWD_LEN.

*-- FTP_CONNECT requires an encrypted password to work
CALL 'AB_RFC_X_SCRAMBLE_STRING'
     ID 'SOURCE' FIELD MC_PASSWORD ID 'KEY' FIELD MI_KEY
     ID 'SCR' FIELD 'X' ID 'DESTINATION' FIELD MC_PASSWORD
     ID 'DSTLEN' FIELD MI_PWD_LEN.

CALL FUNCTION 'FTP_CONNECT'
     EXPORTING
*-- Your SAP-UNIX FTP user name (case sensitive)
       USER            = 'userid'
       PASSWORD        = MC_PASSWORD
*-- Your SAP-UNIX server host name (case sensitive)
       HOST            = 'unix-host'
       RFC_DESTINATION = 'SAPFTP'
     IMPORTING
       HANDLE          = MI_HANDLE
     EXCEPTIONS
       NOT_CONNECTED   = 1
       OTHERS          = 2.

CHECK SY-SUBRC = 0.

CALL FUNCTION 'FTP_COMMAND'
     EXPORTING
       HANDLE = MI_HANDLE
       COMMAND = 'dir'
     TABLES
       DATA = MTAB_DATA
     EXCEPTIONS
       TCPIP_ERROR = 1

       COMMAND_ERROR = 2
       DATA_ERROR = 3
       OTHERS = 4.

IF SY-SUBRC = 0.
  LOOP AT MTAB_DATA.
    WRITE: / MTAB_DATA.
  ENDLOOP.
ELSE.
* do some error checking.
  WRITE: / 'Error in FTP Command'.
ENDIF.

CALL FUNCTION 'FTP_DISCONNECT'
     EXPORTING
       HANDLE = MI_HANDLE
     EXCEPTIONS
       OTHERS = 1.    &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 14:25:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-connecting-to-ftp/m-p/1571922#M258203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T14:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error while connecting to FTP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-connecting-to-ftp/m-p/1571923#M258204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   if you have access to remote system login to it with&lt;/P&gt;&lt;P&gt;   userid . login is successful than there may be problem&lt;/P&gt;&lt;P&gt;   in your code or else check authorization for the &lt;/P&gt;&lt;P&gt;   remote system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   also check wheter RFC destination exist in sm59 transaction else create and test connect .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'FTP_CONNECT'&lt;/P&gt;&lt;P&gt;       EXPORTING USER = USER PASSWORD = PWD HOST = HOST&lt;/P&gt;&lt;P&gt;     &amp;lt;b&amp;gt;  RFC_DESTINATION = DEST&amp;lt;/b&amp;gt;       IMPORTING HANDLE = HDL&lt;/P&gt;&lt;P&gt;       EXCEPTIONS NOT_CONNECTED = 1&lt;/P&gt;&lt;P&gt;                  OTHERS = 2.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 1.&lt;/P&gt;&lt;P&gt;    MESSAGE ID SY-MSGID TYPE 'I' NUMBER SY-MSGNO   "SY-MSGTY&lt;/P&gt;&lt;P&gt;            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&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;amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 14:31:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-connecting-to-ftp/m-p/1571923#M258204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T14:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error while connecting to FTP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-connecting-to-ftp/m-p/1571924#M258205</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 tried logging in to the remote system. But I was not able to do so. How can I check the authorization for the remote system? Is there anything in particular I should do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 15:03:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-connecting-to-ftp/m-p/1571924#M258205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T15:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error while connecting to FTP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-connecting-to-ftp/m-p/1571925#M258206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me with suggestions for this problem? I am unable to connect to the FTP site. It says user has no authorization. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RFC destination is transaction SM59 is created and the connection is also tested. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code I am using :&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 ftp_pwd ID 'KEY'         FIELD key&lt;/P&gt;&lt;P&gt;      ID 'SCR'         FIELD 'X'     ID 'DESTINATION' FIELD ftp_pwd&lt;/P&gt;&lt;P&gt;      ID 'DSTLEN'      FIELD dstlen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Connect zum FTP&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    WRITE: / 'Connecting to FTP-Server'.&lt;/P&gt;&lt;P&gt;    SKIP 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            = ftp_user&lt;/P&gt;&lt;P&gt;              password        = ftp_pwd&lt;/P&gt;&lt;P&gt;              host            = ftp_host&lt;/P&gt;&lt;P&gt;              rfc_destination = 'SAPFTPA'&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              handle          = hdl&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              not_connected   = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; SKIP 1.&lt;/P&gt;&lt;P&gt; WRITE: / 'Connection not successful ! Abort'.&lt;/P&gt;&lt;P&gt; EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting sy-subrc &amp;lt;&amp;gt; 0. Hence the message 'Connection not successful ! Abort'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I realize it might not be an ABAP problem, but could be a problem with the FTP settings. If so, is it possible to find out exactly what the problem is?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Swaminath G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 03:50:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-connecting-to-ftp/m-p/1571925#M258206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-05T03:50:27Z</dc:date>
    </item>
  </channel>
</rss>

