09-20-2007 5:42 AM
[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
09-20-2007 5:56 AM
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^
09-20-2007 5:48 AM
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
09-20-2007 5:51 AM
Hi Prashant,
do you have an example piece of code for purpose mentioned?
I need info on how to pick the source file.
thanks
09-20-2007 5:56 AM
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^
09-20-2007 6:12 AM
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.