on 05-23-2012 2:44 PM
Hi Experts,
We have to send a flat file to target system using JMS content conversion.
The xml file from PI side is
XML Structure:
Msg_Type
Data
AAA
BBB
CCC
...
...
ZZZ
data
To Be Output:
#DATA
AAABBBCCC......ZZZ
#EOF
But the output we are getting is:
#DATAAAABBBCCC......ZZZ#EOF
XML2Plain | Transform.Class | com.sap.aii.messaging.adapter.Conversion |
XML2Plain | Transform.ContentType | text/plain;charset=utf-8 |
XML2Plain | xml.FileContentFormatting | nothing |
XML2Plain | xml.addHeaderLine | 0 |
XML2Plain | xml.beginSeparator | #DATA'nl' |
XML2Plain | xml.conversionType | SimpleXML2Plain |
XML2Plain | xml.endSeparator | 'nl'#EOF |
XML2Plain | xml.fieldFixedLengths | |
XML2Plain | xml.fixedLengthTooShortHandling | CUT |
XML2Plain | xml.keepIncompleteFields | YES |
XML2Plain | xml.missingLastFields | ignore |
Can any one help me on this. Its urgent
Hi,
You can try using: '0x0D''0x0A' instead of 'nl', but I'm not sure if it will work.
In general, it isn't really clear whether you can use special PI markers as 'nl' together with normal text. For #DATA line, you have an alternative of adding the header line, but the same is not available for the footer. Is it acceptable for you to change the payload? Since what you require would be easy if you put the #DATA and #EOF in the PI's XML payload and output it in the flat file content from there.
Regards,
Greg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.