cancel
Showing results for 
Search instead for 
Did you mean: 

Communication failure by using SAPFTP/SAPFTPA

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Fabrizio_Irmici
Participant
0 Kudos

Hi,

check the permission on FTP server.

Consider that SAP will try to get the file from the FTP server with the user <sid>adm

Former Member
0 Kudos

Problem now is the FTP command. I am having the rights.

Fabrizio_Irmici
Participant
0 Kudos

Hi,

try a easy test with a dummy file, try to transfer this file with a software like Filezilla, in order to understand if FTP works properly at OS level.

Former Member
0 Kudos

Hi,

The log syas connection is refused.The FTP service itself maybe disabled as part of security policy.

Please check if the FTP service is working from the operating system level.If connection fails at OS level it will certainly fail in your application.

Good Luck!

Former Member
0 Kudos

Hi Munassar,

that is what I just figured out with our SAP-Basis... There was no FTP server at all - but finally there is one.

Now I could connect via SAPFTPA. However, I got an error from FTP_COMMAND: 'FTP subcommand: Local error' when trying following command: get "
10.XX.XX.XX\d\IE5_Share\IE540000000000000000000073" "C:\CATIA\doc\orig\Piston.CATPart".

The idea is to download the file via FTP from Application Server to local client PC. Does it work at all!?

Regards,

Jens