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 Issue

Former Member
0 Likes
602

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

3 REPLIES 3
Read only

nomssi
Active Contributor
0 Likes
535

I would suggest to search SDN for SAPFTPA.

best regards,

J. N. N.

Read only

Former Member
0 Likes
535

>

> I However when I run the program in background the ftp fails.

This is the way users tend to speak. If you want help, you have to be more fortcoming with the nature of the error.

Have a look at [Asking Good Questions in the Forums to get Good Answers|]

Rob

Read only

Former Member
0 Likes
535

Done