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

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

  • 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

  • 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'

  • Recordsets per Message not working

    I found that Recordsets per Message will split the source message into multiple messages and process them separately.  This will save my alot of time and is exactly what I need - but it does not work.
    I have in my sender file adapter the following parameters in File Content conversion:
    Document Name = MT_SND_ZADIG
    Document Namespace = urn://federalmogul.com/ADP/FINFRADP001/00
    Recordset Name = RECORDSET
    Recordset Structure = RECORDSET,*
    Recordset Sequence = Ascending
    Recordsets per Message = 10
    Key Field Type = String (case-sensitive)
    RECORDSET.fieldNames   RECORDCODE,ACCOUNTID,CONST_E,CONST_Z2M,MONTHYEAR,JOURNALCODE,FOLIOCODE,RECORDTYPE,DAY,GLACCOUNT,CODINGBLOCK,DEBITAMOUNT,CREDITAMOUNT,TEXT,FILLER1,FILLER2,ACCREF1,ACCREF3,EMPLOYEENO,REPORTTYPE,ZADIGCODE,ACC_TYPE,RESERVED,CENTURY
    RECORDSET.fieldFixedLengths  2,6,1,3,4,3,2,1,2,12,18,13,13,20,8,8,12,12,6,4,6,1,1,2
    RECORDSET.lastFieldsOptional   yes
    When I feed in a file with 77 records I would expect it to split it into 7 * 10 recordset and then 1 * 7 - why is it not doing this?

    Hi Lynn,
    And... what is the result you are getting?
    Try to change Recordset Structure with something different that Recorset name.
    Something like:
    Recordset Name = RECORDSET
    Recordset Structure = row,*
    row.fieldNames RECORDCODE,ACCOUNTID,CONST_E,CONST_Z2M,MONTHYEAR,JOURNALCODE,FOLIOCODE,RECORDTYPE,DAY,GLACCOUNT,CODINGBLOCK,DEBITAMOUNT,CREDITAMOUNT,TEXT,FILLER1,FILLER2,ACCREF1,ACCREF3,EMPLOYEENO,REPORTTYPE,ZADIGCODE,ACC_TYPE,RESERVED,CENTURY
    row.fieldFixedLengths 2,6,1,3,4,3,2,1,2,12,18,13,13,20,8,8,12,12,6,4,6,1,1,2
    row.lastFieldsOptional yes
    Follow the example is described in:
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    Regards,
    Carlos

  • RecordSets per message

    Hi
    Im doing a file to file scenario with content conversion. I have 10000 records in the file and i need to split the file using Recordsets per message option. I gave the value as 1000. In SXMB_MONI im getting 10 messages with proper payload. but in the target directory i can see 10 different files with only one (first) record in  it.
    Im using this configuration
    Recordset Name = (left this empty)
    Recordset Structure = RECORDSET,1
    specified parameter ignoreRecordsetName to true
    Did i miss anything

    My source and target structure are same
       <Record>  -- 0 to unbunded
          <Row>   -- 0 ro unbounded
                <Type/>
                <Org/>
                <Datel/>
           </Row>
           <Row> 
                <Type/>
                <Org/>
                <Datel/>
           </Row>
             10000 nodes
       </Record>
    Im using the following in the CC
    Recordset Name:Record
    Recordset structure:Row,1000
    Recordset per message:1
    This is working fine. I mean ini SXMB moni im getting correct structure as expected. But the all the files in the target directory have only first 1000 records.. what i see in moni is different from what the files have

  • Detecting message part after Recordsets per Message

    Hi !
    Scenario: File -> XI -> RFC
    Because of some big text files (about 30 or 40 mb) as input files, we need to use partition our files using Recordsets Per Message in the content conversion parameters of our file adapter (sender).
    We need to send to the RFC, the total number of messages that we are sending or at least, a flag to indicate that we are sending the LAST message.
    Example:
    one file has 21.000 records. We set the "recordsets per message" to 3000. Then XI will receive 7 messages with 3000 records each. When we call the RFC (receiver) after processing the 7th package, we need to send also a flag to indicate that that was the last message.
    Any ideas?
    Thanks !

    Hi Matias,
    There's a BPM pattern that deals with something like this. it's called BpmPatternCollectMessage and collects all messages of the same type until it gets a terminating message. so in your case you could define the terminating message as being the last / summary line of your input file (creating a new recordset type for that) and once you receive this message, which should be after the split up parts of your file, you could send out the RFC calls.
    Question is, how that will perform with large files.... probably not too well, although there have been some performance improvements to BPMs lately.
    Maybe you should try that as well and run a performance test against your solution with the Z Table. The problem with the Z table solution is, that you have to deal with the fact, that mappings can be executed more than once, in the case errors did occurr. so this can mean, that your function and hence the call to the Z table could occurr more than once for the same message. (remember mappings are stateless....)
    Regards
    Christine

  • Recordset per message for Header-Data-Trailer

    Hi Experts,
    I need to process a text file with the following structure:
    Header
      Record1
      Record2
      Record N
    Trailer
    How do i use Recordset per message to break the files into multiple files with EACH havign a Header and Trailer
    Thanks,
    Shobhit

    Hi Shobhit,
    I think it cannot be possible from File Content Conversion using Recordset per message.
    You should do that by means of multimapping 1:N
    Regards,
    Carlos

  • File SENDER - "Recordsets per message" being ignored..

    Hi
    I have a file to file scenario
    Sender file:
    A1,A2,A3
    B1,B2,B3
    I want to split the SENDER/SOURCE file in the adapter (NO BPM) so that I am creating n number of RECEIVER files - ONE for each line.
    I am trying to use content conversions and setting "Recordsets per message" to 1 but it is completely ignoring this. and ONLY creating 1 file.
    I am NOT using any mapping and we are running PI 7.0
    Please help
    Cheers

    Hi
    As per my knwoledge you can split files at mapping level in integration engine but at adapter engine you are trying that is FCC which will just convert the data into XML.In FCC it will never split files, you have to do it at mapping level.
    Kindly check this link:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/600b455f-01cd-2b10-0cab-a50e47a8f800?quicklink=index&overridelayout=true
    this is a step by process for your query.
    Regards,
    Nutan

  • Recordsets per message - only works with RECORDSET

    I have previously got recordsets per message working when I use RECORDSET.  I now have a scenario that uses "row" instead of "RECORDSET".
    This is working for RECORDSET - it splits into a new message every 100 records........
    Recordset Name   RECORDSET
    Recordset Structure   RECORDSET,100
    Recordsets per Message   100
    ignoreRecordsetName   true
    RECORDSET.fieldNames   RECORDCODE,ACCOUNTID,CO..............
    RECORDSET.fieldFixedLengths   2,6,1,3,4,3,2,1,.............
    RECORDSET.lastFieldsOptional   yes
    When I change RECORDSET to be row - it only produces 1 message, even though 11,000 records
    Recordset Name   row
    Recordset Structure   row,950
    Recordsets per Message   950
    ignoreRecordsetName   true
    row.fieldNames   RECORDCODE,ACCOUNTID,CO..............
    row.fieldFixedLengths   2,6,1,3,4,3,2,1,.............
    row.lastFieldsOptional   yes
    Can anyone tell me what I am doing wrong?

    I can't believe there are no examples of these kinds of things because it is all about syntax most of the time in File Content Conversion and this can be so time consuming.  I got it to work eventually - hopefully this will save someone a couple of hours.  This worked:
    Recordset Name  row
    Recordset Structure row,1
    Recordsets per message 950
    ignoreRecordsetName true

  • Recordset per message not working

    Hi All,
    I got a scenario where i need to read a file of more than 1mb which has got around 6000 records.i want to read 100 records at a time and have mentioned
    "Recordset per message-100"
    in the file configuration.But still i am seeing a xml message of 6000 records in the XI.
    This is the configuration part for the file"
    Recordset Name:Record
    Recordset structure:Row1,*
    Recordset per message:100
    Row1.fieldNames:FirstName,LastName,MiddleName,City,Place,State,Country
    Row1.fieldSeparator:£
    Row1.processConfiguration:FromConfiguration
    Row1.endSeparator:'nl'
    the xml message i get now
    i need to process only 100 records at a time...
    Any Help greatly appreciated...
    Thanks,
    Aravind

    Hi,
    Can you please try this...
    Recordset Name:Record
    Recordset structure:Row1,*
    Recordset Sequence: Ascending
    Recordset per message:100
    But i assume you might get an xml like this...
    <MT>
    <Record>
    <Row1>
    </Row1>
    </Record>
    <Record>
    <Row1>
    </Row1>
    </Record>
    <Record>
    <Row1>
    </Row1>
    </Record>
    100 records...
    </MT>
    Thanks,
    Renjith

  • Recordset per Message and then group again

    Hi All,
        Advise would be aprreciated for the following issue we are having on a productive environment.
        The interface gets a 3.4MB file from a FTP server, performa a mapping and then saves a new file to the receiver ftp server.
        Sometimes, we get an error because the xml message that the AE sends to the IE does not contains all the information as the flat file. It seems that it runs out of resources and does not finish the xml transformation process.
         I have read several post in the SDN and even sap notes, about using the Recordset per Message option. However, this way I get a lot of IE messages but, also a lot of files in the FTP server and I only need 1. Is there any way I can split them to avoid this issue and then put them all together again? I don't like the "Append option".
         Thanks and kind regards,
             David Encinas.

    Hi David,
       Using split you can achive your requirement.
       First create the Structure as per your Source Format.
      If your structure has different Sub structure , create for each substructure at the target end.
      do the massage mapping in message tab source one message type , target multiple messages...do the same thing in Interface mapping .(Here select source and targets occurence 1 only)
      create the Integration Process (BPM)..once receive the message you can validate the message using Switch statement , once condtion has satisfied then use the Transformation step (1:n) and then message use many Send steps.
    You can create multiple files with same locations.
      I had done same thing for my req....
    Reagads,
    Venu.

  • "Recordsets per Message" for jdbc adapter

    Hi all,
    is "Recordsets per Message" kind of option is available for JDBC adapter.
    Any help will be appriciated
    Thanks
    -Kulwant

    Hi Kulwant,
    its not available.
    You can a stored procedure whick picks only certain number of records per each call.
    Regards
    Inder

Maybe you are looking for

  • AP Invoice solution

    dear all, I have the following requirement from my customer. my customer Hire purchase of vehicle from Bank. Currently, after raising supplier invoice, they will not do any payment and directly transfer the liability to bank account. We need to close

  • How do i do that? MultiLine in a cell of JTable !!!

    Dear friends, I am trying to add multiline in a cell of JTable. For that bellow code i have written, but my statement in cell displays in a line only. Code is given bellow (copy/paste/run), could anyone help me how to do that? Regards.. Jaya. import

  • Sorting of order items on invoice

    How can we make sorting on order items in invoice when we are clubbing together many sd-orders in one invoice? In the document flow, the sd-orders are sorted in a correct matter - but when we look at the invoice the materials is not sorted in the sam

  • Error code 9672 when adding an EPSON C120?

    Like a lot of you, I have been frustrated with an error code that seems to be prohibiting me from adding my EPSON C120 printer to the printer list. I have spent extensive time talking to EPSON Support. I have checked and rechecked the cables. The pri

  • Query for the FULL AND FINAL SETTLEMENT REPORT

    Hi,  any one  has the query for the FULL AND FINAL SETTLEMENT REPORT in oracle hrms??