cancel
Showing results for 
Search instead for 
Did you mean: 

File Content Conversion in JMS Adapter

Former Member
0 Kudos

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)

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50061bd9-e56e-2910-3495-c5faa652...

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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

Former Member
0 Kudos

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>

Former Member
0 Kudos

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

Former Member
0 Kudos

Sorry, for not reading you query correctly.

Former Member
0 Kudos

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

Former Member
0 Kudos

For the parameter Recordsets per message give ' * ' as the value.

cheer's