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 Connection Failure because of TCP/IP

Former Member
0 Kudos
2,957

Hi,

Im using FTP for sending the data from sap to ftp server..

During the execution of FTP_COMMAND, it is getting error with

the following reason:

421 Timeout (120 seconds): closing control connection.

TCP/IP error, connection terminated

It the data in this file is around 38 lacks...

So, is there is any solution to avoid connection to be terminated.

thanks

rohith

3 REPLIES 3
Read only

Former Member
0 Kudos
996

You might have already done this. I just did not see it in your post. Ensure that there are no Network, Firewall problems first.

An FTP in a dynpro seems like it would be coming from the SAP system. Try first to have Basis to 'Ping' the site. Then ask them to FTP manually, outside of SAP from the SAP server OS. If that does not work, perhaps a different site would allow the FTP from the SAP server environment.

If that all works, there may be a demo program supplied by sap. Look in se38 with the word DEMO, in the program input field for hints.

You can try transaction SM69. This transaction allows server-level command scripts as: "external OS command". See if it works from there.

I hope that this helps....

Daniel Perecky

Read only

Former Member
0 Kudos
996

hi,

Instead of sending all the records (38 lacks records) split them into parts and download to FTP. Try to append the data to same file in each run till the records get's completed.

Download to FTP in parts.

Read only

0 Kudos
996

HI,

hOW CAN WE SPLIT THE TABLE AND MOVE THE SPLITTED DATA TO FTP FILE..

IF SUPPOSE 10 LACKS DATA IS SENT TO ONE FTP FILE NOW FOR THE SAME FTP FILE WILL THE ANOTHER 10 LACKS DATA GO AS AN APPEND ?

I THNK IT WILL OVERWRITE THE EXISTING RECORDS...

CAN YOU TELL ME THE WAY TO DO THAT..

THANKS

ROHITH