2008 Mar 10 11:57 PM
hi all,
I am using a program which sends file via FTP. When I run it in foreground it works fine. But in background it gives error i.e. 'Invalid FTP Handle'.
I am using the following function modules for FTP:
1. 'FTP_CONNECT'
2. 'FTP_R3_TO_SERVER'
3. 'FTP_DISCONNECT'
4. 'RFC_CONNECTION_CLOSE' (destination SAPFTP)
Please advise. Thanks.
Regards,
FS
Hi,
kindly provide the details to use SAPFTPA RFC
am facing the same problem while firing the job in Nested IP
act immediately
Thanks
2008 Mar 16 12:39 AM
Solved!
I had to use the RFC destination 'SAPFTPA' for FTP connection as this runs on application server not foreground as required by background job.
2010 Apr 07 8:41 PM
Hi,
kindly provide the details to use SAPFTPA RFC
am facing the same problem while firing the job in Nested IP
act immediately
Thanks
2010 Apr 07 9:05 PM
HI,
am using SAPFTPA, but still the problem persist
kindly suggest
2010 May 20 10:42 AM
Try this code :
CALL FUNCTION 'HTTP_SCRAMBLE'
EXPORTING
SOURCE = p_pass
sourcelen = l_dstlen
key = l_key
IMPORTING
destination = p_pass.
CALL FUNCTION 'FTP_CONNECT'
EXPORTING
user = p_user
password = p_pass
host = p_host
rfc_destination = 'SAPFTPA'
IMPORTING
handle = l_hdl
EXCEPTIONS
not_connected = 1
OTHERS = 2.
CALL FUNCTION 'FTP_COMMAND'
EXPORTING
handle = l_hdl
command = 'cd XXXR' "This is the remote location not the local location
compress = 'N'
TABLES
data = lt_data
EXCEPTIONS
command_error = 1
tcpip_error = 2.
CALL FUNCTION 'FTP_COMMAND'
EXPORTING
handle = l_hdl
command = l_cmd "l_cmd contains put <filename>
compress = 'N'
TABLES
data = lt_data
EXCEPTIONS
command_error = 1
tcpip_error = 2.
CALL FUNCTION 'FTP_DISCONNECT'
EXPORTING
handle = l_hdl.
2024 Jun 26 8:28 AM
Can you please share the solution for this background job failure error - Invalid FTP handle
2024 Jun 26 9:02 AM - edited 2024 Jun 26 9:05 AM
AFAIK 'former member' are no longer active, post your own question or search again.
2024 Jul 02 7:41 AM
Hello Raymond, the solution in the link is not working for background job program.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |