Message Mapping: different Queues.

Hi All,
I have a problem.
I have a source structure where i check 2 fields.
example:
<root>
<element>
<id>Z01</id>
<sub>
  <text>01Text</text>
</sub>
<element>
<element>
<id>Z02</id>
<sub>
  <text>02Text</text>
</sub>
<element>
<element>
<id>Z03</id>
<sub>
  <text>03Text</text>
</sub>
<element>
i check field <b>id</b> .. and field <b>text</b>.
So i have two queues going in my user function.
And when for example value is Z03 in the first queue i get from the second queue the value with the same index. Works fine!
But now following problem comes up:
<element>
<id>Z01</id>
<sub>
  <text>01Text</text>
</sub>
<sub>
  <text>01Text_2</text>
</sub>
<element>
With some element like this the text queue is longer than the id queue and i didn't work anymore.
any idea?
Regards,
Robin

i can use something like that:
for ( int i = 0; i < a.length; i++ ) {
if(b.length > i){
result.addValue(b<i>);
}else{
result.addValue("***");
so my queues become the same length ... but that isn't enough for me.
I have to add the "***" on this place in the queue where in source structure the subsegment occurs 2 times.
Some help would be great.
Regards,
Robin

Similar Messages

  • Message mapping - Display queue

    Hello,
    In the Enterprise Service Builder of PI 7.1, I go to message mapping and choose "display queue" to test the result of a mapping but nothing happens. I receive a blank popup without any results. It's the same for all mappings. Note that we have just upgraded from XI 3.0 to PI7.1
    Any idea?
    Thanks for your help!
    Best regards,
    Olivier
    Edited by: Olivier Vanderperre on Oct 14, 2008 8:11 AM

    Hello,
    Thanks for your help.
    Test data are provided, all fields are complete and the target field is not disabled..
    Best regards,
    Olivier

  • Message Mapping(Display queue and Suppress Value)

    Hi Experts,
    In Message Mapping(graphical mapping), upon checking the properties of the nodes,there's one property display queue, in which suppress is there??
    What does it mean?? Which queue it points and what value is suppressed??
    Thanks & Regards,
    Sushama

    Hi Sushama,
    SUPPRESS means no value.
    suppose we are checking one condition (tdid = "RE" then pass tdline) based on the condition we will send one output. if the condition fails then suppress value goes to the target.
    > What does it mean?? Which queue it points and what value is suppressed??
    es:  if(tdid.equals("WE") ifwithoutelse pass tdline value as output.    [tdid is in E1EDKA1 segment and this segment occurance is multiple]
    In this case if the condition is satisfied once and failed once (means E1EDKT1 segment comes 2 times) then first time it sends the corresponding tdline value and second time it sends the SUPPRESS value.
    Regards
    Ramesh

  • JMS to ECC messages in different Queues ...

    Hi All,
               We have a requirement , sender is JMS and target is ECC. The QOS is EOIO , the messages are for three different company codes. When the messages received from JMS , they have to sent in three different queues based on their company code.
                Kindly suggest how to acheive it.
    - Muru

    1.Set the QOS as EOIO in the sender JMS adapter and provide a Queue Name.
    2. Write a Adapter Module that reads the Company Code from this Message and then -resets the QueueName.
    The Adapter module provides API's to do this. If I remember right, the method setConversationID does this.
    Will look up the API and confirm
    Regards,
    Bhavesh

  • OSB - Service to receive message from JMS and route to different queues

    Hi,
    I am completely new to SOA suite, so please bear my question :)
    I have a requirement to send XML messages to the different queues(external client facing queue) based on their contents. These XML messages are generated inside the application based of various business scenarios.
    We have adapted following approach to do it
    1. Application Service will construct the message and send it to the internal JMS queue (We are intending to use JAXB objects to construct message)
    2. On the OSB, we need to define a service, which will keep polling messages from this intermediate jms queue
    and somehow based on some routing information, it will post those messages to the respective external facing queue.
    For the first part I am using spring's JmsTemplate to send message to queue
    For second part - I am not sure what should be the approach?
    we are using Oracle 10g Fusion Middleware
    Please guide
    Cheers

    Thank you guys for all your help. Very soon I will try and see how it works. Meantime just an additional question
    Do I need to define a canonical xsd for all different types of xml messages? so that proxy can extract the routing info and route the actual message to different queues?
    And re-directing to different queue in OSB means I need to define business service for each queue or I can put message directly into the destination queue by referring its jndi name in the proxy service configuration?
    Regards,
    Y

  • Weblogs for different message mapping needed

    Hi,
    I want to do scenarios using XSLT mapping, ABAP mapping, Java mapping.
    Can you suggest me some weblogs...
    Thanks,
    Ram

    Hi Ram,
    thought i will start of from scratch.Mapping is basically done to convert one form of xml into another form. This can be done using either of them mentioned below.
    - Graphical mapping
    - XSLT mapping
    - JAVA mapping
    - ABAP mapping
    To know more about each of them please go thru the following links. And if you ask me your which is better, it depends basically on the scenario you implementing and the complexity involved. Anyways please go thru the following links:
    Graphical mapping
    /people/bhanu.thirumala/blog/2006/02/02/graphical-message-mapping-150-text-preview
    http://www.sapgenie.com/netweaver/xi/mapping1.htm
    /people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
    XSLT mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
    JAVA mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm
    ABAP mapping
    /people/r.eijpe/blog
    To know more about the value mapping tools for the SAP Exchange Infrastructure (XI), please go thru the following link:
    http://www.applicon.dk/fileadmin/filer/XI_Tools/ValueMappingTool.pdf
    To get an idea as to what value mapping is, please go thru the following links:
    http://help.sap.com/saphelp_nw04/helpdata/en/13/ba20dd7beb14438bc7b04b5b6ca300/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/f2/dfae3d47afd652e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/content.htm
    most of the links that I have provided also helps you get the step by step procedure of doing the same. And also involves the procedure to implement certain advanced features.
    Hope this clears your doubt fully.
    Also go through this threads...
    Re: Different types of Mapping in XI
    Regards,
    Abhy

  • Different options for message mapping in BPM

    Hey guys
    i m in the learning phase of BPM and am kinda confused with the different ways we can do message mapping in a BPM scenario.
    first of all we can do message mapping before BPM,we can also do after BPM and lastly we can do inside BPM(ofcurse this is not recommended as its too resource consuming)
    i have bene through starters blog on BPM by Krishna moorthy and Arpit seth,and now am wondering how to use the mapping in diff. ways
    suppose i m doing a simple File to File with BPM(just for practise purpose)
    now here is what i have designed in IR
    DT_sender_File                                       DT_receiver_File
    MT_sender_File                                       MT_receiver_File
    MI_Outbound_sender(async,outbound),     MI_Inbound_receiver(async,inbound)
    AI_sender(abstract,async)                        AI_receiver(abstract,async)
    MM_File_File(using MT_sender_File and MT_receiver_File)
    now i want to clear some doubts about interface mapping.my understanding is
    if i do interface mapping between MI_Outbound_sender and AI_receiver,this will be interface mapping before BPM.
    if i do interface mapping between AI_sender and MI_Inbound_receiver,this will be interafce mapping after BPM
    and if i do interface mapping between AI_sender and AI_receiver then it will be mapping inside BPM.
    is my understanding correct?if yes,then does that means we can we any of the above mapping in our scenario.(if we dont consider the performance issue as of now)
    thanx
    saif

    Hi Saif,
    <i>
    is my understanding correct?</i>
    Yes, thts correct
    <i>if yes,then does that means we can we any of the above mapping in our scenario</i>
    Of course, u can use any of them (overlooking the performance issue)
    Regards,
    Prateek

  • Caching values between different executions of a message mapping

    Hi all
    Like global container object is used for caching values between different user defined functions
    within the same message mapping.
    Can v have some sort of cachingvalues
    between simultaneos exceutions of same message mapping?
    Thanks and Regards
    Bhasker

    Hi Bhasker raj,
        This facility is there if you are using seeburger adapters.
    YOu can use something called seeburger variables which can hold the data beyong the mapping in some permanent memory.
    Alternatively, you can think of creating a ZTABLE in the ABAP stack of XI and storing the data you want in it, using a UDF and get it back in another UDF.
    YOu can use the first UDF at last node/field in the message mapping and the
    secomd UDF in the first node/field in the mapping.
    Regards,
    Ravi

  • Is it possible to do message mapping using different namespace message type

    Hi all,
    Is it possible to do message mapping using different namespaces message types
    Example :
    i am having message type MT_1 in namespace http://sap.com/abc
    and second message type MT_2 in namespace http://partner.com/xyz
    so MT_1 can be mapped with MT_2 or not having different namespace.
    Thanks

    Read through my reply in this thread for Defining Software component dependencies.
    Though it explains this for Improted Archives, it also holds true for Message Types to be used in message mappings.
    Re: Payload Extraction
    Regards
    Bhavesh

  • Mapping a message in different types of messages depending field value

    Hi gurus!
    I need your help!, I need to create a scenario where I receive a message with a JMS adapter, for which I define an outbound service interface type, but depending on the value of a field (interface) to map in order to create different service inbound interface type.
    For example, I get the MT that is associated with a Service Interface SI_OUT:
    <MT_TRX>
       <interface> 101 </ Interface>
       <message>
             nombre="AVISO"> <campo 8500070609 </ field>
             nombre="ESTADO"> <campo PCDS </ field>
       </ MESSAGE>
    </ MT_TRX>
    As the interface has the value 101 with a Message Mapping I want to create the Service Interface SI_IN_101 whit message type MT_101.
    If interface = 102, the Service Interface should be SI_IN_102 and message type_102... etc.
    Can be mapped to different types of Service Interface, need different Operations?
    Thank you very much for your help, I don't know how to solve the problem!

    Hi Veronica,
    There are two clear options to approach the solution: be it 7.11 or earlier
    1. Go for 1..Onbounded Operation mapping. In your operation mapping on the target side add the different inbound interfaces. You have to define seperate message mappings for each of your target message types and use them in the operation mapping.
    2. The rather simplistic solution would be to go for conditional interface determination. A well know approach, if you have multiple interfaces to be mapped from a single interface for the same receiver system. Define seperate Message and Operation mappings for each of your Inbound Interfaces and then in Integration Directory use conditional Interface determination to call the appropriate operation mapping based on the condition checking on input payload (XPath).
    I will strongly suggest the second option for better maintainability and monitoring of your interface.
    You certainly dont need multiple operations, that's for different purpose altoghether
    Regards,
    Suddhasatta

  • Change Queue name in Message mapping

    Hi
    We want to change the queue name dynamically in the message mapping.
    We refered the post
    Re: EOIO queue name change
    http://help.sap.com/saphelp_nw04/helpdata/en/6e/ff0bf75772457b863ef5d99bc92404/frameset.htm
    But as said in it, we are not able to access the parameter QUEUE_ID or QUALITY_OF_SERVICE.
    Other than these two parameters, we can access all parameters.
    Below is the code to access one of them.
    while compiling, the message mapping gives error as below.
    cannot find symbol
    symbol  : variable QUEUE_ID
    Any pointers.
    ///// CODE
    MappingTrace trace;
    String constant;
    java.util.Map map;
    trace = container.getTrace();
    // get constant map
    map = container.getTransformationParameters();
    constant = (String) map.get(
           StreamTransformationConstants.QUEUE_ID);
    trace.addInfo("QUEUE ID:" + constant);
    return constant;
    Regards
    Anandan

    Hi Anandan,
    As given in help you can only get queue Id if you have Quality of service as ExactlyOnceInOrder. So make sure you have selected that option.
    http://help.sap.com/saphelp_nw04/helpdata/en/6e/ff0bf75772457b863ef5d99bc92404/content.htm
    Regards,
    ---Satish

  • About message queue in message mapping?

    Hi SDNer,
    I have been read help.sap.com and sdn threads about message queue
    I hope this thread should be help for all like me.
    thank you
    Sha

    Hi Shankar,
           XI uses Queue's to store messages, If you worked on message mapping you can see the how queue look like,
    Every queue having context ,it separate the values,it store the messages in highrarchy manner.
    Using Context Handling we resoleve context issues.
    Using node functions we aceive Context Handling.
    Search in SDN there is some good blogs abt Node Functions, if you understand nodefunction you wil understand the Queue concepts.
    Regards,
    Raj

  • Display  queue in message mapping

    Hi ,
    I need to know the function of ' display queue ' in message mapping . How do i go about it.
    Please help.
    Thanx nd regards ,
    Srestha

    Hi,
    Whenever you do a graphical mapping you can see the intermediate result in the display queue. When you test your input using the test tab of Message Mapping, you can get only the end result (if it is successfull) or an error. You can debug the error by seeing the display queue of each and every elements involved in that specific mapping. Display quue will consists of :
    1) Input (in) to the function
    2) Output (out) from the function
    3) Conext change
    4) SNo. (optional)
    Hope you got an idea
    Regards
    Suraj

  • Display queue for Target field in Message Mapping

    Hi Folks,
    If i check my Target Field (DT_Req) (Display queue) in Message Mapping, I am getting 2 values like ie [] that means ....in my test result in MM, i should get 2 times DT_Req field.
    Is it right?
    Plz give some idea how this display queue works on each field?
    Thanks
    Prabaharan
    Edited by: Prabaharan on Sep 10, 2008 12:22 AM
    Edited by: Prabaharan on Sep 10, 2008 12:24 AM

    Hi,
    In my scenario occurrence of that
    target field is    0...unbounded
    and in my display queue.. Initially it is
    suppress, [], suppress, suppress, suppress,suppress,suppress,suppress,suppress,suppress, [],suppress
    in my result i could get only one DT_req field.
    Plz throw some idea on this?
    thanks

  • How to forward message to two different queue using jms proxy service

    Hi all,
    In my project I need to listen to one jms queue then forward the messages to two different queue.
    Now I already made one proxy for listening to the queue then pass it to another queue using business service, It works.
    But how to forward the messages to two different queue in same flow process using one proxy and bs??
    or any other way?
    Really thanks in advance.
    Regards,
    Kahlil

    Hi,
    I have a MQ queue and i created a Proxy to listen to the queue , but i dont see any activity in OSB logs ..how do i knw if OSB proxy is polling that MQ ( mq is the transport protocol that i am using ) .
    Thanks
    Prarthana.

Maybe you are looking for

  • Error while running wad report in portal

    Hi, when we try to run report from portal we get the following error " Label has specified invalid InfoObject = '0RPM_IHGU__0RPM_PFGU' " On double clicking i get the following : Diagnosis You have assigned an invalid attribute IOBJNM to the label. Yo

  • MPEG-2 file has out of sync audio - PLEASE HELP

    We captured four mini-DV tapes into Final Cut Pro HD using my Canon mini DV camera and a firewire. After capture we put each tape on its own timeline, added chapter markers, and then compressed each one into MPEG-2 files using the QT codec. Once we h

  • How to record MP3 to Nano via Line-in.

    Is there any capability or external device that would allow me to record an MP3 to a Nano 7th Gen using Line-In as the input source. And Line-In does NOT mean microphone. Thank you for your help.

  • Consignment shipment across companies

    I have a plant in Canada that belongs to company code CA01 that will ship product, on consignment, into the US to a customer that belongs to company code US01. The legal agreement is between the US and the customer. However, if this were a traditiona

  • Syndication process - Tags in Data manager Selecting the map in Syndication

    Hello Experts, I am supporting a repository in MDM 7.1, and there is a part of the syndication process that i don´t know how does it work. This is the process what i mean: The repository works with 3 different maps, the map is selected in  MDM Data M