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: 

Making the FTP file as Tab delimited

Former Member
0 Kudos
248

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 .

2 REPLIES 2

Former Member
0 Kudos
86

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

0 Kudos
86

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?