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_CONNECT

Former Member
0 Likes
539

Hi,

Currently the program uses the function module 'FTP_CONNECT' to connect the destination server.

Incase if the destination server is donw, it says 'Not Connected'. And thereby the program throws an error message and the job gets cancelled.

Am just checking out some way to prevent this job cancellation.

Let us assume that the server will be down only for 1 Hr.

Is there anyother FM which will wait and connect. Or can we handle this in a different way.

Reg

Naveena

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
471

Hi

Try to use FM FTP_START_REG_SERVER

If it is not serving ur perpose..

we can try another way ...

Tim_no will have value 60.

LOOP Tim_no times.

Call Function 'FTP_CONNECT'

if sy-subrc eq 0.

Exit.

Endif.

*put delay of 1 min...So after 1 min.. it will check for the connection....

Endloop.

Hi,

Currently the program uses the function module 'FTP_CONNECT' to connect the destination server.

Incase if the destination server is donw, it says 'Not Connected'. And thereby the program throws an error message and the job gets cancelled.

Am just checking out some way to prevent this job cancellation.

Let us assume that the server will be down only for 1 Hr.

Is there anyother FM which will wait and connect. Or can we handle this in a different way.

Reg

Naveena

2 REPLIES 2
Read only

Former Member
0 Likes
472

Hi

Try to use FM FTP_START_REG_SERVER

If it is not serving ur perpose..

we can try another way ...

Tim_no will have value 60.

LOOP Tim_no times.

Call Function 'FTP_CONNECT'

if sy-subrc eq 0.

Exit.

Endif.

*put delay of 1 min...So after 1 min.. it will check for the connection....

Endloop.

Read only

Pawan_Kesari
Active Contributor
0 Likes
471

This is how we handle the situation..

One of our program process the data hourly and create text file which it then tries to FTP to customer. If FTP fails for any reason it then submits a Z program (which is copy of RSFTP002 with extra feature to send email notification) to execute later, which then tries to FTP the same file again.

In case this Z program fails again, it will then send email notification.

Regards,

Pawan.