Hi,
HELP please. I've been searching for answer to issue we've been having with FTP_CONNECT function module with no luck on a direct answer of what is causing it.
The error when running FTP_CONNECT through SE37 is: Attempt to set up connection to SFTP.xxxxx.com 22 (port) failed. (have also ran through program RSFTP002 with same error).
Have tried with both SAPFTP and SAPFTPA and both ways get the same error. Both SAPFTP and SAPFTPA are set up in SM59.
Have verified that the host, user, password and port work through filezilla.
Network people can see us going out through the firewall so we think may be issue with SAP setup but not sure.
Have turned on trace in SE59 for both SAPFTP and SAPFTPA
While running FTP_CONNECT ran program RSFTP001 to evaluate trace and can see where it says (this is while it is still processing and trying to get connected- it runs for about 2 minutes):
trc file: "dev_ftp", trc level: 2, release: '721"
sccsid: @(#) $Id: //bas/721_REL/src/krn/ftp/ftpmain.c#3 $ SAP
@(#) $Id: //bas/721_REL/src/krn/ftp/ftp.c#1 $ SAP
@(#) $Id: //bas/721_REL/src/krn/ftp/ftpcmd.c#1 $ SAP
sapftp.ini file path : G:\usr\sap\QW4\DVEBMGS00\exe\sapftp
swqsap02.wfn.int [Thr 12164] sapgw00 [Thr 12164] 79545068 [Thr 121664] CPIC_TRACE=2 [Thr 12164] IDX=3 [Thr 12164]
RFC Version 721
RFC DLL loaded
Install server functions
Call RfcAccept
Enter RfcDispatch loop
TCP/IP port: 22
Partner codepage: 4103
connect request host : SFTP.xxxxx.com, user : xxxxxxx
Connected to SFTP.xxxxx.com Port 22
- NI handle: 0
trc file: "dev_ftp", trc level:2, release: "721"
[5420] sccsid:@(#) $Id: //bas/721_REL/src/krn/ftp/ftpmain.c#3 $ SAP
@(#) $Id: //bas/721_REL/src/krn/ftp/ftp.c#1 $ SAP
@(#) $Id: //bas/721_REL/src/krn/ftp/ftpcmd.c#1 $ SAP
sapftp.ini file path : G:\usr\sap\QW4\DVEBMGS00\exe\sapftp.ini
SAPFTP passive mode set to = 0
[5420] FRP Start : argc - 6 a0 - G:\usr\sap\QW4\DVEBMGS00\exe\sapftp
xxxxxxx.xxx.int [Thr 10800] sapqw00 [Thr 10800] 79548881 [Thr 10800] CPIC_TRACE=2 [Thr 10800] IDX=2 [Thr 10800]
[5420] RFC Verion 721
[5420] RFC DLL loaded
[5420] Install server functions
[5420] Call RfcAccept
[5420] Enter RfcDispatch loop
Then once I get the error attempt to set up connection fail and re-look at the trace the following is shown
[4368] sccsid:@(#) $Id: //bas/721_REL/src/krn/ftp/ftpmain.c#3 $ SAP
@(#) $Id: //bas/721_REL/src/krn/ftp/ftp.c#1 $ SAP
@(#) $Id: //bas/721_REL/src/krn/ftp/ftpcmd.c#1 $ SAP
sapftp.ini file path: G:\usr\sap\QW4\DVEBMGS00\exe\sapftp.ini
SAPFTP passive mode set to = 0
[4368] FTP Start : argc - 6 a0 - G:\usr\sap\QW4\DVEBMGS00\exe\sapftp
xxxxxxxx.xxx.int [Thr 11880] sapqw00 [Thr 11880] 78907481 [Thr 11880] CPIC_TRACE=2 [Thr 11880 IDX=0 [Thr11880]
[4368] RFC Version 721
[4368] RFC DLL loaded
[4368] Install server functions
[4368] Call RfcAccept
[4368] Enter RfcDispatch loop
[4368] FTP Stop
[Thr 8740] *** ERROR => [8140] NIECONN_BROKEN:TCP/IP Network Connection Broken in getreply() [ftp.c 271]
[Thr 8740] FTP Stop
Is there a way before connect to turn passive mode = 1 (on)? Will that help?
Any help is appreciated as we have been researching this for days. Thank you