2007 Mar 11 8:52 PM
Hi experts
I have a requirement to place a .TXT file on the<b> FTP server</b>. I am able to do that successfully using the function modules HTTP_SCRAMBLE, FTP_CONNECT, FTP_R3_TO_SERVER, FTP_DISCONNECT. But the problem is I want to make this file as <b>Tab delimited</b>. As of now, when I copy this text file back to my desktop and open with notepad, it is not in the Tab delimited format. Moreover, if the number of columns are greater than 1024, the data is being written in the next line. Can you please suggest any solutions fast as this is urgent requirement.
Full points will be given .
2007 Mar 12 1:52 AM
Hi,
You declare a type X variable with a value of '09'. Something like:
DATA: begin of test,
x1 type x,
x2 type char10,
end of test.
test-x1 = '09'.
test-x2 = 'Other data'.
OPEN DATASET 'ztest000.txt' FOR OUTPUT IN LEGACY TEXT MODE.
TRANSFER test TO 'ztest000.txt'.
CLOSE DATASET 'ztest000.txt'.
This works in Unicode programs too.
~arman
2007 Mar 12 12:57 PM
Hi
Sorry if i have not made my requirement clear. I have to place the text file on the FTP server on the frontend (SAPFTP). I have the contents in an Internal table which i am pasiing using function module FTP_R3_TO_SERVER. At this point how can I create this file on the FTP server as a tab delimited file?