on 03-13-2013 5:14 PM
Dear Friends,
SAP PI is placing file on FTP location. When client is opening file, contents are getting displayed in 1 line instead of standard XML format in separate lines.
Can anybody guide me as to what can be done?
Thanks.
SM.
Hi,
These threads, with similar matter, could be helpful for you:
http://scn.sap.com/thread/1555806
http://scn.sap.com/thread/2109969
http://scn.sap.com/thread/1765943
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could achieve line breaks by writing and applying an adapter module before you send out the message.
In my opinion this makes no sense though. XML files are usually meant to be read by programs, not human beings. SAP opted to send out the payload as compact as possible therefore cutting all unnecessary spaces or line breaks.
For a program this does not make a difference. If a human being wants to read it, it is simply a matter of the program they are using to display your XML file.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Does your PI system is placing xml file in target file server.
If yes .It is display problem.Nothing to do with PI.
Tip to view line by line.
open the file using editplus s/w-->click ctrl+b .
Regards
Venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Are you placing new line character at the end of each line before writting to the target location.
Regards,
Ashish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
S M,
It depends on which mode you are opening file If you open any XML file with notepad all the tags will be displayed in one row.
If you open the same XML file with internet exploer/xml editor it shows formatted.
Let me know when you write file what is the file name...is it ends with .txt or .xml
Regards,
Ashish
Sumit,
Is this a pass through interface in PI or you are using any mapping.
Try to use the below code -
<?xml version="1.0" encoding="UTF-8"?>
<xsl:output method="xml" encoding="UTF-8"/>
<xsl:template match="/">
<xsl:copy-of select="Write your message type /Child node or nodes you want to copy./>
</xsl:template>
</xsl:stylesheet>
Regards,
Ashish
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.