Skip to Content
0
Former Member
Jan 18, 2012 at 12:39 PM

Communication failure by using SAPFTP/SAPFTPA

1944 Views

Hi,

I am having trouble setting up a FTP connection using SAPFTP/SAPFTPA. I tested the connection by calling the report RSFTP002 as mentioned in this blog [http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/994] [original link is broken] [original link is broken] [original link is broken];. Here the result of the trace calling RSFTP001:

trc file: "dev_ftp", trc level: 2, release: "720"

[Thr 3736] Wed Jan 18 11:35:00 2012

[Thr 3736] [3064] sccsid:@(#) $Id: //bas/720_REL/src/krn/ftp/ftpmain.c#5 $ SAP

[Thr 3736] @(#) $Id: //bas/720_REL/src/krn/ftp/ftp.c#1 $ SAP

[Thr 3736] @(#) $Id: //bas/720_REL/src/krn/ftp/ftpcmd.c#3 $ SAP

[Thr 3736] sapftp.ini file path : D:usrsapIE5DVEBMGS00exesapftp.ini

[Thr 3736] SAPFTP Passive mode set to = 0

[Thr 3736] [3064] FTP Start : argc - 6 a0 - D:usrsapIE5DVEBMGS00exesapftp

[Thr 3736] Q4DE3GSY125.m1.sl-si.com [Thr 3736] sapgw00 [Thr 3736] 86153564 [Thr 3736]

[Thr 3736] IDX=0 [Thr 3736]

[Thr 3736] [3064] RFC Version 720

[Thr 3736] [3064] RFC DLL loaded

[Thr 3736] [3064] Install server functions

[Thr 3736] [3064] Call RfcAccept

[Thr 3736] [3064] Enter RfcDispatch loop

[Thr 3736] [3064] Partner codepage 4103

[Thr 3736] [3064] connect request host : 10.XX.XX.XX , user : jgriesin

[Thr 3736] *** ERROR => [3064] Connect failed : NIECONN_REFUSED [ftp.c 126]

[Thr 3736] [3064] FTP Stop

trc file: "dev_ftp", trc level: 2, release: "720"

[Thr 3392] Wed Jan 18 11:35:18 2012

[Thr 3392] [3756] sccsid:@(#) $Id: //bas/720_REL/src/krn/ftp/ftpmain.c#5 $ SAP

[Thr 3392] @(#) $Id: //bas/720_REL/src/krn/ftp/ftp.c#1 $ SAP

[Thr 3392] @(#) $Id: //bas/720_REL/src/krn/ftp/ftpcmd.c#3 $ SAP

[Thr 3392] sapftp.ini file path : D:usrsapIE5DVEBMGS00exesapftp.ini

[Thr 3392] SAPFTP Passive mode set to = 0

[Thr 3392] [3756] FTP Start : argc - 6 a0 - D:usrsapIE5DVEBMGS00exesapftp

[Thr 3392] Q4DE3GSY125.m1.sl-si.com [Thr 3392] sapgw00 [Thr 3392] 86172095 [Thr 3392]

[Thr 3392] IDX=0 [Thr 3392]

[Thr 3392] [3756] RFC Version 720

[Thr 3392] [3756] RFC DLL loaded

[Thr 3392] [3756] Install server functions

[Thr 3392] [3756] Call RfcAccept

[Thr 3392] [3756] Enter RfcDispatch loop

[Thr 3392] [3756] FTP Stop

I also tried calling the following function with the result of a 'communication_failure':

IF STARTCOMP = 'C' OR STARTCOMP = 'c'.

  • via RFC client

CALL FUNCTION 'RFC_START_PROGRAM'

DESTINATION 'BACK'

EXPORTING

COMMAND = COMMAND

REG_SERVER = 'Y'

USE_GWHOST = 'N'

IMPORTING

ERROR = ERR_MESS

EXCEPTIONS

SYSTEM_FAILURE = 1 MESSAGE ERR_MESS

COMMUNICATION_FAILURE = 2 MESSAGE ERR_MESS

OTHERS = 2.

Any idea would be helpfull!!!

Regards

Jens