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

FTP_COMMAND for get command for multiple files ending in timeout

AniketB
Explorer
0 Likes
3,195

Hi All,

We are facing an issue while transferring files from FTP To SAP Application server.While executing "get" command on a FTP server from SAP Application server for copying 20 files. "get" command copies upto 5-7 files(varies each time), post which we are getting a time out error "Accept on data channel failed : NIETIMEOUT timeout 720000 ms". We went through KBA 2417825 on SAP Support's suggestion, and it says that this issue is related to Network or FTP Server settings. We checked with our network team and FTP admin, they checked all the settings and as per them settings are fine and firewall settings are also okay and are not blocking this. Strangely when we restarted FTP server and tried this transfer, it worked fine and all 20 files were copied, but again after sometime when we tried the transfer, the same timeout error occurred. This behavior is consistent i.e. whenever we restart FTP Server the transfer occurs fine for the first time.i also tried to directly read the files from FTP Server using "FTP_SERVER_TO_R3" but the same issue occured after 5-6 files were read. Our SAP Server is on Suse-linux and FTP server is on Windows. Kindly reply if anyone has come across this issue, will be really helpful.

Thanks.

1 ACCEPTED SOLUTION
Read only

jozsef_hegyi
Product and Topic Expert
Product and Topic Expert
0 Likes
2,284

Dear Aniket

try to start sapftp in passive mode.

Best regards

JozsefH

8 REPLIES 8
Read only

jozsef_hegyi
Product and Topic Expert
Product and Topic Expert
0 Likes
2,285

Dear Aniket

try to start sapftp in passive mode.

Best regards

JozsefH

Read only

0 Likes
2,284

Hi Joseph,

Thanks for the reply.

Can you provide more information on this? How can this be achieved, through program or through BASIS setting.

Read only

jozsef_hegyi
Product and Topic Expert
Product and Topic Expert
0 Likes
2,284

Dear Aniket

please check the note

831058

Best regards

JozsefH

Read only

0 Likes
2,284

Hi Joseph,

Thanks for the guidance, we tried both the settings, as per the above note and also woth the program. After doing BASIS settings the same error still persists, and with programing changes i am getting a TCP/IP error. Can you suggest on any other approach, or if you are aware of any Network or FTP server settings will be helpful.

Thanks.

Read only

jozsef_hegyi
Product and Topic Expert
Product and Topic Expert
0 Likes
2,284

Dear Aniker

a dev_ftp file woud be helpful

Best regards

JozsefH

Read only

AniketB
Explorer
0 Likes
2,284

Hi Joseph,

Thanks for your suggestions. Seems it was more of a Network/ftp server issue as pointed out by sap support.Our network and basis team collaborated and tried multiple settings and found a solution. Following settings helped in issue resolution:

1. Firewall settings at FTP end

2.Port range configuration in FTP server( it was different from the client server )

3. Activating passive mode

Read only

kiran_k8
Active Contributor
0 Likes
2,284

Aniket,

Will you be able to share how Port range config is affecting this and how you overcame this.

Thanks.

K.Kiran.

Read only

0 Likes
2,284

Hi Kiran,

As i said ,the issue was handled jointly by BASIS team and Network team, i have very few details about it. i was told that ports configured in FTP server(Windows OS) were different from the ones SAP Server(Suse Linux OS) was using for communication.

Thanks.