Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Re: Adding carriage return or Line Feed at the end of XML File

Hi Gurus

Can you please let me know the easiest way to ADD Carriage return or line feed at the end of XML file. Please, review example below in red.

I did come across this article:

However, does this UDF have to added to each field or the root node was unclear to me.

Interface Pattern:

ECC (ABAP Proxy) -> PI (Maps to XSD) -> .xml File placed on FTP server.

Please, let me know the best possible way to implement this.

Also, is there anything which can be done on the Proxy side in ECC itself.

Thank you so much,



  • Current Output file:

<?xml version="1.0" encoding="ISO-8859-1" ?><note><to>Tove</to><from>Jani</from><heading>Reminder</heading><body>Don't forget me this weekend!</body></note>

  • Output we want:

<?xml version="1.0" encoding="ISO-8859-1" ?>








Don't forget me this weekend!</body>


hi Ritu,

the screenshot shows they are warning not errors.

That should not have any problem in executing the program.

And if warning is bothering it is because you must be using execute function which is deprecated and hence you should transform function instead.

Java mapping: To make changes to file placed in FTP location.

the above link can just help you with usage of transform. You can use same structure and change the code accordingly.

hope that helps.

thanks and regards,

Praveen T

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question