2008 Nov 14 6:26 AM
Hi,
While calling the function module FTP_CONNECT, i am getting the error 'FTP_CONNECTION_FAILED'.
I called like below and i passed values for userid, password, host, and rfc_destination.
CALL FUNCTION 'FTP_CONNECT'
EXPORTING
user = userid
password = password
host = host
rfc_destination = rfc_destination
IMPORTING
HANDLE = l_ftp_handle
EXCEPTIONS
NOT_CONNECTED = 1
OTHERS = 2.
IF sy-subrc <> 0.
raise ftp_connection_failed.
ENDIF.
Could you please tell me cause for the error.
Thanks,
venkatesh.
Hi,
While calling the function module FTP_CONNECT, i am getting the error 'FTP_CONNECTION_FAILED'.
I called like below and i passed values for userid, password, host, and rfc_destination.
CALL FUNCTION 'FTP_CONNECT'
EXPORTING
user = userid
password = password
host = host
rfc_destination = rfc_destination
IMPORTING
HANDLE = l_ftp_handle
EXCEPTIONS
NOT_CONNECTED = 1
OTHERS = 2.
IF sy-subrc <> 0.
raise ftp_connection_failed.
ENDIF.
Could you please tell me cause for the error.
Thanks,
venkatesh.
2008 Dec 04 7:05 AM
Hi,
Are using the correct authontication?
if you are connecting the FTP server from offshore sometime you face this problem..
Thanks,
Raghav
2008 Dec 04 10:49 AM
Hi,
Call FM, 'HTTP_SCRAMBLE' before connecting to ftp connect.
Are u doing it.
Please check the sample code.
slen1 = strlen( p_sappwd ).
CALL FUNCTION 'HTTP_SCRAMBLE'
EXPORTING
SOURCE = p_sappwd
SOURCELEN = slen1
KEY = mi_key
IMPORTING
DESTINATION = p_sappwd.
*} REPLACE
CALL FUNCTION 'FTP_CONNECT'
EXPORTING
user = p_sapusr
password = p_sappwd
host = dhost
rfc_destination = dest
IMPORTING
handle = dhdl.
Ram
2008 Dec 04 10:51 AM
You need to scramble the password before passing it on to the FM.
Use FM 'HTTP_SCRAMBLE' to scramble the password and then pass on to the FTP_CONNECT FM.
2008 Dec 04 10:52 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |