Skip to Content
Former Member
Jun 07, 2006 at 02:47 PM

Trailing blank line when writing file


Hi All!

I'm having a little trouble with the file adapter. I have an interface, which picks up a file with the file adapter, and then in a business process goes through some steps.

First it is converted to an XML file, with some mapping (XSLT). Then, through RFC, additional data is requested from an R/3 system. The R/3 data and the data from the file are then merged through yet another mapping (XSLT). This all goes fine, no problems here.

Then, at the end, the merged message is written to a server, with the file adapter again, as a CSV file. This works also, but every time there is a carriage return at the end of the file. You have several lines of data, and then a return, so you get a blank line at the end of the file. I have done nothing in the configuration that justiefies this, and have no idea where this return comes from.

Can anyone please give me some pointers on this? It seems that every interface that writes files in our company suffers from the same problem...

Please, be gentle, because I am quite new to SAP XI ๐Ÿ˜Š

Thanks in advance!

(I am sorry, but I will go home in 15 minutes, but I thought I could post it for all of you who are in a different time zone. I will see if I can check again later tonight from home...)