Multiple receivers for same message

Hello Everyone,
My requirement is where customer is sending an XML message and this gets converted into IDOC.
This XML message has one node which if it has value as X and Y , then it should go to one ERP system.
And if this tag is empty or other than X and Y, then it should go to another ERP system.
So, i have set the rule in receiver determination, but it is not working.
The rule is if
/shipment/SalesCodeCompany = "X" OR /shipment/SalesCodeCompany = "Y"
then ERP1
else if
/shipment/SalesCodeCompany = space OR /shipment/SalesCodeCompany Not equal to  "X" OR /shipment/SalesCodeCompany not equal to " Y "
then ERP2.
But this is not working .
Everytime, the idoc is getting created in both the ERP systems, irrespective of the value in the node.
I dont know whats wrong. PLs comment.
Ravi

Hi Ravi,
The issue is with your "else" condition. It says: code not equal "X" OR code not equal "Y". And this is always true, because if code = "X", then the second part is true (code <> "Y"), and if code = 'Y", then the first condition is met (code <> "X").
Instead of defining the else as you have it now, leave your condition for Receiver A as you have it, and choose Receiver B as the default receiver if the condition for system A is not met (the real "else"), as follows:
Regards,
Greg

Similar Messages

  • Multiple receivers for same rfc msg type

    I have a soap-XI-RFC scenario. I have to read the soap message and depending on the key field value, I have to send to two different SAP systems.
    For EX:
    Input Message:
    <input_msgType>
      <item>
          <Key>ABC-123452</Key>
          <value>test1</value>
      </item>
      <item>
          <Key>ABC-342222</Key>
          <value>test2</value>
      </item>
      <item>
           <Key>XYZ-676767</Key>
           <value>test2</value>
      </item>
      <item>
           <Key>XYZ-565655</Key>
           <value>test2</value>
      </item>
    </input_msgType>
    Output Message1:
    <BAPI_SEND_DATA>
       <item>
            <Key>ABC-123452</Key>
            <value>test1</value>
       </item>
       <item>
             <Key>ABC-342222</Key>
             <value>test2</value>
      </item>
    </BAPI_SEND_DATA>
    Output Message2:
    <BAPI_SEND_DATA>
        <item>
             <Key>XYZ-676767</Key>
             <value>test1</value>
        </item>
        <item>
              <Key>XYZ-565655</Key>
              <value>test2</value>
       </item>
    </BAPI_SEND_DATA>
    I have to send the same rfc request data to two sap systems..all the key with ABC starting Key should go to SAP system1
    and all the key with XYZ key should go to SAP system 2.
    Should I split the message in mapping - if so how can i do it? What kind of BPM steps should I do?
    Can I do this in receiver determination itself using condition? THanks for suggestions and help..
    Thilothama

    Krishna Moorthy,
    I came to a point where I decided that Java mapping would be the best for this. But do you have some sample starts for this??? I would appreciate if you can show me some light...
    Would something like this help??
    public void getPhonesById(String[] a, String[] b, String[] c, ResultList result, Container container){
    Map map = (Map) container.getParameter("phones");
    if (map == null){
      map = new HashMap();
      for (int i = 0; i<b.length; i++){ // if the payload is valid to xsd, b and c have equal length
        List list = (List) map.get(b<i>);
        if (list == null){
          list = new ArrayList();
          map.put(b<i>, list);
        list.add(c<i>);
      container.setParameter("phones", map);
    List list = (List)map.get(a[0]);
    for (int i = 0; i< list.size(); i++) result.addValue((String) list.get(i));
    Thanks and appreciate your help
    Thilothama
    Message was edited by:
            Thilothama v

  • Multiple customers for same message type "invoic" and idoc type "invoic02"

    Dear Experts,
    I have SAP ALE process configured for single customer u2018Au2019 where I send invoic02 idoc (message type invoic) to the customer via PI server. Now I need to add one more customer u2018Bu2019 which require recepient determination. I am not sure whether this resolution of customer address at PI level or config is required at R3 itself.
    I tried to maintain partner profile type as KU but it generates the error "No partner profile is maintained". For existing customer u2018Au2019 I am keeping the partner profile type LS.
    I want to know the following:
    a.Whether the recipient determination at R3 (config of partner profile we20)- if so what are the essential steps. Do I really need to shift partner profile type as KU?
    b.Whether config is required at PI level itself- if so is there any pre-requisite config in R3 to support that in PI.
    I hope my question is clear since this is my maiden attempt to seek solution from expert group.
    Regards & Thanks

    Hi ,
    if you want to trigger the idoc  two times for basic type& Extension..
    1 ) you need to maintain  WE20 Partner Profiles (This is good already you did)
              --> But the Output type for Bsic type & extension type is same so output type is triggered Once so idoc is created One.
    2) try to create another Output type in T-code NACE for extension then two Idocs is created one for Basic and another for Extension.
    Regards,
    Prabhudas

  • Multiple Receivers for Alert Messages

    Hi All,
    I have to send alert message to multiple users (SAP and Non-SAP Users) through ALRTCATDEF.
    I know there is option of creating Distribution List and assign this Distribution list.
    Would like to is there any other possible way to acheive this?
    Can we have the distribution list (SAP and Non-SAP Users) created in email exchange server (ex:- [email protected]) ,create one user in SAP and assign this user to the distribution list that is created in the email exchange. finally provide this in Fixed recipient of ALRTCATDEF.
    Anyone tried this ?
    Will this work?
    What are the advantages going this way rather than creating DL in SAP?
    Thanks,
    Sai

    Hi Sai,
    We are also did in same way.  Created DL in mail exchange server and created one user id in SAP and assigned the DL mail to that user.
    If you do it this way you can add the new members to DL in feature without any risk.
    Thanks,
    Satish.

  • Reg:Multiple UOMs for same item

    Hi,
    How to define the multiple UOMs for same item.And the item should be converted in one UOM.
    Iam using 9.0 PL.08

    Hi,
    Please check SAP help file:
    http://help.sap.com/saphelp_sbo900/helpdata/en/89/7ca0a701c64e4a97f4ea5a4edca8b2/content.htm?frameset=/en/44/c4c1cd7ca22e17e10000000a114a6b/frameset.htm
    Thanks & Regards,
    Nagarajan

  • How to avoid multiple listing for same artist?

    How to avoid multiple listing for same artist?

    Sounds like there might be blanks in the artist name.
    For instance "Lou Reed" and "Lou Reed_" will not match.
    (Pretend the underscore _ is a blank).
    Select all the Lou Reed songs, Get Info, and type "Lou Reed" in the artist field. That should fix it.

  • Creating multiple profiles, using unified profile types, to store multiple values for same properties

    Hi All:
    I am trying to create multiple profiles, using unified profile types, to
    store multiple values for same properties. Here my intention of using
    'unified profile types' is to create multiple profiles (to store multiple
    values for a property). All the properties are stored in the same database
    maintained by Personalization server. Also, I am trying to use the same
    'USER' ejb as profile class/home/pk/jndi.
    The scenerio is,
    define unified profile types (Business, Vacation) using Personalization
    admin tools, using com.beasys.commerce.axiom.contact.User,
    com.beasys.commerce.axiom.contact.UserHome,
    com.beasys.commerce.axiom.contact.UserPk,
    com.beasys.commerce.axiom.contact.User for Profile Class, Home, Pk class,
    JNDI name respectively.
    Define Property set 'HotelCommerce' with property
    HotelProp as single, restricted, text (valid values Single, Double)
    Now you can use the attached jsp files to login as a user and try to set the
    property value for HotelProp for each profile. As per my understanding, I
    was expecting that I can set different values for the property 'HotelProp'
    for each profiles. But unexpectedly, all the profiles get the same value.
    Question. is it the correct behavior? if yes, how can I achieve this
    functionality?
    if not, do you see any problem in my scripts?
    your answer asap is appreciated. we need to make decision on using
    Personalization server v/s developing our own Personalization server!!!:)
    thanks,
    -rajesh
    PS: I have tried 'Unified Profile Example' type too, but that did not work.
    [propsettest.jsp]
    [home.jsp]

    I am trying to create multiple profiles, using unified profile types, to
    store multiple values for same properties. Here my intention of using
    'unified profile types' is to create multiple profiles (to store multiple
    values for a property). All the properties are stored in the same database
    maintained by Personalization server. Also, I am trying to use the same
    'USER' ejb as profile class/home/pk/jndi.Hello Rajesh,
    This is not the purpose of the UUP. The UUP is used to allow existing
    database schemas to be aggregated with the existing Weblogic Personalization
    Server database schema to provide a single, customized user profile with which
    to maintain the user properties (
    http://e-docs.bea.com/wlcs/p13n/users.htm#1068901 )
    If you want to have properties that change value based on some "profile" or
    classification of a user, then you should use classifier rules to change the
    user from "OnVacation" to "AtWork" or "AtHome". You can use these classifier
    rules to select content for the user or conditionally execute logic (
    http://e-docs.bea.com/wlcs/p13n/rules.htm )
    Ture Hoefner
    BEA Systems, Inc.
    1655 Walnut Street; suite 200
    Boulder, CO 80302
    www.beasys.com

  • Multiple copies of same message accumulate in Drafts folder. How do we correct this behavior?

    My wife is the buyer for our business. She will begin an email to a supplier at some point in the day, and will build upon it throughout the day, bouncing between the email and the Point of Sale system and catalogs and supplier websites (and other non-related things) until she is satisfied with her order, then she will send it off. It seems that every time she leaves the message that she is composing a copy of it is made in the drafts folder. She she'll get a dozen or more copies of the same draft accumulating in there. That makes it cluttered and confusing - especially since she will often have as many as ten different emails that she is working on throughout the day. (It's a complex world and she is a complex person!) The drafts folder becomes very full.
    Normally, if she exits from a message that she is composing (a draft) it asks if she wants to save it. She says yes, but all of those earlier copies still exist and do not go away until she manually deletes them. This can take a lot of time and once in a while she accidentally deletes the latest copy.
    Maybe there is a setting that corrects this, but I cannot find it. From our perspective something is broken. Oddly, it doesn't do this on my system, but does do it on the computer in our store, too. Any help would be greatly appreciated.
    Summary to reproduce:
    1. Start a new email and add some text to it.
    2. Go off and do some other work.
    3. Come back and add some more to it.
    4. Make a few loops back to #2 then go on.
    5. Exit from the email without sending. Click on "save a copy in drafts".
    6. Go look at the drafts folder and it will have multiple earlier drafts of the same message.
    7. While manually deleting excess drafts, accidentally delete the most recent one.
    8. Jump up and down, cursing and throw something at your spouse who has been unable to fix this problem on his own.

    Ick. So it can't just work sensibly? Sensible would be either autosave overwrites previously autosaved versions or all autosaved versions would be deleted when the message is finally sent. Allowing previous message versions to accumulate endlessly might be beneficial to someone, but does not seem like sensible default behavior.

  • ME01 LSMW multiple record for same material issue.

    Hi Experts,
    I have an issue with multiple record for the same material and plant when I upload the data from the file.  Lets I have the records.
    Material        Plant              Start date      Enddate        Vendor          Porg.
    1     0010     20060101     99991231     2     0010
    1     0010     20060101     99991231     3     0010
    When I upload the above data there are 2 IDOCs created when I am using the method LSMW-IDOC method, but only last record is getting updated and the first one is not getting updated in ME01 souce list. But I am getting the success message for both IDOC in LSMW. So I am not sure how to fix this why only last record is updated and not other records??

    why do you have 2 idocs?
    wouldn't be 1 idoc with 2 items be more logical?
    1 record in structure E1EORDH
    and 2 records in structure E1EORDM
    I believe your 2 IDOCs get posted, but I think your 2nd Idoc overwrites the values entered from the first IDOC.

  • How can I combine multiple listings for same genre on iTunes 11?

    When I downloaded the newest iTunes version 11, I suddenly had multiple listings for the same genre. I literally have 63 genre listings for "Trance"; 4 listings for "Hip-Hop/Rap" and a few others. There was obviously not a problem with the old iTunes version as they were all grouped together. I do get music from several sources but I have no idea how to combine all my "Trance" listings into one. It takes longer to scroll through the "Trance" genres than the rest of my genres combined. I tried to individually change one the "Hip-Hop/Rap" listings by using the "Get Info" tab and typing in the genre until iTunes can autofill the rest but the problem remains. Any ideas how to combine all these into one genre without compromising the genre name? Thanks
    Mac OS X Version 10.6.8 Snow Leopard

    I believe the closest you can come is look at your songs in Songs.  There you can sort by albums.
    The album view does not contain a list view any longer.

  • Finalize() method being called multiple times for same object?

    I got a dilly of a pickle here.
    Looks like according to the Tomcat output log file that the finalize method of class User is being called MANY more times than is being constructed.
    Here is the User class:
    package com.db.multi;
    import java.io.*;
    import com.db.ui.*;
    import java.util.*;
    * @author DBriscoe
    public class User implements Serializable {
        private String userName = null;
        private int score = 0;
        private SocketImage img = null;
        private boolean gflag = false;
        private Calendar timeStamp = Calendar.getInstance();
        private static int counter = 0;
        /** Creates a new instance of User */
        public User() { counter++;     
        public User(String userName) {
            this.userName = userName;
            counter++;
        public void setGflag(boolean gflag) {
            this.gflag = gflag;
        public boolean getGflag() {
            return gflag;
        public void setScore(int score) {
            this.score = score;
        public int getScore() {
            return score;
        public void setUserName(String userName) {
            this.userName = userName;
        public String getUserName() {
            return userName;
        public void setImage(SocketImage img) {
            this.img = img;
        public SocketImage getImage() {
            return img;
        public void setTimeStamp(Calendar c) {
            this.timeStamp = c;
        public Calendar getTimeStamp() {
            return this.timeStamp;
        public boolean equals(Object obj) {
            try {
                if (obj instanceof User) {
                    User comp = (User)obj;
                    return comp.getUserName().equals(userName);
                } else {
                    return false;
            } catch (NullPointerException npe) {
                return false;
        public void finalize() {
            if (userName != null && !userName.startsWith("OUTOFDATE"))
                System.out.println("User " + userName + " destroyed. " + counter);
        }As you can see...
    Every time a User object is created, a static counter variable is incremented and then when an object is destroyed it appends the current value of that static member to the Tomcat log file (via System.out.println being executed on server side).
    Below is the log file from an example run in my webapp.
    Dustin
    User Queue Empty, Adding User: com.db.multi.User@1a5af9f
    User Dustin destroyed. 0
    User Dustin destroyed. 0
    User Dustin destroyed. 0
    User Dustin destroyed. 0
    User Dustin destroyed. 0
    USER QUEUE: false
    INSIDE METHOD: false
    AFTER METHOD: false
    User Dustin destroyed. 1
    User Dustin destroyed. 1
    User Dustin destroyed. 1
    User Dustin destroyed. 1
    USER QUEUE: false
    INSIDE METHOD: false
    AFTER METHOD: false
    User Dustin destroyed. 2
    User Dustin destroyed. 2
    User Dustin destroyed. 2
    User Dustin destroyed. 2
    User Dustin destroyed. 2
    User Dustin destroyed. 2
    User Dustin destroyed. 2
    User Dustin destroyed. 2
    USER QUEUE: false
    INSIDE METHOD: false
    AFTER METHOD: false
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    USER QUEUE: false
    INSIDE METHOD: false
    AFTER METHOD: false
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    USER QUEUE: false
    INSIDE METHOD: false
    AFTER METHOD: false
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    USER QUEUE: false
    INSIDE METHOD: false
    AFTER METHOD: false
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    Joe
    USER QUEUE: false
    INSIDE METHOD: false
    AFTER METHOD: false
    User Dustin pulled from Queue, Game created: Joe
    User Already Placed: Dustin with Joe
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    INSIDE METHOD: false
    INSIDE METHOD: false
    USER QUEUE: true
    INSIDE METHOD: false
    INSIDE METHOD: false
    User Dustin destroyed. 9
    User Joe destroyed. 9
    User Dustin destroyed. 9
    User Dustin destroyed. 9
    User Dustin destroyed. 9
    User Dustin destroyed. 9
    INSIDE METHOD: true
    INSIDE METHOD: false
    USER QUEUE: true
    INSIDE METHOD: false
    INSIDE METHOD: false
    INSIDE METHOD: true
    INSIDE METHOD: false
    USER QUEUE: true
    INSIDE METHOD: false
    INSIDE METHOD: false
    It really does seem to me like finalize is being called multiple times for the same object.
    That number should incremement for every instantiated User, and finalize can only be called once for each User object.
    I thought this was impossible?
    Any help is appreciated!

    Thanks...
    I am already thinking of ideas to limit the number of threads.
    Unfortunately there are two threads of execution in the servlet handler, one handles requests and the other parses the collection of User objects to check for out of date timestamps, and then eliminates them if they are out of date.
    The collection parsing thread is currently a javax.swing.Timer thread (Bad design I know...) so I believe that I can routinely check for timestamps in another way and fix that problem.
    Just found out too that Tomcat was throwing me a ConcurrentModificationException as well, which may help explain the slew of mysterious behavior from my servlet!
    The Timer thread has to go. I got to think of a better way to routinely weed out User objects from the collection.
    Or perhaps, maybe I can attempt to make it thread safe???
    Eg. make my User collection volatile?
    Any opinions on the best approach are well appreciated.

  • Multiple entries for same apps showing next to 'Open With' in contextual menu since last backup

    I did a back up of my MBPs internal drive recently, using Carbon Copy Cloner - since then there are multiples of the same icons for all apps under 'Open With' in the contextual menu. I seem to remember there being a command line that could be entered in Terminal to fix this, but I can't find it anywhere.
    Can anyone help?

    Yes, LaunchServices. These are only cache files but can get corrupted. Launch /Utilities/Terminal and copy & paste this at the command line to rebuild LaunchServices: (be sure to copy the entire line it's a scroll)
    Code:
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user
    Then press return. Wait until terminal returns to the command line. Quit Terminal. After that, log out and back in or restart. Let us know

  • Skip lot across multiple batches for same material

    Hi,
    I am looking for a way to control skip lots across multiple batches for the same material.
    We need to do a quality check in production after a certain quantity produced (on a machine, for a material). My idea was to do skip lots (for GR)  until we reach a threshold (say 10.000 pcs) and then do an inspection for the next GR for that material.
    Any ideas how to set that up?
    Thanks for any hint
    Andreas

    Hi mergler,
    Ref to your query pls check this link Stock Posting for Skip Lots
    Thanks in advance

  • IDoc processing for same message type but diff extensions

    Hi
    I want to send idoc when a material is changed. Everything is in place and have also done a test scenario. In partner profile i had the message type linked to basic type and tested which is fine. Now i wanted to have one more idoc created for another extension having the same basic type and linked to the same message type. Have maintained the same in WE20 but when i executed BD10 i could only see one idoc been generated but i need to see two idoc (one for basic type and another for the extended) not sure where i'm missing. any pointers on it pls?

    Hi ,
    if you want to trigger the idoc  two times for basic type& Extension..
    1 ) you need to maintain  WE20 Partner Profiles (This is good already you did)
              --> But the Output type for Bsic type & extension type is same so output type is triggered Once so idoc is created One.
    2) try to create another Output type in T-code NACE for extension then two Idocs is created one for Basic and another for Extension.
    Regards,
    Prabhudas

  • Multiple entries for same title in ADE title list

    I have 6 entries for the same title in the ADE title list.  All have the same date and time added.  All but one are blank in the "Last Read" column.  On my computer I have only 1 epub file for this title.  Why do I have multiple entries for the same title?  If I delete all entries except for the one that has a date and time in the Last Read column will that be okay -- will I still be able to access the book?

    Hi
    This is the normal effect of SAP DBSL SQL code translation.
    You can find a lot of post on SCN that will help you to understand this behavior...
    Regards
    About rsdb/prefer_join and rsdb_prefer_union_all
    634263 - Selects with FOR ALL ENTRIES

Maybe you are looking for

  • Not able to insert row programticaly

    hi am trying to insert row to another viewObject from another viewobject programaticaly ,can somebody help me,i have recreate the problem i upload it in hostfile,am in jdeveloper 11.1.1.6.0 am geting this log error Caused by: oracle.jbo.InvalidOwnerE

  • Cant load SwingApplet in IE5.0, works with appletviewer

    hello again I Can't load a SwingApplet in IE5.0, there are no problems with appletviewer. with IE5.0 I get "class aaa.Bcd" not found - error, and the java-console shows this: java.lang.ClassNotFoundException: javax.swing.JApplet      at com/ms/vm/loa

  • SONET and DS-1

    Recently we just switch from CES over an ATM backbone to SONET (454s and 327s). We have a requirement for point-to-point T1 circuits. The circuits worked fine over CES and all we did was move the circuits to the SONET. The tail end of the circuit rem

  • Error occurs after I install sps16,

    Error occurs after I install sps16, when I am using the My Tasks views,  while I clicked on the Edit link  to add a document to Attachments of that task,  a new window pop up.  but this is a blank windows!  how can I sloved this problem?  thanks rega

  • What kind of virus or malware protection is recommended?

    I just got a new IMAC (home computor).  I called Apple support and they said Apple doesn't endorse or recomend any specific virus or malware for my Apple...  Any other users out there have any malware, spyware or anti virus app's they recomend to kee