cancel
Showing results for 
Search instead for 
Did you mean: 

Delimitted Text File Issue

vnemuri
Discoverer
0 Kudos

Hello Developer's,

I have concatenated the every table row field values in to a string by looping the table, using a delimiter 'I' pipe symbol.

for a material description has '#' at the end, when i uploaded the file to application server using Z_INTERFACE_FILE_WRITE. The file in the application server splitting the line at which material description had '#' at end and the rest half line displaying in the next line as a new line.

I don't know why its is considering '#' , even though i taken 'I' pipe symbol as delimiter.

advance Thanks ,

Vinod

Sandra_Rossi
Active Contributor

Z means custom development, so nobody knows Z_INTERFACE_FILE_WRITE.

Please provide more details about Z_INTERFACE_FILE_WRITE.

vnemuri
Discoverer
0 Kudos

Thanks for the replay,

This FM Z_INTERFACE_FILE_WRITE is used to upload the file from program to application server

CALL FUNCTION 'Z_INTERFACE_FILE_WRITE'

EXPORTING
pi_fname = p_file
pi_logfi = p_lgfile
pi_locfi = p_lcfile
pi_trunc_blanks = c_trunc_blanks
TABLES
t_data_out = it_output_data
EXCEPTIONS
file_open_error = 1
runtime_table_update_error = 2
logical_filename_error = 3
error_opening_file = 4
save_data_without_runid = 5
database_update_error = 6
file_output_error = 7
OTHERS = 8

.

Here it_output_data is my table which have records, these records line where separated by 'I' pipe symbol as i said in the above question.

Sandra_Rossi
Active Contributor
0 Kudos

Sorry to repeat, but nobody knows Z_INTERFACE_FILE_WRITE.

Accepted Solutions (0)

Answers (2)

Answers (2)

raymond_giuseppi
Active Contributor

Only people on your system can look at a custom FM such as Z_INTERFACE_FILE_WRITE.

Usually, # is displayed by SAP for non-displayable characters, this could be an LF, a CRLF so an "end of record" character.

2233667
Explorer
0 Kudos

Hi,

In your file, please make the material description with in quotes, such as '' '', then try to upload.