Doubt in jms content conversion

Hi ,
I m doing content conversion in sender jms channel.
My input is of the format
AAAAAAA#bbbbbbb#ccccccc#
I want to map it to XML Structure
<Root>
<Record>
  <item>AAAAA </item>
</Record>
<Record>
  <item>bbbbb</item>
</Record>
<Record>
  <item>CCCC</item>
</Record>
</Root>
Is it possible?

Resolved

Similar Messages

  • JMS content conversion issue

    Hi ,
    I am facing issue in JMS content conversion
    my file looks like as below...
    field1¤field2¤
    field1¤field2¤
    field1¤field2¤
    field1¤field2¤
    in module i have used this
    AF_Modules/MessageTransformBean   PLAIN2XML
    Transform.Class                com.sap.aii.messaging.adapter.Conversion
    Transform.ContentType     text/xml;charset=utf-8
    xml.conversionType           SimplePlain2XML
    xml.documentName            MT_data  
    xml.documentNamespace  http://xyz.com    
    xml.fieldNames                   field1,field2
    xml.fieldSeparator              ¤
    xml.processFieldNames     fromConfiguration
    xml.structureTitle                records
    but i am getting following error
    Error occurred while processing message: . Detailed error (if any):  com.sap.aii.adapter.jms.api.channel.filter.MessageFilterException: Transformer Conversion3.0.5226 Error initializing Class: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: (4408) Parameter xml.fieldFixedLengths or xml.fieldSeparator is missing (4409) Consistency check: no. of arguments in xml.fieldFixedLength does not match xml.fieldNames (0 <> 2) : TransformException: Transformer Conversion3.0.5226 Error initializing Class: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: (4408) Parameter 'xml.fieldFixedLengths' or 'xml.fieldSeparator' is missing (4409) Consistency check: no. of arguments in 'xml.fieldFixedLength' does not match 'xml.fieldNames' (0 <> 2)
    ironically when i use file adapter, its reading the file properly and converting XML as expected?
    Did anyone face this issue.....
    is this issue because of an extra ¤ .. is so... why its not giving issue with File??

    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

  • JMS Content Conversion with spaces

    Hi
    I am using the JMS Content Conversion to transalte MQ messages ( they come from the Mainframe ),to XML Format.
    These messages are in fixed lenghts structure , the fields contain blanks (spaces)
    The adapter cannot deal with it,only fixed lenghts without spaces , the monitor gives the following error
    XI inbound processing failed for message at 2006-08-24|07:45:25.518+0200. JMS and XI identifiers for message are ID:414d51204445564d41494e31202020207aabe04420c2ea13 and bd95c760-3333-11db-b915-001125a56002 respectively. JMS adapter will rollback database and JMS session transactions
    Have some1 dealed with this issue? managed to solve it?
    Thx,Shai

    Hi Shai.
    Before you call him ,try to use the simple convertion in the sender JMS comm. channel,then after you got the first XML structure to the XI ,use a simple\advanced java function from the message mapping and get rid of the spaces if they bother you.
    Can you post the fixed width message you get from JMS I'd like to have a look.
    By the way ,how did you resolve the File content convertion with 4 levels?
    Regarding Yaki's phone...well I'm sure your Boss have it.
    8-)
    Again ,good luck.
    Nimrod
    Message was edited by: Nimrod Gisis

  • JMS content conversion adapter module

    Hi All,
    In JMS Content conversion module Xml2Plain how do u put two new lines 'nl'.
    I am using localejbs/AF_Modules/MessageTransformBean in adapter module.
    If I put xml.record.fieldSeparator in parameter name and in parameter value if I put one 'nl' it gives me one new line. Now I require two new lines in my output text so I put 'nl' 'nl' in parameter value but it takes only one new line.
    e.g
    Vivek
    mumbai
    India
    John
    Delhi
    India
    Now I want the output as:
    Vivek
    mumbai
    India
    John
    Delhi
    India
    Thanks in advance.
    ravijeet

    try,
    xml.record.fieldSeparator '0x0D''0x0D'
    or
    xml.record.fieldSeparator '0x0A''0x0A'

  • Sender JMS content conversion

    Hi
       In the sender JMS content conversion, I do not want Recordset name hence I specified,
    Parameter Name: xml.ignoreRecordsetName
    Parameter Value: true
    But am still getting the Recordset name in the payload...
    Is this working for someone or a bug?
    Thanks in advance!
    Amulya

    >
    Amulya Lewis wrote:
    > Hi
    >
    >    In the sender JMS content conversion, I do not want Recordset name hence I specified,
    > Parameter Name: xml.ignoreRecordsetName
    > Parameter Value: true
    > But am still getting the Recordset name in the payload...
    > Is this working for someone or a bug?
    >
    > Thanks in advance!
    > Amulya
    when using the MessageTransformBean do note that xml.ignoreRecordsetName does not work

  • Testing JMS content conversion

    Hi Experts,
    I have a scenario MQ-->PI--ECC.
    MQ sends a flat file and there is JMS content conversion used in sender JMS channel. On MQ side channels are not yet setup. Now I need to test if JMS content conversion is working properly. I cannot test by triggering flat file from RWB.
    Is there a way I can trigger a file from any third party tools and test the content conversion. Do you have any suggestions to make this test possible.
    Thanks,
    Avinash.

    Hi Avinash
    One option is to create a temporary File/FTP sender channel and use it in the sender agreement replacing the JSM channel. In the File/FTP channel, use the MessageTransformBean to achieve content conversion. This way, you can test out the content conversion parameters, and once the JMS server is ready, you can just swap it.
    Rgds
    Eng Swee

  • Sender JMS Content Conversion - How to process multiple records

    Hi All,
    I use a Sender JMS Channel with Content Conversion.
    My message structure is like this
    <root>
        <rec>    </rec>
        <rec>    </rec>
    </root>
    I have fixed length flat file with multiple records.
    i have given the parameters FixedFieldLength, FieldNames and StructureTitle.
    Which parameter i need to use specify the RecordDelimiter
    Because my input file will have more than record
    my input file -
    xxxx
    yyyy
    if i dont specify any delimiter value, in the module parameter,then for each newline of the file, a new mesage is created.
    <root>
      <rec>xxxx</rec>
    <root>
    <root>
      <rec>yyyy</rec>
    <root>
    But i want the output to be like this
    <root>
    <rec>xxxx<rec>
    <rec>yyyy</rec>
    </root>

    hi,
    You can do your FCC for sender JMS by going through page 5 of this document.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50061bd9-e56e-2910-3495-c5faa652b710

  • JMS Content Conversion - Need to control RecordSet per Message

    Hi All,
    I have done a simple JMS to JMS scenario with content conversion.
    I need to control  RecordSet per Message ( similarlly we do for the FILE . that is , Recordset Structure = Records, 500 and Recordset per message = 1)
    How to achive this in JMS adapter.
    Regards,
    B.Jude

    There doesnt seem to be an option for that in the messagetransforbean
    http://wiki.sdn.sap.com/wiki/display/XI/HowTo...ContentconversionmodulewithJ2EEJMS+adapter

  • JMS Content Conversion

    Hi all,
    is possible to do content conversion in JMS Adapter of a file whit the following structure?
    -Root
    --Header
    ---A
    ---B
    ---C
    --Content
    ---Record_A
    D
    E
    F
    ---Record_B
    G
    H
    Record_C
    I
    J
    And if it's possible....how to do it?
    Thanks all
    Mane

    Hi,
    Refer to these links
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bfc7d12f891
    Check the how to guide provided by prabhu and also this link on the XMl To TeXtCoversion Module,
    http://help.sap.com/saphelp_nw04/helpdata/en/44/748d595dab6fb5e10000000a155369/content.htm
    Regards,
    Kumar.
    **reward points if helpful!!!

  • Doubt regarding file content conversion Recever File adapter.

    target structure.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:MT_ChangeOfAddress xmlns:ns1="urn:passhe.com/ChangeOfAddressISA28">
         <BUSINESS_PARTNER>
              <item>
                   <CAMPUSCODE>65</CAMPUSCODE>
                   <STUDENTNUMBER>6500000192</STUDENTNUMBER>
                   <ST_OBJID>732298498</ST_OBJID>
              </item>
         </BUSINESS_PARTNER>
    </ns1:MT_ChangeOfAddress>
    target structure is look like this.
    MT_ChangeOfAddress
         BUSINESS_PARTNER  (1,1)
              item       (0 to unbounded)
                  CAMPUSCODE (0,1)
                  STUDENTNUMBER (0,1)
                        ST_OBJID      (0,1)
    I have given below parameters in recever file adapter (file content conversion)
    Recordset Structure : item
    item.fieldNames  : CAMPUSCODE,STUDENTNUMBER,ST_OBJID
    item.fieldSeparator: , (comma)
    i am getting first two digits in my output file: that  file has only first two digits that is : 65
    may i know how hould i define file contente conversion recever adapter to get proper data in file adapter.
    thanks,s
    Dhanush

    Hi,
    Go through these blogs:
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    Thanks,
    Satya

  • JMS Content Conversion wtih MessageTransformBean

    Hi
    I'm doing a content conversion in a MQSeries Receiver Channel using the MessageTransformBean. The adpater logs say that the bean has been processed and that the message has been transformed successfully. However, when I look on the queue and in the adapter message content I still see the original xml message. Any one have an idea what the problem could be? We are on XI 7.0 SP11
    Thanks
    Tim

    Tim,
    you can use MessageTransformBean module in file adapter.
    Just add the module in the module tab.
    Regards,
    Henrique.

  • JMS Content Conversion - no CR/LF

    has anyone been able to successfully use content conversion when there are not carriage returns/line feeds between the headers & lines?  We are receive MQ messages that are continuous streams of data containing the header data and all the lines.  The segements are all fixed-width, but we can only get content conversion to work if we insert carriage returns & line feeds between hearder & the 1st line, then between all lines.  We'd like it to parse based on length alone.  currently, content conversion just reads the header, and throws the remaining data away.
    thanks!
    amy

    Hi Amy,
    Unfortunately, the default adapter configuration does not provide this feature.  You will have to write java code.
    There are 2 options available:
    1.  develop user-module for the adapter and parse its content before sending it to the integration server.
    2.  send the content of the data to XI without any parsing and use java mapping to parse the data.
    In this case, option 2 is probably easier.
    Regards,
    Bill

  • JMS Content Conversion help

    Hi all,
    i have a problem.
    I don't know how to convert a flat file that contain more than three nested level in a xml file. I tried with the content conversion but it doesn't work.
    In my scenario I use a file adapter.
    The structure is like the following:
    Root
    --fieldA
    --fieldB
    fieldB_1
    filedB_2
    fieldB_3
    fieldB_3_1
    fieldB_3_2
    Please help me.
    Thanks all!!
    Mane

    Someone told me that there is SAP documentations that declare maximum 2 nested level.
    Is it true?

  • Sender JMS content conversion only header

    I hav a scenario as shown in example 3.2. of Wiki given below and  configured accordingly.
    I only get NameA record but i do not get NameB or NameC.
    can some one help me out if I am wrong some where
    http://wiki.sdn.sap.com/wiki/display/XI/HowTo...ContentconversionmodulewithJ2EEJMS+adapter

    Hi Robin,
    Check whether you have added the conversion modules in the JMS adapter.
    Check whether you have have defined the paramters listed below:
    NameA.documentName
    NameA.documentNamespace
    NameA.recordsetName
    NameA.recordsetStructure (Ensure recordSetStructure is defined correctly)
    If any keyfield is used, then use nameA.keyFieldName, nameA.keyFieldValue
    If the lengths of the fields are fixed then use NameA.fieldFixedLengths
    Thanks,

  • Doubt In File Content Conversion

    HI,
    I need a  help on creating a header line with tab spaces
    example
    name   <tabspace>         NO    <tabspace>         EMP ID  
    i know the option of using addHeaderLine but in this how to leave the tab spaces between the header fileds.
    i have tried with \t and ASCII code between the header fileds but it was not working
    Kindly help me on this.
    thanks in advance..
    With regards
    Pradee N.

    Hi Pradeep,
    I did like this:
    i took data in notepad with tab space as field separator. copy those spaces from notepad and copy in FCC in xi
    in FCC, row.fieldSeparator copy those whitespaces in the value column
    this worked out for me...
    try like this
    ravi.

Maybe you are looking for

  • Monitor my dogs with iSight and Mac

    First, I'm a novice at all forms of electronic media but learning fast. I've moved to Scotland with my two dogs who must now live in the kitchen-laundry room during the day while I'm at work. I want to set up my mac powerbook G4 with Tiger OS and an

  • Project Server 2013 reporting database change in Schema from Project Server 2010

    I have a current Project Server 2010 implementation, I am planning to migrate to Project Online. We have Customized Reports that consume from the PS 2010 Reporting DB. Are there differences in the Reporting DB schema  between PS 2010 and Project Onli

  • How can I turn off the large blue location circle in apple maps?

    How can I turn off the large blue location circle in apple maps, MacBook Pro 15 (2011)?  It is to large.  At times I need to  zoom into my home location, but the large blue circle hides the location I need.

  • Migrating oracle 9i from Fail safe to Oracle RAC

    We are planning to migrate our Oracle 9i database from Fail safe to Oracle RAC. Does anybody has any experience to share? Where can I find the documentation about this? Regards Tariq

  • Won't remember ONE password

    Firefox remembers almost all passwords but ONE only it refuses to remember or rather does not give me the option of remembering. It is for a gmail account and should not give a problem. The only possible reason that I can think of is that I put in th