Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problems with SAPFTPA

Former Member
0 Likes
1,868

Hi !!

I have a big trouble, i need transfer a file from SAP to remote server using ftp protocol and background job. Iu00B4am using the function:

CALL FUNCTION 'FTP_CONNECT'

EXPORTING

USER = P_/CCSAT/MXKWMDIPF_ZUSER

PASSWORD = P_/CCSAT/MXKWMDIPF_ZPASSWORD

HOST = TEXT-010

RFC_DESTINATION = 'SAPFTPA'

IMPORTING

HANDLE = HDL.

Everything runs fine if the program is executed in foreground and using SAPFTP destination.

But the problem happens when the program is executed in background job and using SAPFTPA destination.

The flag Trace is enable in transaction SM59 for SAPFTPA destination and the results are following:

Fri Feb 25 10:21:39 2005

[2524] sccsid:@(#) $Id: //bas/46D/src/krn/ftp/ftpmain.c#21 $ SAP

@(#) $Id: //bas/46D/src/krn/ftp/ftp.c#19 $ SAP

@(#) $Id: //bas/46D/src/krn/ftp/ftpcmd.c#19 $ SAP

[2524] FTP Start : argc - 6 a0 - E:\usr\sap\DES\SYS\exe\run/sapftp

DEVSERVER sapgw00 48499140 CPIC_TRACE=2 IDX=2

[2524] RFC DLL loaded

[2524] RFC Version 46D

[2524] Install server functions

[2524] Call RfcAccept

[2524] Enter RfcDispatch loop

[2524] Partner codepage 1100

[2524] connect request host : HENDRIX.PACCAR.COM , user : dlrv525

      • ERROR => [2524] Connect failed : NIECONN_REFUSED [ftp.c 155]

[2524] FTP Stop

Please, somebody can help me?

Regards

4 REPLIES 4
Read only

Former Member
0 Likes
817

Hi Mario

Were you able to fix this issue. I am having the same issue right now. I am unable to connect to the clients ftp server by setting SAPFTPA

Read only

0 Likes
817

This is my problem too.

Help.

Read only

Former Member
0 Likes
817

Hi Mario,

Please refer the below link.Hope it helps .

http://scn.sap.com/message/7739287#7739287

Regards,

Suvarna

Read only

0 Likes
817

Hi Mario,

When i am using destination SAPFTP then it is working properly but,using of SAPFTPA it is

giving error 'attempt to set up connection failed '.

  can u tell me how to solve this error.

thanks

ravish