Problem in Multiple Reciever Determination

I am working on the scenerio in which i have to send data to different system depending upon the sending payload....
to brief about it..
i am using 2 mappings!! one for  reciever determination and other for normal functionality
/ns1:Receivers=/ns0:MT_ABAPPROXY= /ns1:Receivers/Receiver=/ns0:MT_ABAPPROXY/header= /ns1:Receivers/Receiver/Service=SplitByValue([type=Each value]iF(const([value=BS_AED]), stringEquals(/ns0:MT_ABAPPROXY/header/EMPNO=, const([value=000000000023])), const([value=BS_AED_210])))
the logic was like i need if the employe number = 000000000023 , th ereciever should be BS_AED_210 else it shoud be BS_AED.
The other mapping which performs the functionality of the Scenerio:
Messages->                                       Messages->
    Message1->                                         Message1->
      MT_PROXY->(1..1)                                   (a) ZTEST1(0..unb)
        (a) header-> (0..unb)                                       Data
             (b)EMPNO                                                (b)   EMPNO
            (c)EMPNAME                                           (c)    EMPNO
where ztest is my Customized RFC...
in ID Type of Recvr Det is Extended
And mapping i have put is my first mapping where i determine my Reciever
In Interface Det1: reciever was BS_AED
In Interface Det2: reciever was BS_AED_210
The data is gettign branched and Split sweetly it is not sending into diff syst.
as my data is like
EMPNO                = '000000000022'.
EMPNAME              = 'B'.
  EMPNO                = '000000000023'.
    IT_HEADER-EMPNAME              = 'C'.
the logic say 23 one should go to one specific system BS_AED_210 and the other to BS_AED ... but it sending both the data in both the systems...
I hope i have clarifiy my problem..
Kindly help me out in solving this issue....

the logic say 23 one should go to one specific system BS_AED_210 and the other to BS_AED ... but it sending both the data in both the systems
--->
You need to write a UDF for that
Did you see this blog
/people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16
Following code will help you to route msg to corresponding receiver
int mr = 0;
int ms = 0;
for( int j = 0 ; j < a.length ; j++ )
      if( a[j]==000000000022 && mr == 0)
           result.addValue("1");
           mr = 1;
      if( a[j]=000000000023 && ms==0)
                       result.addValue("2");
                       ms = 1;
You may have to do  little modification to code acc to your logic

Similar Messages

  • Enhanced Reciever Determination Map problem

    Hi,
    i am working on enhanced reciever determination, i followed this blog for reference
    /people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16
    after the mapping recievers MT  (predefined from BASIS) . i have tested with the following payload and it is working fine.i got my ERD is working
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_SampleFile_sx xmlns:ns0="urn:TestScenario">
       <Person>
          <name>mr</name>
          <age>123</age>
       </Person>
       <Person>
          <name>ms</name>
          <age>12</age>
       </Person>
    </ns0:MT_SampleFile_sx>
    if i give the payload with more mr or ms node like below, i am getting error.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_SampleFile_sx xmlns:ns0="urn:TestScenario">
       <Person>
          <name>mr</name>
          <age>123</age>
       </Person>
       <Person>
          <name>mr</name>
          <age>12</age>
       </Person>
       <Person>
          <name>ms</name>
          <age>1256</age>
       </Person>
    </ns0:MT_SampleFile_sx>
    ERROR: Cannot produce target element /ns1:Receivers/Receiver[3]/Service. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd
    can any one help me to solve this problem
    Thank You,
    Madhav

    Hi,
      I had checked UDF. As per UDF you want to give ,
    <name>mr</name>
    instead
    <name>Mr</name>
    Change the payload and map like below,
    Receiver:
    Name(Change Context to parent)--SplitByValue(ValueChange)--CollapseContext--Receiver
    Service:
    Name(Change Context to parent)--ServiceDetermination(UDF)--SplitByValue(EachValue)--Service
    Regards,
    Prakasu.M

  • Reciever Determination condition error in PI7.1

    Hi Experts,
    I done File to File scenario in XI with multiple recievers based on FileName in Reciever Determination, i use context object(FileName, http://sap.com/xi/XI/System/File) in Expession editor, this condition was working in XI, but in PI7.1 it is not working, it is giving error like below.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Receiver Determination
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="RCVR_DETERMINATION">CX_RD_PLSRV</SAP:Code>
      <SAP:P1>Problem evaluating a condition: An exception has occurred.</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Error when determining the receiver: Problem evaluating a condition: An exception has occurred. Problem evaluating a condition: An exception has occurred. An exception has occurred. An exception has occurred. An exception has occurred. An exception has occurred. An exception has occurred. Problem extracting values from the Payload: Check line 2 column 1 of the XML document</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Can anyone please help me out of this.
    <removed_by_moderator>
    Edited by: Juan Reyes on Oct 1, 2010 2:53 PM

    Hello ,
    I have the same issue with PI system and all IDOCS in PI are in error state.
    The issue in our case was the condition for the interface was visible from integration directory in receiver determination , but its not replicated in ABAP stack ( tcode sxi_cache ).
    so we have gone in receiver determination in Integration builder-->Receiver Determination
    Select a object --> click on Edit mode
    Add a space in the description , click on SAVE. Then activate it.

  • Reciever Determination: No reciever could be determined in SXMB_MONI

    Reciever Determination: No reciever could be determined
    Hello people,
    When I tried transfering PO to supplier this error happened in XPP system.
    Don't know how to solve this.
    Is this a problem with the supplier.
    Please give a solution.

    Hello Deepak,
    You getting error in XI system right while executing SXMB_MONI? If that is the case it looks like issue with XML mapping and determining supplier information from the xml message.
    Please check your xml schema mapping you should able to identify issue.
    Thank you
    Ritesh

  • Problem with multiple Toplink/JPA apps in same server

    Anyone have experence of running serveral Toplink/ EJB-3 Web apps in the same server (OC4J, alas)?
    We seem to get a problem with the second app failing to initialise toplink, with an entity not found message. Each app runs OK on it's own.

    Yes, they access the same datasource and most of the tables overlap.
    We're thinking it might help to have common entity classes and put them in a shared library, but I don't know if this is relevant (setting up shared libraries complicates testing and tends to snowball, I reckon we need about 15 jars all told).
    I''ve had some funnies on OC4J before which I think may be to do with it's use of ClassLoaders, for example I initially put persistence.xml in the libary jar with the data model, but for some reason I get the entity not found error that way. It only seems to work if it's in the classes folder.
    For the moment we're getting arround the problem with multiple OC4J instances in the server.

  • Problem in multiple selections in a jList

    I have two jLists. Now I have to select some items from one jlist and have to transfer in the other one. But while trying to do it in the runtime I am getting some unexpected runtime errors including "Exception occurred during event dispatching". When I try to transfer only one item it works fine but shows problem in multiple selections. Pleast give your suggestions.

    [_First suggestion_|http://catb.org/~esr/faqs/smart-questions.html]
    [_Second suggestion_|http://mindprod.com/jgloss/sscce.html]
    db

  • Problem Using Multiple With Statements

    I'm having a problem using multiple WITH statements. Oracle seems to be expecting a SELECT statement after the first one. I need two in order to reference stuff from the second one in another query.
    Here's my code:
    <code>
    WITH calculate_terms AS (SELECT robinst_current_term_code,
    CASE
    WHEN robinst_current_term_code LIKE '%60' THEN robinst_current_term_code - '40'
    WHEN robinst_current_term_code LIKE '%20' THEN robinst_current_term_code - '100'
    END first_term,
    CASE
    WHEN robinst_current_term_code LIKE '%60' THEN robinst_current_term_code - '100'
    WHEN robinst_current_term_code LIKE '%20' THEN robinst_current_term_code - '160'
    END second_term
    FROM robinst
    WHERE robinst_aidy_code = :aidy)
    /*Use terms from calculate_terms to generate attendance periods*/
    WITH gen_attn_terms AS
    SELECT
    CASE
    WHEN first_term LIKE '%60' THEN 'Fall '||substr(first_term,0,4)
    WHEN first_term LIKE '%20' THEN 'Spring '||substr(first_term,0,4)
    END first_attn_period,
    CASE
    WHEN second_term LIKE '%60' THEN 'Fall '||substr(second_term,0,4)
    WHEN second_term LIKE '%20' THEN 'Spring '||substr(second_term,0,4)
    END second_attn_period
    FROM calculate_terms
    SELECT *
    FROM gen_attn_terms
    <code>
    I get ORA-00928: missing SELECT keyword error. What could be the problem?

    You can just separate them with a comma:
    WITH calculate_terms AS (SELECT robinst_current_term_code,
    CASE
    WHEN robinst_current_term_code LIKE '%60' THEN robinst_current_term_code - '40'
    WHEN robinst_current_term_code LIKE '%20' THEN robinst_current_term_code - '100'
    END first_term,
    CASE
    WHEN robinst_current_term_code LIKE '%60' THEN robinst_current_term_code - '100'
    WHEN robinst_current_term_code LIKE '%20' THEN robinst_current_term_code - '160'
    END second_term
    FROM robinst
    WHERE robinst_aidy_code = :aidy),
    /*Use terms from calculate_terms to generate attendance periods*/
    gen_attn_terms AS
    SELECT
    CASE
    WHEN first_term LIKE '%60' THEN 'Fall '||substr(first_term,0,4)
    WHEN first_term LIKE '%20' THEN 'Spring '||substr(first_term,0,4)
    END first_attn_period,
    CASE
    WHEN second_term LIKE '%60' THEN 'Fall '||substr(second_term,0,4)
    WHEN second_term LIKE '%20' THEN 'Spring '||substr(second_term,0,4)
    END second_attn_period
    FROM calculate_terms
    )Not tested because there are no scripts.

  • Problem using multiple contexts in same thread

    Hello,
    I am having problem using multiple contexts in the same thread. Here is the scenario:
    front-end is calling a ejb1 with a user1 and password. Ejb1 is then calling ejb2
    using user2 and password. I am getting security exception when calling ejb2 with
    the message user1 is not authorized. Looking at the documentation, context 2 should
    be pushed on stack on top of context 1 and context 2 should then be used until
    context.close() is called. It looks like this is not the case in this scenario?
    Regards,
    Jeba Bhaskaran

    I have the GTX670. So pretty much the same.
    When I go to  Edit>Preferences>Playback I see:
    When I select the monitor I am not currently using for Premiere Pro, the Program Monitor shows up full size at 1920X1080 in that monitor.
    While that may not help you, at least you know a similar card can do the job and you know that it should work.. What happens if you drop down to two monitors? Will it work then?
    Also, have you performed the hack that allows Premiere Pro to use the card since that card is not in the file? I have no idea if that is relevant at all, by the way. It is just an attempt at getting our systems to work the same way.

  • Problems printing multiple copies on 1 page in iPhoto version 9.5.1

    I'm having problems printing multiple copies of a photo in my version of iPhoto 9.5.1. I've tried looking at the answers given in Macworld forums for iPhoto '09 but I can't follow them as they refer to clicking 'preferences' - but this button isn't displayed on the 'print' page. Is my version iPhoto '09 or '11?

    iPhoto 9.5.1 is the most recent version of iPhoto '11, as part of the iLife '11 suit of applications.  The printing dialog changed between iPhoto '09 and iPhoto '11.
    The easiest way to print multiple copies of the same photo on one page is to simply duplicate your photo (from the "Photos" menu:  "Photos > Duplicate" and then to select all copies at once and use "File > Print":
    Then select a template and press the "Print" button.

  • Problem deleting multiple keywords in lightroom 5

    I am importing about 20,000 pictures from Flickr. they are all creative commons, and the end result will be the use of approximately 4000 of these in an online sign language dictionary.
    I use Bulkr to import them and this process imports the tags as well as other information such as the photographers name and url.  Many of these photos arrive with hundreds of tags, so that the total number of tags might be 20000 or more.  I need to assign my own tags and delete all the tags that the photo arrived with.  I use the lightroom batch delete to do this (the little minus sign at the top of the keyword list).  i select a keyword, hold down the shift key and scroll down.  the problem is that i cannot just scroll down to the bottom of the list.  There appear to be unpredictable keywords that cause the shift-select process not to work.  if i scroll back up and then carefully scroll part of the way back down, then there will be a point at which shift-select stops working and above that it works. 
    The end result of this is that it takes numerous shift-select-scroll down-select to delete everything so that what should take maybe 2 minutes takes 20 minutes or more. 
    The problem may be related to foreign language keywords especially chinese characters, but even what looks like a perfectly ordinary keyword can stop it.  Two recent examples: travellers cheque  and Київ. In all cases, the words can be deleted when i click directly on them.  you just cant shift-select THROUGH them.
    A separate annoyance that i will just grumble about is that i was forced to put these pictures in a separate catalog because there is always the risk that i could manage to delete my own keywords while batch-deleting everyone elses, and there is no simple way that i know of to undo this. with the separate catalog at least i wont delete all the keywords for my own pictures.

    With respect to problems deleting multiple keywords: On Windows, since at least version 3, LR has had basic bugs when you have more than about 1600 keywords showing.  (Hard to believe it isn't fixed by now.)   A simple workaround for you situation is to filter the keywords one letter at a time and then select the subset of keywords that are showing -- e.g. filter all keywords with the letter "t", then all keywords with the letter "b", etc.
    With respect to not getting the keywords into your catalog in the first place: You can define a Metadata Preset that will clear the keywords on import:

  • Problem with multiple versions of documents being published with 001, 002, etc.

    I am using Contribute CS3. I am having a problem with multiple versions of documents being published on the sever with 001, 002, etc in the name. So that I end up with 2 or 3 versions of a document on the server. Does anyone know why / how Contribute  is doing this? Thanks for any help you can give.

    Your Web site administrator will need to update your key to allow you to delete files you are able to edit.

  • Problems with multiple idocs in one file ( Inbound file )

    HI,
    Thanks in Advance for your suggestions.. Highly appreciated.
    We have problems with multiple IDocs in one file.
    We are using XIB ( Amtrix ) as Middleware to receive the files.
    Curretenly When the file contains one IDoc then there is no problem. IDoc is created and everything is ok.
    If file contains two IDocs ( for example two messages ORDERS and DELVERY ) then it is creating two IDocs but both IDocs contains ORDERS plus DELIVERY segements information. That is the problem. Some how SAP unable to differentiate the IDocs in the file.. But it knows that how many idocs are there in the file..because it is creating exact number of idocs.
    We are using TRFC port ... Do I need to change it to File port..
    When we have more than one idoc do we need set any parameter in the file ...

    Thanks for the swift response. Always ideas are useful.
    As of now , Middleware cannot split the file.
    Thing is SAP is creating two Idocs with different message types. Problem is First IDoc contains ORDERS message type but also DELIVERY segments as well. Second IDoc with DELIVERY message tyoe but ORDERS segments as well... This is the problem... I think we are missing some field activation in file for EDIDC record.
    As far as I know file port supports the number of IDocs in one file.. Hope TRFC port also supports that

  • Configuration overview for Reciever Determination Error

    Hi friends !!
    while creating Reciever determination... at configuration Overview for reciever determination (tab)   Reciever(Partner / Service) showing <b>Not Defined</b>
    can anybody suggest me why this issue is coming
    Regards
    Abhishek Agrahari

    Hi Abhishek,
                      while creating Reciever determination... at configuration Overview for reciever determination (tab) Reciever(Partner / Service) showing Not Defined
    This shows as undefined because you may not have selected the Service in the Configured Receivers in the window above configuration Overview ......once u select the receiver service and save the data then u need to go to the configuration Overview space and right click on the not defined link and select NEW SPECIFIC and there select ur receiver service....do the same for mapping and receiver agreement....This will serve ur purpose.
    Thx
    Ravijeet

  • Problem deleting multiple rejected photos in Lightroom 3

    I had some frustrating trouble deleting a set of rejected photos. I am running LR3 on Windows 7 64 bit.
    I flagged about 220 out of 600 photos as rejects in a folder. When I hit ctrl-backspace to delete them, the rejects were shown in the grid view but were not deleted. Nothing I could do would delete them, I tried all the workarounds I could find in the forum and tried everything else I could think of. I was able to delete them one at a time but not all at once.
    Then I tried deleting them in chunks... two at a time, three at a time - worked. Then I tried 30 or so - got a message that one or more of the photos had been published to flickr. I clicked OK to delete from Flickr, that was processed then I got the prompt to delete them - worked. Then I tried deleting the rest of the pictures - about 160 left at that point, worked fine.
    There seem to be quite a few people having trouble deleting rejected photos, maybe there is some kind of conflict between the publishing function and deleting rejects?

    With respect to problems deleting multiple keywords: On Windows, since at least version 3, LR has had basic bugs when you have more than about 1600 keywords showing.  (Hard to believe it isn't fixed by now.)   A simple workaround for you situation is to filter the keywords one letter at a time and then select the subset of keywords that are showing -- e.g. filter all keywords with the letter "t", then all keywords with the letter "b", etc.
    With respect to not getting the keywords into your catalog in the first place: You can define a Metadata Preset that will clear the keywords on import:

  • Problem opening multiple pictures in Photoshop

    Problem opening multiple pictures in Photoshop.  OldBob1957 has given me some suggestions on how to overcome this problem.  I tried to Edit.Purge>All, Reset Preferences, Delete the Adobe Photoshop x Prefs.psp folders and Ctrl+Alt+Shift on Photoshop startup.  Did not work, what next?  Delete all the PSP folders.?  There are 45 more in my computer.  Any help will be appreciated.

    Hi Noel:
    I reset the max memory to the high side as suggested but the results when I opened the pictures and changed them was the same.  I could open four but nto the fifth one.
    Lyndon
    PS:  In the event you haven't seen the start of the problem, I thought I would include it here:
      I am working on a picture file, jpegs, changing the size, the level, etc. I open several pictures usually
    3 or 4 and when I try to open the next I receive a pop up error message that says: "Could not
    complete your request because of a program error.” This has just started to happen recently,
    probably since I upgraded to CS6. Previously I could work on a file and have 100 or so pictures
    open and still be able to open additional pictures. I have downloaded and in installed all available
    updates and the message I receive when I check for updates is: “Your applications are up-to-date
    as checked less than a minute ago.” I tried to Edit>Purge>All, Reset Preferences, Deleted the
    Adobe Photoshop Ver. 6 Prefs.psp folder and pressed Ctrl+Alt+Shift on Photoshop startup and
    deleted Adobe Photoshop Settings file. Did not work, what next? Delete all the PSP folders? There
    are 45 more in my computer. Any help will be appreciated.
    LR

Maybe you are looking for

  • Mm-fi error /critical

    hi, In the past- Whenever Finished Goods receipt takes place (GR is made for FG), FG stock a/c is debited and Cost of Goods Manufactured is credited. In the current mysap version-Consumption FG a/c is credited instead of Cost of Goods Manufactured. K

  • Reset Password - System does not boot from DVD

    My System: Macbook Pro - 2Ghz Intel Core Duo - OS X - 10.6.8 Hi everyone, i forgot my password. So i want to boot from install DVD to reset the password. Unfortunately my macbook pro does not boot from DVD (10.6.3). I press c all the time...but somet

  • DMS-mistake-pleasse help

    Hello experts, Need help on the below. For client we are using KRPO, content server. Hence in DC20, by mistake some one has defined data carrier type as PC in archive section instead of server front end section and have put default and sap system in

  • Linking PDF files to a published project.

    I've scoured over forums for a couple days now looking for an answer to this. I have CS5, and I'm extremely new to this program. Here's what I have going on: I'm creating a series of courses. The first intro/welcome course, has a menu. I want each of

  • ITunes apps tab, list view, what does the 4  symbol mean?

    In iTunes, in the Library section on the left, with the Apps category selected, I see all my downloaded apps as icons. When I choose List from the iteims across the top, the view changes to an apphabetical list. Next to the name of each app is a symb