cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a text file with tab ?

Former Member
0 Kudos

Hi,

We are running CRM 7.0 on a linux server. We have to extract business partner data and to generate a text file with tab on the server. Then we will use a FTP script to send the file to a third party server (windows).

We have some issue when generating the text file: the tabs between each data are correct but the carriage return are not good, so we have a lot of space between the end of a line and the beginning of the next one.

Do you have any idea how to generate correctly a text file with tab on a linux server ?

In the program, I use the code cl_abap_char_utilities=>horizontal_tab to separate each data. Then I use open dataset lv_file for output in BINARY MODE to create the file.

Marc

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Is it really about how to generate correctly a text file ?

Problems with carriage returns in ftp usually arise from incorrect transfer mode between Unix/Linux and Windows.

Make sure you use ascii, not binary.

Former Member
0 Kudos

Problem solved: I used "in binary mode" instead of "in text mode encoding default".

Marc

Answers (0)