cancel
Showing results for 
Search instead for 
Did you mean: 

JMS receiver adapter file content conversion issue

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

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

Former Member
0 Kudos

This worked!!! Thank you.

Answers (0)