cancel
Showing results for 
Search instead for 
Did you mean: 

FileUpload, OPEN DATASET, TRANSFER and '#' at EOF

TimoScharmann
Participant
0 Kudos

Hello!

I have implemented a Web Dynpro, that stores a file from local client on an application server. The file is read with UI Element FileUpload, its data processed with a xstring variable and stored on application server with command "OPEN DATASET <file> FOR OUTPUT IN BINARY MODE." and "TRANSFER <data> TO <file> NO END OF LINE." The problem is, that plain text files (like .csv) are displayed in transaction "al11" with a "#" at end of line. Furthermore other systems cannot process this file correctly, as they also have this problem.

The transfer should be in binary mode, as non text files have to be processed, too.

I have already tried with and without option "NO END OF LINE" for command "TRANSFER", but with no result.

Does anyone have an idea?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Timo,

This is not a Web Dynpro ABAP question.

However my advise is to store data in the database rather than a file on the ABAP server.

Consider also receiving the input with a web service or with a Remote Enabled function (RFC). These are better options if you need to automate or enable application programs to feed data into your system without human intervention.

Your current solution requires someone go to the Web Dynpro application and upload the file manually.

Regards... Lucio Menzel

TimoScharmann
Participant
0 Kudos

Lucio, you're right - it is not an ABAP Web Dynpro question!

I solved this problem by converting text files manually for upload, so that they are adapted to the code page specific line break.

Answers (0)