cancel
Showing results for 
Search instead for 
Did you mean: 

JMS Adapter Content conversion using Webspear MQ

Former Member
0 Kudos

Hi All,

I have a scenario where I have to pick a flat file from WebSpear JMS Q.In turn I should convert flat structure into xml structure to parse to the RFC structure(YOTCS_I090_INV_S) and map to the traget structure.

Below is the Source structure:

Messages

->Message1

-->YOTCI_I090_INV_SYNC

--->YOTCS_I090_INV_SYNC

-


>item

-


>ZDATE

-


>TIME

-


>TZONE

-


>WERKS

-


>MATNR

-


>LGORT

-


>CHARG

-


>SOBKZ

-


>INSMK

-


>LIFNR

-


>ZMENGE

-


>ZMEINS

-


>LOT_NUMBER

-


>CODE_DATE

Source file look's as below:

YOTCS_I090_INV_S 4928

YOTCS_I090_INV_S 3

YOTCS_I090_INV_S 3

YOTCS_I090_INV_S 1

I am doing the file contact conversion as below in JMS Adapter:

Module Key ParameterName ParameterValue

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

Plain2XML Transform.ContentType text/xml;charset=utf-8

Plain2XML xml.conversionType StructPlain2XML

Plain2XML xml.documentName YOTCI_I090_INV_SYNC

Plain2XML xml.documentNamespace urn:sap-com:document:sap:rfc:functions

Plain2XML xml.item.fieldFixedLengths 8,8,6,4,18,4,10,1,1,10,13,3,10,8

Plain2XML xml.item.fieldNames ZDATE,TIME,TZONE,WERKS,MATNR,LGORT,CHARG,SOBKZ,INSMK,LIFNR,ZMENGE,ZMEINS,LOT_NUMBER,CODE_DATE

Plain2XML xml.processFieldNames fromConfiguration

Plain2XML xml.recordsetStructure item,*

Can any one help me in configuring the Content conversion? Hope you got my issue.

Thanks in Advance.

Best Regards,

Jose

Accepted Solutions (0)

Answers (1)

Answers (1)

agasthuri_doss
Active Contributor
0 Kudos
Former Member
0 Kudos

Hi Doss,

My source Structure is RFC Object which does not have DataType and Message Type and source input file is Fixed length file.

I am just having dout what to mention for DocumentType and recordset Stucture.

Jose