01-26-2015 12:11 PM
As known, we can use this FM to transfer a file from SAP AS to FTP server.
In my case, my internal table is too larger to get all data inside it(exceed the limit of extended memory+heap memory, and it's not allowed to set them), so I have to split it into two internal tables and transfer twice.
But I still need it to output as one txt file, so what I am expecting is to transfer data 'APPEND' to a txt file instead of overwrite it.
Does this FM or any other FM provide the function like this?
Thanks.
01-26-2015 1:51 PM
Hi Ming
You just need change the FTP command to 'APPEND', there are many threads explained this.
regards,
Archer
01-27-2015 2:10 AM
Hi, thank you.
But what about the sequence, is it unexceptable?
For example, if internal table A is split to three internal tables which are:
A1: no.1 - no.30
A2: no.31 - no.60
A3: no.61 - no. 90
I want the txt file has 90 lines and from 1 to 90 in sequence, is it possible?
01-27-2015 2:47 AM
01-27-2015 3:00 AM
Thomas already said, If you don't mind writting your file to your local filesystem first, you can always use the function modules FTP_CONNECT, FTP_COMMAND, and FTP_DISCONNECT.
Then do not need 'FTP_R3_TO_SERVER' any more. if you want use this FM, you need download to local first.
01-28-2015 3:45 AM
Thank you for the hints.
Now I understand, it seems that 'FTP_R3_TO_SERVER' do not provide 'APPEND'.
So I need to download these 3 internal tables into one txt file first,
maybe I will download to Application Server by using DATA OPENSET, I will give it a try.