Hi,
I have a report which is ftping flat files to the server. when I execute the program in foreground with limited data, it ftpes the file successfully. However when I run the program in background the ftp fails.
The spool for the background run is as follows:
lcd /mnt/TRANSFER/TST/XXXXX/
Local directory now /mnt/TRANSFER/TST/XXXXX
cd \FTP
550 /FTP: The system cannot find the file specified.
550 /FTP: The system cannot find the file specified.
put Pmaster_SAP01_100614.txt
open Pmaster_SAP01_100614.txt errno 2: No such file or directory
put Pmaster_SAP01_100614
open Pmaster_SAP01_100614 errno 2: No such file or directory
I am using the following FM's in the program:
CALL FUNCTION 'HTTP_SCRAMBLE'
CALL FUNCTION 'FTP_CONNECT'
IF cmd1 NE ' '.
CALL FUNCTION 'FTP_COMMAND'
IF cmd2 NE ' '.
CALL FUNCTION 'FTP_COMMAND'
IF cmd3 NE ' '.
CALL FUNCTION 'FTP_COMMAND'
IF cmd4 NE ' '.
CALL FUNCTION 'FTP_COMMAND'
CALL FUNCTION 'FTP_DISCONNECT'
CALL FUNCTION 'RFC_CONNECTION_CLOSE'
Any suggestions why the ftp is not successful in the background?
Regards,
Peter