2016 Feb 26 11:17 AM
Hi,
I am facing problem while using this function module : FTP_R3_TO_SERVER'.
i want to transfer data from SAP to FTP server in (.CSV) file. still through my program everything is ok.means i am able to transfer data from SAP TO FTP server in .CSV format. but client requirement is
Example : suppose on FTP server already 2 record exist in .CSV file when i create new two record ithrough my problem means from SAP.
that time 2 record which already available on FTP server refresh and 2 newly created records getting paste on that FTP server .CSV file.
but i dont want like that . i want when i create new 2 record that time this 2 record and old 2 record must be display in .CSV file on FTP server.
currently new records gets replaced by old record but i dont want that please help me to fulfill this requirement.
Thanks,
Yogesh
2016 Feb 26 12:34 PM
Try to use in sequence
In the call of FTP_COMMAND: use the append command and not the usual put command.
Regards,
Raymond
2016 Feb 26 11:20 AM
Try loading the data from the existing (or old) file, append the new data, and write the complete new file (containing both old and new records) back to the FTP server.
2016 Feb 26 11:21 AM
Hello Yogesh,
You mean you want to merge your actual file to be transferred with the one on destination folder if exist?
In this case
2016 Feb 26 12:34 PM
Try to use in sequence
In the call of FTP_COMMAND: use the append command and not the usual put command.
Regards,
Raymond
2016 May 02 11:24 AM
HI Raymond,
Your reply was useful. But append command returns subrc = 0 but not appending data into file.
Waiting for reply from you all SAP Gurus.
Thanks&Regards,
Srinath R
2016 May 03 9:59 AM
Check the returned itab DATA from FTP_COMMAND, it contains a log of execution of the command, you can find some message and the command actually executed.
Regards,
Raymond
2016 May 03 5:02 PM
Hi Raymond,
Thanks for you quick response.
Yeah. In the itab DATA i get the log like..
1.append \file.csv
2.192 bytes transferred successfully..
and so on like this.
But I found that record is not appended in the file.
Waiting for your reply.
Thanks&Regards,
Srinath R