Skip to Content
avatar image
Former Member

JMS Adapter Content conversion using Webspear MQ

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 11, 2009 at 01:04 AM
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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