Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

JMS receiver adapter file content conversion issue

I'm able to successfully convert complex structure using XML2Plain using StructXML2Plain module keys. However, I'm having trouble with a simple structure. All I see is a LF in the queue.

For the simple structure, I create the message via ABAP mapping unlike complex structure.

My data looks like this -

<?xml version="1.0" ?>

- <ns1:HQ_reply_MT xmlns:ns1="urn:abc.com:HQToSAP">

<Data1> PIPXSDI3070 00000 00342YSDI3070PROCESS_MQSERIES HQXPLOR10 XPLOR.ORDER.RESULTS 0000 000000000000000086312 Invalid Process flag : 2. 065</Data1>

</ns1:HQ_reply_MT>

the only think I'm missing is the encoding="UTF-8" in the first line of the xml document. Not sure how to get this via ABAP mapping.

My conversion rules are as follows -

<b>Transform.Class com.sap.aii.messaging.adapter.Conversion

Transform.ContentType text/plain;charset=utf-8

xml.addHeaderLine 0

xml.conversionType SimpleXML2Plain

xml.fieldSeparator ","</b>

I've tried Transform.ContentType and TransformContentType, both result in success with only LF in the queue.

At this point I'm thinking its something to do with my XML message I create. Any ideas?

Thank you.

replied

You need an additional hierarchy level:

root

-> row

-> data

In your example:

<?xml version="1.0" ?>

<ns1:HQ_reply_MT xmlns:ns1="urn:abc.com:HQToSAP">

<b><row></b>

<Data1> PIPXSDI3070 00000 00342YSDI3070PROCESS_MQSERIES HQXPLOR10 XPLOR.ORDER.RESULTS 0000 000000000000000086312 Invalid Process flag : 2. 065</Data1>

<b></row></b>

</ns1:HQ_reply_MT>

Regards

Stefan

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question