Skip to Content

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

Sending string using JMS MQS protocol

Sending string using MQS protocol

Hello, I need help. I'm trying to create an interface which receives from my R3 system a string and must send it to a server using JMS adapter. People from the server side tell me they expect a string (the same line my interface receives), however they are getting the string embedded in an XML format. Can anyone tell me how do I get it to send just the line, without the xml data?

Example:

My R/3 System sends:

FILON 01024 A1 P1 04O01140813185320100017620000000010 0120140910 20140804 00012556V.P. SECRETARIA GENE J003439940 1181LE 00000000000000100000001000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000000000000000 10020000000006210000000000000000010000000000 0000000000000000000 0000 0000000000000000000 0000 0000000000000000000 0000 0000000000000000000 0000 0000000000000000000 VEF OK

The JMS server receives:

<?xml version="1.0" encoding="utf-8" ?>

  <nm:MT_EnvioSolped_P1_ERP xmlns:nm="urn:Solped:VE_SAP_ERP_ORACLE" xmlns:prx="urn:sap.com:proxy:RD1:/1SAI/TAS9A1CD85A69589AB5528E:731">FILON 01024 A1 P1 04O01140813185320100017620000000010 0120140910 20140804 00012556V.P. SECRETARIA GENE J003439940 1181LE 00000000000000100000001000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000000000000000 10020000000006210000000000000000010000000000 0000000000000000000 0000 0000000000000000000 0000 0000000000000000000 0000 0000000000000000000 0000 0000000000000000000 VEF OK</nm:MT_EnvioSolped_P1_ERP>

Best Regards

Tags:
Former Member
replied

Hello,

You cannot view your converted text message using message monitoring. So check with JMS team and see what content they have received?

Secondly, there is something wrong with your target structure which u have created in PI. Can you paste the same?

IMO, u should alter ur target structure little bit like this

<MT_EnvioSolped_P1_ERP>

<Record>

<Data>ABC</Data>

</Record>

</MT_EnvioSolped_P1_ERP>

and use below parameters under module config

XML2Plain      Transform.Class                 com.sap.aii.messaging.adapter.Conversion

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

XML2Plain       xml.addHeaderLine            0

XML2Plain       xml.conversionType           SimpleXML2Plain

XML2Plain       xml.endSeparator               'nl'

XML2Plain        xml.fieldSeparator               ;

Thanks

Amit Srivastava

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