on 07-08-2010 5:54 AM
Hello Experts,
I have the scenario ECC--> PI7.11----> MQ.
MQ need the flat file instead of XML file. I used MessageTransformBean at receiver JMS adapter.
The XML structure is like:
<records>
<header>
<Fileld1> H1</Field1>
<Field2>H2</Field2>
</header>
<detail>
<Field3>D1</Field3>
<Field4>D2</Field4>
</detail>
<detail>
<Field3>D3</Field3>
<Field4>D4</Field4>
</detail>
</records>
I want file structure like:
H1H2
D1D2
D3D4
But I am getting file with 1 line and the structure like(if I give .endSeparator='\n'):
H1H2'\n'D1D2'\n'D3D4'\n'.
I have used .endSeparator/.beginSeparator for both Header and Detail with 'nl', '\n', '\r\n','0x0a' but still the data is coming with 1 line structure but I need the structure with three lines(1 for header and 2 for detail).
Can any one help me?
Note:Rewards if helpful.
It was having problem with the Receiver System and in Rcv Sys,there was one program which does not takes any new line character..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Did you try to use .fieldSeparator 'nl' for <records>? In your case I would also set .recordsetStructure.
Please find some examples below:
http://help.sap.com/saphelp_nw04/helpdata/en/24/4cad3baabd4737bab64d0201bc0c6c/content.htm
Regards,
Radek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you want a new line as end seperator, you need not declare this, as this is the default.
Remove endSeparator from your config.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could add following module after the messagetransformbean:
SAP XI Sample/ConvertCRLFfromToLF
http://help.sap.com/saphelp_nwpi71/helpdata/EN/96/f04142099eb76be10000000a155106/frameset.htm
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.