cancel
Showing results for 
Search instead for 
Did you mean: 

problem with finding JMS content coversion module

Former Member
0 Kudos

Hi Experts,

I am configuring the JMS adapter for MQ. According to the "how to" guide there should be the 3 JMS conversion modules as below,

Module Sequence in the Receiver Channel

1 localejbs/AF_Modules/MessageTransformBean L XML2Plain

2 localejbs/SAP XI JMS Adapter/ConvertMessageToBinary L CallJMSService

3 localejbs/SAP XI JMS Adapter/SendBinarytoXIJMSService L Exit

But in my system I can only find the following ones,

1 SAP XI JMS Adapter/ConvertMessageToBinary Local Enterprise Bean convert_XI2Bin

2 SAP XI JMS Adapter/SendBinarytoXIJMSService Local Enterprise Bean exit

Please help.

Thanks!

Jason

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

You have to create a new line and type the missing module name manually.

The 'localejbs/' is optional and you may omit it.

Regards

Stefan

Former Member
0 Kudos

Thanks Stefan, will try it. And once it is working I will award you with 10!

Just one more question: why it did not show up as the other two on the list?

Jason

stefan_grube
Active Contributor
0 Kudos

The two modules are obligatory, without them the JMS adapter would not work at all.

The MessageTransformBean is optional. You may use it in any adapter like file, JMS or mail adapter.

Here is a list of other optional modules which can be used in any adapter (besides sender SOAP adapter):

http://help.sap.com/saphelp_nw2004s/helpdata/en/84/2e3842cd38f83ae10000000a1550b0/frameset.htm

Hope that helps

Stefan

Former Member
0 Kudos

Much clear.

Thanks!

BTW, I have awarded you with 10.

Jason

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Sorry for reopening this thread.

I have another question in regarding of the conversion using key XML2Plain,

I have a fairly complecated IDoc ORDERS05 need to converted to plain text then send to MQ.

The IDoc structure is like the follows,

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

- <ORDERS05>

- <IDOC BEGIN="1">

- <EDI_DC40 SEGMENT="1">

<TABNAM>EDI_DC40</TABNAM>

<MANDT>150</MANDT>

<DOCNUM>0000000000389476</DOCNUM>

<DOCREL>620</DOCREL>

<STATUS>30</STATUS>

<DIRECT>1</DIRECT>

<OUTMOD>2</OUTMOD>

<IDOCTYP>ORDERS05</IDOCTYP>

<MESTYP>ORDERS</MESTYP>

<SNDPOR>SAPSB4</SNDPOR>

<SNDPRT>LS</SNDPRT>

<SNDPRN>SB4150</SNDPRN>

<RCVPOR>A000000034</RCVPOR>

<RCVPRT>LS</RCVPRT>

<RCVPFC>LS</RCVPFC>

<RCVPRN>XIX100</RCVPRN>

<CREDAT>20070205</CREDAT>

<CRETIM>091144</CRETIM>

<SERIAL>20070205091138</SERIAL>

</EDI_DC40>

- <E1EDK01 SEGMENT="1">

<CURCY>USD</CURCY>

<WKURS>1.00000</WKURS>

<ZTERM>0007</ZTERM>

<BSART>NB</BSART>

<BELNR>4500011176</BELNR>

<RECIPNT_NO>0000115722</RECIPNT_NO>

</E1EDK01>

- <E1EDK14 SEGMENT="1">

<QUALF>014</QUALF>

<ORGID>CA01</ORGID>

</E1EDK14>

- <E1EDK14 SEGMENT="1">

<QUALF>009</QUALF>

<ORGID>030</ORGID>

</E1EDK14>

- <E1EDK14 SEGMENT="1">

<QUALF>013</QUALF>

<ORGID>NB</ORGID>

</E1EDK14>

- <E1EDK14 SEGMENT="1">

<QUALF>011</QUALF>

<ORGID>1000</ORGID>

</E1EDK14>

- <E1EDK03 SEGMENT="1">

<IDDAT>012</IDDAT>

<DATUM>20070205</DATUM>

</E1EDK03>

- <E1EDK03 SEGMENT="1">

<IDDAT>011</IDDAT>

<DATUM>20070205</DATUM>

</E1EDK03>

- <E1EDKA1 SEGMENT="1">

<PARVW>AG</PARVW>

<PARTN>CA01</PARTN>

<NAME1>CN rail division</NAME1>

<BNAME>BC North</BNAME>

<PAORG>CA01</PAORG>

<ORGTX>SM CA</ORGTX>

<PAGRU>030</PAGRU>

</E1EDKA1>

- <E1EDKA1 SEGMENT="1">

<PARVW>RE</PARVW>

<NAME1>Company internal address</NAME1>

<NAME2>Accounts Payable</NAME2>

<STRS2>PO BOX 8103</STRS2>

<ORT01>Richmond Hill</ORT01>

<PSTLZ>H3C 3N3</PSTLZ>

<LAND1>CA</LAND1>

<REGIO>QC</REGIO>

</E1EDKA1>

- <E1EDKA1 SEGMENT="1">

<PARVW>LF</PARVW>

<PARTN>0000115722</PARTN>

<NAME1>SAFETRAN CANADA INC</NAME1>

<ORT01>WINNIPEG</ORT01>

<PSTLZ>R3E 3M8</PSTLZ>

<LAND1>CA</LAND1>

<SPRAS>E</SPRAS>

<REGIO>MB</REGIO>

<SPRAS_ISO>EN</SPRAS_ISO>

</E1EDKA1>

- <E1EDKA1 SEGMENT="1">

<PARVW>LS</PARVW>

<PARTN>0000115722</PARTN>

</E1EDKA1>

- <E1EDKA1 SEGMENT="1">

<PARVW>WE</PARVW>

<LIFNR>1000</LIFNR>

<NAME1>US-Supervisor Supply Management</NAME1>

<NAME2>Thornton Yard MP & CE</NAME2>

<STRAS>13477 116TH Avenue</STRAS>

<ORT01>Surrey</ORT01>

<PSTLZ>V3R 6W4</PSTLZ>

<LAND1>CA</LAND1>

<TELF1>(604)589-6567</TELF1>

<TELFX>(604)589-6572</TELFX>

<SPRAS>E</SPRAS>

<REGIO>BC</REGIO>

<FCODE>5258P</FCODE>

<SPRAS_ISO>EN</SPRAS_ISO>

</E1EDKA1>

- <E1EDK02 SEGMENT="1">

<QUALF>001</QUALF>

<BELNR>4500011176</BELNR>

<DATUM>20070205</DATUM>

<UZEIT>091141</UZEIT>

</E1EDK02>

- <E1EDK17 SEGMENT="1">

<QUALF>001</QUALF>

<LKOND>FB1</LKOND>

<LKTEXT>plant</LKTEXT>

</E1EDK17>

- <E1EDK18 SEGMENT="1">

<QUALF>001</QUALF>

<TAGE>35</TAGE>

</E1EDK18>

- <E1EDKT1 SEGMENT="1">

<TDID>F01</TDID>

<TSSPRAS>E</TSSPRAS>

<TSSPRAS_ISO>EN</TSSPRAS_ISO>

- <E1EDKT2 SEGMENT="1">

<TDLINE><B>Routing: this is the testing text .</></TDLINE>

<TDFORMAT>*</TDFORMAT>

</E1EDKT2>

- <E1EDKT2 SEGMENT="1">

<TDFORMAT>*</TDFORMAT>

</E1EDKT2>

</E1EDKT1>

- <E1EDP01 SEGMENT="1">

<POSEX>00010</POSEX>

<ACTION>001</ACTION>

<PSTYP>0</PSTYP>

<KZABS>8</KZABS>

<MENGE>5.000</MENGE>

<MENEE>EA</MENEE>

<BMNG2>5.000</BMNG2>

<PMENE>EA</PMENE>

<VPREI>10</VPREI>

<PEINH>1</PEINH>

<NETWR>50</NETWR>

<MATKL>GEN1010</MATKL>

<BPUMN>1</BPUMN>

<BPUMZ>1</BPUMZ>

<WERKS>1000</WERKS>

<LGORT>060A</LGORT>

- <E1EDP20 SEGMENT="1">

<WMENG>5.000</WMENG>

<AMENG>0.000</AMENG>

<EDATU>20070218</EDATU>

</E1EDP20>

- <E1EDP19 SEGMENT="1">

<QUALF>001</QUALF>

<KTEXT>Test data 50</KTEXT>

</E1EDP19>

</E1EDP01>

- <E1EDS01 SEGMENT="1">

<SUMID>002</SUMID>

<SUMME>50</SUMME>

<SUNIT>CAD</SUNIT>

</E1EDS01>

</IDOC>

</ORDERS05>

and I have the conversion module configured as

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.fieldFixedLengths 100

XML2Plain xml.fixedLengthTooShortHandling Cut

I know that I should use another set of parameters, with

.....

XML2Plain xml.conversionType StructXML2Plain

....

XML2Plain xml.recordsetstructure EDI_DC40,E1EDK14,...

.....

But there are more than one E1EDK14 in the XML payload, should I put the same tag once once again? and also there are more layers inside the XML structure, should I out all of them following 'XML2Plain xml.recordsetstructure'?

Beside, is there any simple way to check the result of conversion XML2Plain without going to MQ?

Thanks so much for you help.

Jason