2010 Apr 22 10:21 AM
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
2010 Apr 22 11:24 AM
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
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.
2010 Apr 22 11:24 AM
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.
2010 Apr 22 11:37 AM
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.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |