on 08-29-2007 4:58 PM
Hello,
I am trying to use module parameters to convert File to XML in Sender JMS adapter. I have followed the instructions in the SAP document (3.1 Example of a Simple Conversion in a Sender Communication Channel)
The problem I am facing is instead of creating one xml message for all the lines in the file; it is creating one message per line. Not sure what I need to do get all the lines in to one xml message.
Please let me know if any of you have faced similar issue.
Thanks
AV
Hello,
My issue is resolved. The problem was beyond XI, it was the issue of another middleware which was placing each record in a seperate MQ message. Once all the records where placed in single MQ message XI processed all the records in to one XML.
AV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The Parameter xml.recordsetsPerMessage can only be used if it is a complex structure. I mean it needs a recordSet with Keys..etc and What I am trying to do is a simple FCC using
Transform.Class=com.sap.aii.messaging.adapter.Conversion
Transform.ContentType=text/xml;charset=utf-8
xml.conversionType=SimplePlain2XML
xml.documentName=PurchaseOrder_Root
xml.documentNamespace=http://namespace
xml.fieldFixedLengths =2,10,10,3,..
xml.fieldNames = DATA1,DATA2,DATA3....
xml.processFieldNames=fromConfiguration
xml.structureTitle=PurchaseOrder
<b>I am expecting</b>
<PurchaseOrder_Root>
<PurchaseOrder>
<DATA1> </DATA1>
<DATA2> </DATA2>
.............................
</PurchaseOrder>
<PurchaseOrder>
<DATA1> </DATA1>
<DATA2> </DATA2>
.............................
</PurchaseOrder>
</PurchaseOrder_Root>
<b>When I use the above Module Config it is giving me </b>
</PurchaseOrder_Root>
<PurchaseOrder>
<DATA1> </DATA1>
<DATA2> </DATA2>
.............................
</PurchaseOrder>
</PurchaseOrder_Root>
</PurchaseOrder_Root>
<PurchaseOrder>
<DATA1> </DATA1>
<DATA2> </DATA2>
.............................
</PurchaseOrder>
</PurchaseOrder_Root>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi dreamcatcher,
Thanks for instant reply.
I could use "parameter Recordsets per message" if I am using the Sender File Adapter. But I am using JMS Adapter and trying to do FCC using Module parameters.
Is there a Module parameter that can be used to say multiple records per message ?
AV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
xml.recordsetsPerMessage=<noOfRecordsets>
1, , * for an entire document in a message.
Specifies the number of recordsets to be grouped together for one message. If the number of recordsets in a document is greater than the number specified, the adapter creates multiple messages from a document. The last of these messages might then contain fewer recordsets than specified.
I found it in Help hope this helps you
http://help.sap.com/saphelp_nw04/helpdata/en/0d/00453c91f37151e10000000a11402f/frameset.htm
For the parameter Recordsets per message give ' * ' as the value.
cheer's
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.