Application Development 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: 

File copy from application server to ftp

Former Member
0 Kudos

[File copy from application server to ftp]

Hello,

I need to copy a file (xx.csv) from an application server path (/export/home/sample) to an ftp address. I understand the ftp_connect ftp_command ftp_disconnect functions but i couldn't find a way to pick the file from source directory.

I appreciate any help. Thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi

good

You can use RZL_READ_FILE to open the file and send to an Internal Table...Then use FTP_R3_TO_SERVER to send it trough FTP

thanks

mrutyun^

4 REPLIES 4

former_member223537
Active Contributor
0 Kudos

FTP_CLIENT_TO_R3

FTP_COMMAND Execute FTP Command

FTP_COMMAND_LIST

FTP_CONNECT Connect to FTP server

FTP_COPY FTP Copy

FTP_DISCONNECT Disconnect from FTP serve

FTP_R3_TO_CLIENT

FTP_R3_TO_SERVER

FTP_SERVER_TO_R3

FTP_START_REG_SERVER

FTP_START_SAPFTP

FTP_STOP_REG_SERVER

FTP_VERSION Procure SAPFTP version

0 Kudos

Hi Prashant,

do you have an example piece of code for purpose mentioned?

I need info on how to pick the source file.

thanks

Former Member
0 Kudos

hi

good

You can use RZL_READ_FILE to open the file and send to an Internal Table...Then use FTP_R3_TO_SERVER to send it trough FTP

thanks

mrutyun^

Former Member
0 Kudos

HELLO,

use FTP_COPY.

or other FTP commands like LCD CD and PUT.

cn u tell me ur requirments?

so that i will be able to tell u more bout it.