How to split the messages in the mapping

Hi Gurus,
I need to split the message into two XML message based on the value in  the plant and sent it to two receivers.
  How to do using Graphical mapping.
Im working in PI7.0. I dont know how to use the enhanced receiver determination. PL guide me.
This is my input message format
<ns0:Namespace>
   <row>
      <PlantCode>10<PlantCode>
      <element1>
      <element2>    
      <element3>
<row>
  <row>
      <PlantCode>40<PlantCode>
      <element1>
      <element2>    
      <element3>
<row>
  <row>
      <PlantCode>20<PlantCode>
      <element1>
      <element2>    
      <element3>
<row>
  <row>
      <PlantCode>50<PlantCode>
      <element1>
      <element2>    
      <element3>
<row>
<ns0:Namespace>
My output message should be
Message1
   <row>
      <PlantCode>10<PlantCode>
      <element1>
      <element2>    
      <element3>
<row>
   <row>
      <PlantCode>20<PlantCode>
      <element1>
      <element2>    
      <element3>
<row>
Message2
   <row>
      <PlantCode>40<PlantCode>
      <element1>
      <element2>    
      <element3>
<row>
   <row>
      <PlantCode>50<PlantCode>
      <element1>
      <element2>    
      <element3>
<row>
Based on the plant i have to split the message
1. If plant is 10 or 20 it has to go to message 1
2. If plant is 40 or 50 it has to go to message 2.
How to do...
Regards,
Rama

1.Create a message mapping.
2.In the mapping editor, switch to the Messages tab page
3.Specify the same  target message type 2 time by choosing +
4.Switch to the Design tab page
PlantCode---removeContext---equalS
          constant[10]/                     \
                                               OR------ifWithoutElse-------Message1
                                              /              plantcode   /
PlantCode---removeContext---equalS
          constant[20]/
PlantCode---removeContext---equalS
          constant[40]/                     \
                                               OR------ifWithoutElse-------Message1
                                              /              plantcode   /
PlantCode---removeContext---equalS
          constant[50]/
Do 1 to 1 mapping between row,plantcode,element1,element2,element3 from source to target structure
create 2 target message Interface for the same target message type
Finally Create an interface mapping and reference the both target interfaces in target interfaces. Enter your message mapping in the interface mapping.(1--source Interface and 2 target Interfaces)
In ID, Interface determination choose Enhanced radio button and under inbound interfaces add both the target Interfaces

Similar Messages

  • How to delete the messages in the purges folder?

    if the mailbox is enabled the single item recovery, then the messages would move from deletion folder to the purges folder After running the following script,
    Search-Mailbox dave -searchdumpsteronly
    -deletecontent
    so my question is how to delete the messages in the purges folder with some script or retention policy?
    Please click the Mark as Answer button if a post solves your problem!

    Thank you all,
    As the mailbox is enabled single item recovery.
    I just want to make the items neither in deletion folder, nor in purges folder.
    So I think there are two ways to achieve this.
    Method 1,disabled the single item recovery. then delete the items in deletion folder ,so it wouldn't enter to the purges folder, it just deleted permanently. then enable the single item recovery
    Method 2,delete the items in deletion folder,then the messages move to the purges folder, then delete the messages in purges folder.
    the Method 1 is not so good ,as it need to disable the single item recovery firstly, then enable  single item recovery .
    So I want to use the Method 2
    Please click the Mark as Answer button if a post solves your problem!

  • How can I get my ES2 loops to play correctly? I keep getting the message that the audio is not found when I drag the loops from my audio browser even though they play fine in the preview.

    How can I get my ES2 loops to play correctly? I keep getting the message that the audio is not found when I drag the loops from my audio browser even though they play fine in the preview.

    It's exactly as I stated. Whenever I try to drag these kinds of loops (ESX24 / software instrument loops? the ones marked in green with the white music note next to them) from the loop browser into the timeline a message comes up saying Audio Not Found for that loop.  And a new track is created automatically when loops are dragged into the timeline, so I'm not creating some other random / synth instrument track so I'm not sure  what the deal is... But perhaps I'll try creating a software instrument track first and then drag the loop into that track and see what happens - maybe there's something with the default settings that automatically creates audio tracks whenever loops are imported?

  • When the message arrives, the message tone sound that many times. How this problem can be solved? I installed the new version, but the problem is not resolved, the future is to be taken into account in the new version of this?

    When the message arrives, the message tone sound that many times. How this problem can be solved? I installed the new version, but the problem is not resolved, the future is to be taken into account in the new version of this?

    I'm not sure I understand the question, is the message tone going more then once?
    Turn off repeat message alert here:
    settings > notifications > messages > repeat alert > never
    Some people have found this does not stop the repeat miessage tone,
    if you are one of those then I suggest you contact Apple:
    http://www.apple.com/feedback/iphone.html
    They may not respond, but hopefully will fix in uodate if enough people complain.

  • How can I keep messages on the iCloud server?

    I now compute from two locations, home 1 and home 2, with home 1 being my main machine.  When I'm at home 2, how can I use Mail to read my messages but keep them on the server so that when I return to home 1, I can download to my main Mac?  I can't find a switch in preferences that allows me to do this.
    Rocketman

    If you have verified that the iPad and iPhone cannot see the messages after the Mac Pro at home2 downloads them, it's probably something on that Mac Pro. The smart mailbox on the other system was a false lead.
    Please verify that the messages are still in the Inbox on the Mac Pro after the same messages have disappeared from view on the iPad and iPhone. I think that's what you said, so I'll assume for the moment that that's the case.
    If you have multiple email accounts set up on the Mac Pro and not all are set up on the other devices, it is possible that the messages have somehow found their way into the wrong Inbox.
    Can you check the individual Inboxes to verify that the messages are still in the iCloud Inbox specifically? You can click the disclosure triangle on Inbox to show the various inboxes.

  • How to set the message in the status bar...

    hai,
    how to set the message in the status bar...
    let us say "inserted data successfully, or opening page followed  by the link clicked on the screen....."
    kindly help me out

    sunil,
    do not use advise by Ashutosh with WebDynpro.
    Instead of placing message into browser status bar (and browser is not the only WD UI agent), use IWDMessageManager API to post messages of such kind:
    wdComponentAPI.getMessageManager().reportSucces("Record inserted"); 
    VS

  • How to switch between messages in the BlackBerry Hub

    With the release of BlackBerry 10 version 10.1, we’ve added a new gesture to the BlackBerry Hub that allows you to quickly switch between your next and previous messages. It’s simple: while viewing a message drag your finger from the left to the right and in one continuous motion swipe up or down.
    For example, in the following screenshot you’ll notice I am viewing ‘Test 08”. To get to the next message, “Test 09”, all I need to do is swipe from left to right (red arrow) followed by swiping up (green arrow) in a single motion. To switch to the previous message, “Test 07”, I complete the same gesture, but swipe down instead (blue arrow).
    Tip: Using a BlackBerry Q10 or Q5? On top of using this gesture to switch between messages, you also have the option of pressing the N key to view your next message, or the P key to view a previous message.
    If this gesture doesn’t appear to be working on your device, verify you are using BlackBerry 10.1.0.4181 or later by going to Settings > About and reviewing the OS Version field. If the OS Version is lower than 10.1.0.4181, check for updates by going to Settings > Software Updates.
    For more details about the availability of BlackBerry 10.1, check out Inside BlackBerry’s post on BlackBerry 10 Software Updates.
    VIA | helpblog.blackberry.com
    http://helpblog.blackberry.com/2013/10/how-to-switch-between-messages-in-the-blackberry-hub/
    Please thank those who help you by clicking the button.
    If your issue has been solved, please resolve it by marking "Accept as Solution"

    I would set up a variable before you get to that node, lets call it $EmpID and assign to it the value of the prompt you want to play lets say 12345 which would be the library promptID. It will then play prompt, get digits, and once you validate if it goes through the expression that flags it as invalid, in that node re-declare the variable, but this time give it the value of the new prompt you want to play, then sent it back to the node which will then play the new prompt and collect the digits.

  • How to give error message for the screen element text field when wrong i/p

    How to give error message for the screen element text field when wrong i/p
    when wrong input given
    eg. 
    I have a text box with SBOOK-CARRID
    so when user give wrong entry in text box i.e LG
    then I should give some error stating that the the input is invalid or not available ,
    now it showing the error of standard messages,
    i want manual message to be displayed when error comes.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla

    Hi all,
    Thank you for your valuable reply,
    but the thing is that its a screen field,
    i.e text box not a selection screen
    i created in screen layout
    with name sbook-carrid
    now i want to get error message display if wrong i/p is given
    thank you.
    Regards,
    Jagrut bharatkumar Shukla,

  • How to add log messages in the sever/webui objects?

    Hi,
    I am new to the OA Framework.
    Can any one share any information in how to add log messages in the sever/webui objects?
    What are the beans I need to use to show in the diagnostic page?
    Can I get sample code for this log staments?
    Thanks in advance,
    Padma

    Hello. This forum is for reporting problems with the published Oracle documentation. You have a better change of getting a reply if you post your question on the Database - General forum.
    Regards,
    Diana

  • When insert my lexar USB flash drive I get the message that the disk was not readable by this computer.  It has worked previous to this and I do not want to lose the data by reformatting the drive.  How can I reformat this drive and not lose my data?

    When insert my lexar USB flash drive I get the message that the disk was not readable by this computer.  It has worked previous to this and I do not want to lose the data by reformatting the drive.  How can I reformat this drive and not lose my data?

    You can't reformat it and not wipe everything on it.
    Have you tried a different USB port?
    Only other option, back it up on a different computer.

  • I downloaded the new version of iTunes and now over 100 songs have an exclamation mark beside them and won't play. The message says: "The song ... could not be used because the original file could not be found." How do I get these songs back?

    I downloaded the new version of iTunes and now over 100 songs have an exclamation mark beside them and won't play. The message says: "The song ... could not be used because the original file could not be found." How do I get these songs back?

    Presuming they're on your computer, right click on them and then follow the prompts to locate hte file on your computer.

  • HT1349 iTunes will not start on my PC. I get a runtime error from the Visual C== runtime library when iTunesHelper.exe is started. The message states the application attempted to load the library incorrectly. How is the problem to be resolved?

    iTunes will not start on my PC. I get a runtime error from the Visual C++ runtime library when iTunesHelper.exe is started. The message states the application attempted to load the library incorrectly. How is the problem to be resolved?

    Click here and follow the instructions.
    (99035)

  • I am using InDesign CC and added Garamond premier pro font. This has worked for months, now suddenly my entire book is  highlighted in pink and my font is missing! I get the message that the font is currently unavailable on my computer, how can i get it b

    I am using InDesign CC and added Garamond premier pro font. This has worked for months, now suddenly my entire book is  highlighted in pink and my font is missing! I get the message that the font is currently unavailable on my computer, how can i get it back?

    BlazingRiver wrote:
    So my computer is running on OSX but my question is if any of the viruses on my windows partition can still run and communicate information to their 'master' as there is still a supply of electricity? Sorry if its obvious.
    Here's a positive thing: Windows viruses can't run on OS X, but they can be transferred from OS X to other PCs (only if you have them on the OS X volume).
    BlazingRiver wrote:
    1. How could a trusted source e.g. Google and Steam contain viruses if they are downloaded from the original source? and
    You could get a virus from a different source that infected Steam and Chrome without any problem. Viruses normally try to infect as many files and programmes as possible.
    BlazingRiver wrote:
    2. Can iOS devices get viruses and I know this is probably in the wrong but 3. What anti-virus scanner and remover tool do you recommend for windows. The only one I am familiar with is Kaspersky?
    iPhones, iPads and iPods touch can't get viruses but they can transfer them to other PCs. For Windows, I recommend Microsoft Security Essentials

  • There used to be a preview window in mail where you could read the message in the mail box but now its gone. It just shows me who its from and the date. I now have to click on the message twice to get it to display. How do I get the preview box back?

    There used to be a preview window in mail where you could read the message in the mail box but now its gone. It just shows me who its from and the date. I now have to click on the message twice to get it to display. How do I get the preview box back?

    There is a bug in Mail triggered by receiving a password-protected PDF as an attachment. According to reports, the bug is fixed in OS X 10.8.5.

  • TS3276 I have an old version, 10.5. A few days ago, my Inbox stopped showing new messages received, although they are coming in and show under Messages on Server.  How can I get the messages on the server to go to my Inbox so I can access them?

    I have an old version, 10.5. A few days ago, my Inbox stopped showing new messages received, although they are coming in and show under Messages on Server.  How can I get the messages on the server to go to my Inbox so I can access them?

    Make sure Mail is selected in System Preferences > iCloud

  • New to SOAP - How to create SOAP message for the SOAP described

    Hi Friends,
    Im bit new to SOAP-JAVA interactions.
    I have an SOAP describing
    POST /abc/WebSrevices/MyService.asmx HTTP/1.1
    Host: 127.0.0.1
    Content-Type: text/xml; charset=utf-8
    Content-Length: length
    SOAPAction: "http://tempuri.org/BillingAddressValidation"
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <BillingAddressValidation xmlns="http://tempuri.org/">
    <inXml>string</inXml>
    </BillingAddressValidation>
    </soap:Body>
    </soap:Envelope>
    My question is How can I construct an equivalent JAVA message using SAAJ
    I wrote like the following
    public void performSOAPReadWrite(String transaction){
    try{
    SOAPConnectionFactory scf = SOAPConnectionFactory. newInstance();
    SOAPConnection con = scf.createConnection();
    MessageFactory mf =
    MessageFactory.newInstance();
    SOAPMessage msg = mf.createMessage();
    SOAPPart sp = msg.getSOAPPart();
    SOAPEnvelope envelope = sp.getEnvelope();
    //Adding Content to the Header
    envelope.getHeader().detachNode();
    SOAPBody body = envelope.getBody();
    SOAPElement billingAddressValidation =
    body.addChildElement("BillingAddressValidation","http://tempuri.org/");
    SOAPElement inXml =
    billingAddressValidation.addChildElement("inXml");
    inXml.addTextNode(transaction);
    URL urlEndpoint = new URL(DEFAULT_SERVER);
    // 127.0.0.1/abc/WebSrevices/MyService.asmx
    System.out.println("Sending Message");
    SOAPMessage reply = con.call(msg,
    urlEndpoint);
    System.out.println("Reply is "+reply);
    }catch (Exception e) {
    e.printStackTrace();
    // TODO: handle exception
    Can any one let me know whats wrong in this ?
    Thanx in advance
    Im waiting for ur reply
    Mahesh Raja Vandyala
    Senior Analyst

    Hi,
    When im running the program I am getting a
    javax.xml.soap.SOAPException: Failed to send message:java.io.IOException: The server at http://127.0.0.1/abc/WebSrevices/MyService.asmx returned a 500 error code ( Internal Server Error )
    Please ensure that ur URL is correct and the Web service has deployed
    This is web service is provided by .net team and im required to take the services of that web service to retrieve some information provided by that.
    I can launch the webservice definition thru IE....their they have provide a text box with a Invoke button.
    The same data that im sending thru code if invoked thru IE is working fine.
    I suspect that the way Im construcint the SOP message is wrong.
    Any help in finding out the correctness of the Message in the java code ?
    Thanx
    Mahesh

Maybe you are looking for

  • Adobe after effects cs5 is not responding on my windows 7 64 bit operation computer.

    i have adobe after effects cs5. i just open application and use like 5 minute and when i open any other application with multiprocessing that after effects will show it is not responding. I really need help on this.

  • Problems after update with itunes on windows vista

    I tryed to do the latest update on my itunes that is linked to my ipad mini.Now I'm getting Microsoft Visual C++ runtime library,R6034.Windows error 7 error 127.I tryed to repair itunes no luck,so I reinstalled itunes no luck.I tryed the apple update

  • Is Acrobat X pro compatible with Explorer 9?

    I just installed Acrobat X in my computer runing Windows 7. The adobe toolbar does not appear on my explorer browser. What may be the problem? What do I need to do to make the adobe toolbar on the Explorer 9 browser? Thank you.

  • Removing menu from Flash video in Dreamweaver

    I have used the Flash Encoder to convert some videos to FLA. I am now using Dreamweaver, "Insert->Flash Video", to add a FLA file to a web page. I got the video in fine and it plays on the page just fine. I would like to remove the menu from the vide

  • Switching to BT Infinity - Need to know a few thin...

    I have asked to switch to BT Infinity from BT Broadband option 3 and would like to know a few things before the engineer comes in the latter part of next week. 1) Does the BT Infinity Hub connect to the BT phone socket by a standard ADSL modem/router