Routing rule clarification in receiver determination

Hi guys,
I have a routing condition which says
I_ZBAPI_DL01/ZZCOMDEST = DN_XC and
I_ZBAPI_DL01/ZZCOMDEST_II = DN_08 and
I_ZBAPI_DL01/ZTIB_LFART ="ZRWO" and
contains(I_ZBAPI_DL01/ZADI_SUBSCRIBER,"JRW") and
T_ZBAPI_DL12/ZTIB_BSARK = "RBCO"
In the above case DL01 occurs only once but DL12 is 0------Unbounded.
I have written XPATH query like
/p1:Z_BAPI_DELIVERY_NOTE_OUTBOUND[ ( I_ZBAPI_DL01/ZZCOMDEST = "DN_XC" and I_ZBAPI_DL01/ZZCOMDEST_II = "DN_08" and I_ZBAPI_DL01/ZTIB_LFART = "ZRWO" and contains(I_ZBAPI_DL01/ZADI_SUBSCRIBER,'JRW') ) and (T_ZBAPI_DL12/ZTIB_BSARK = "RBCO") ]
Will this work? Or do i need to make any changes? Kindly help me on this

This will work. No error. But the logic may become incorrect.
DL12 is 0------Unbounded.
So there could be more than one value for the field DL12/ZTIB_BSARK. In such case, it may execute once and in the other case it may go to the else part. If this suits ur logic then no problem
Regards,
Prateek

Similar Messages

  • Routing condition in receiver determination

    Hi,
    In my RFC to JMS scenario, i encountered with a strange routing condition for the receiver determination.
    I have routing condition like " string length (one field in Bapi)<1" .
    Could any one help me how to implement this?
    Regards,
    Vishnu.

    HI check the below links for reference
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=transactional
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a1a0eb43-0b01-0010-23aa-908cc4eaabcd
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.sdn.folder.sdn!2fco...
    note:reward points if solution found helpfull.....
    regards
    chandrakanth.k

  • XI thread count per Receiver Determination rule

    Does XI create interface instances/threads per rule found within a Receiver Determination? Such that we should expect one thread per rule? How are threads related to each rule within the receiver determination? What is the ratio, 1 thread per rule, or one thread per receiver determination? What is the impact on system performance in relation to rule count?

    See an Adapter works in AE and Receiver Dtermination in IE......for receiver Determination to work the message should be first picked by your sender adapter.....only then it comes to determination (in IE).
    But note that messages picked up by one sender channel will be coming to the determination (even if it has n conditions)......we wont have multiple channels picking the message and delivering to same determination...
    The number of conditions satisfied by the determination will initiate that many receiver adapter threads.....and it is just because of the conditions being validated (as true) and not because of the number of conditions being maintained.

  • Regarding using context object in Receiver determination.

    Hi All,
    I want to  implement a scenario where with following requirnment .
    i have one sender and multiple receivers.
    i have to retrive some feild value and based on the its value i have to route the message in receiver determination step by writing the condition.
    for this i have a source structure , from that i read one feild , based on that feild i do lookup.(the value of destination which i am getting is at intermidiate stage not in request message)
    If i define Xpath or context object it shows the request message in the contion editor , but i dnt  have the destination in request message.
    is there any way i can  assign the Xpath for the intermidiate MT which i have created to store the destination value.
    Please dont give me the link which point to help.sap page ..i have gone through it and it says that request msg only can be assigned context object.
    Thanks

    Hi,
    In your case Enhanced receiver determination will work.A typical usage case is if you do not yet know the names of the receivers at configuration time. In this case, you can define a mapping program, for example, which reads a list of receivers from a table or from the payload of the message at runtime.
    For configuration check the link
    http://help.sap.com/saphelp_nw04/helpdata/en/43/a5f2066340332de10000000a11466f/frameset.htm
    Thanks!

  • Extended Receiver Determination in 7.31 IDApi

    Hi,
    I'm using the 7.31 IDApi to create\change an ICO in 7.31 AEX. Currently this is working fine. However, I also need to create an ICO using the Extended receiver determination but I do not see ay function for this in the existing wsdls that SAP has provided.
    I have also referred to William Li's blogs for IDAPi for this.
    Using PI 7.3’s Directory API
    Could you please let me know if creating an ICO with Extended receviver determination from IDApi is possible and any pointers as to how it can be done would be very helpful.
    Regards

    Hi Shiladitya
    I can see that there is a option for dynamic receiver rule in the receiver determination of ICO.
    You can find the same in
    IntegratedConfigurationCreateChangeIn----> IntegratedConfiguration--->Receivers--->DynamicReceiverRule
    I am in 7.31 dual stack SP 07.

  • Redarding receiver determination

    hi all
    iam ajay,
    here i faced a problem at xi server. even i created the receiver determination it alerts an error in receiver determination.i furnished my error below.
    let me know the solution
    <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="RCVR_DETERMINATION">CX_RD_PLSRV</SAP:Code>
      <SAP:P1>Problem extracting values from the message: The exception occurred (program: CL_SAI_SWF_RULE_ENGINE========CP, include CL_SAI_SWF_RULE_ENGINE========CM006, line: 93)</SAP:P1>
      <SAP:P2 />

    Hi Ajay,
    Have you defined a rule for the receiver determination.
    Please can you check on this thread. Same issue
    Error evaluation condition in receiver determination
    Regards
    Vijaya

  • File name based routing in Receiver determination

    Hi experts,
    I have a requirement to do receiver determination based on file names which are dynamic.To put it clearely, i will be having two files in my source File location and i need to route it based on the file name to two target systems.
    The file name are like Month(changes everymonth)_TargetSys1 and month_targetSys2.
    I dont need any conversions ,so i am not using any IR objects.
    To pick files i kept *.txt in sender channel, and in receiver determination  condition i was trying to use context object called 'Filename'.But it doesnt work asthe file name changes every month.
    Is there any option to take substring from the input file name (say targetSys2 from month_targetSys2.) and put it as a condition for receiver determination.
    There is not DT or structure of the incoming file , as there are no modification to be done with the content.
    Regards,
    Anika

    you need to have the structure in case you want to route it via the xpath.
    Else another option is to code the enhanced receiver determination and using a java mapping with dynamic configuration read the filename and then dynamically create the receiver determination.
    http://help.sap.com/saphelp_nw04/helpdata/en/43/a5f2066340332de10000000a11466f/content.htm

  • Receiver determination(or Interface determination) and conditional routing

    I have a flat file to flat file scenario. Based on the input file content, I want to route data to the receiver.
    My source flat file contains several IDOC details. Assume two fields FIELD1 and FIELD2 in different segments of the IDOC. My requirement is if FIELD1 of an IDOC = "US" and FIELD2 of the same IDOC = "CA", then that IDOC's details needs to be passed to the receiver.
    I have implemented the above condition at interface determination.
    But the problem is:
    Assume there are 3 idocs in the input file.
    FIELD1 of IDOC[1] = 'US' and FIELD2 of IDOC[1] = 'GL'
    FIELD1 of IDOC[2] = 'UK' and FIELD2 of IDOC[2] = 'EN'
    FIELD1 of IDOC[3] = 'BR' and FIELD2 of IDOC[3] = 'CA' .
    Now none of the IDOCs in the input satisfy my requirement and hence the message mapping should not be called at all. But in my case its failing because FIELD1 of IDOC[1] and FIELD2 of IDOC[3] together are satisfying the condition and hence the message mapping is called.
    But I need to check this condition IDOCwise. Both the conditions to be satisfies in the same IDOC.
    I am thinking that contexts are not being taken care.. It just see the whole file together and not IDOCwise.
    Can someone help me on the same. Please let me know if more information is required.
    Thanks,
    Shobha

    >
    Shobha HB wrote:
    > I have a flat file to flat file scenario. Based on the input file content, I want to route data to the receiver.
    >
    > My source flat file contains several IDOC details. Assume two fields FIELD1 and FIELD2 in different segments of the IDOC. My requirement is if FIELD1 of an IDOC = "US" and FIELD2 of the same IDOC = "CA", then that IDOC's details needs to be passed to the receiver.
    >
    > I have implemented the above condition at interface determination.
    >
    > But the problem is:
    > Assume there are 3 idocs in the input file.
    > FIELD1 of IDOC[1] = 'US' and FIELD2 of IDOC[1] = 'GL'
    > FIELD1 of IDOC[2] = 'UK' and FIELD2 of IDOC[2] = 'EN'
    > FIELD1 of IDOC[3] = 'BR' and FIELD2 of IDOC[3] = 'CA' .
    >
    > Now none of the IDOCs in the input satisfy my requirement and hence the message mapping should not be called at all. But in my case its failing because FIELD1 of IDOC[1] and FIELD2 of IDOC[3] together are satisfying the condition and hence the message mapping is called.
    >
    > But I need to check this condition IDOCwise. Both the conditions to be satisfies in the same IDOC.
    >
    > I am thinking that contexts are not being taken care.. It just see the whole file together and not IDOCwise.
    >
    > Can someone help me on the same. Please let me know if more information is required.
    >
    > Thanks,
    > Shobha
    The ideal solution to your scenario is to redesign the interface as below;
    1. Receive the file.
    2. Do a 1: N mapping (this should split your message into multiple Messages)
    3. On this message you can do the required check. Now only the required field for the particular IDoc will be part of the check and it will not mix with other Idocs.
    Will this do? Else please provide more details

  • Content based routing in receiver determination.

    hi,
            how to do content based routing in receiver determination based on value of  of a variable of target structure?
    Miten.

    ths is what you are looking for
    /people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
    /people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers

  • Problem in receiver rule of configured receivers in receiver determination

    Hi, Experts!
    Can anyone please help me with an issue regarding the receiver determination part of IB? I currently have 2 different receiver rules, each having a different condition but under the same communication component. When I check the message status in the runtime workbench however, both rules are considered and thus 2 messages are sent instead of just 1 from the selection. Please help me send the message according to the selected interface. Thanks!

    Hi Brent,
    You may write the rule as follows:
    if (Receiver='CHDB') OR (Receiver='CIF') then send the incoming message to the relevant Receiver Business Component/System.
    You may use the X Path editor for configuring this rule in the Content based Receiver Determination of your scenario.
    I hope this will help.
    Regards, Gaurav

  • Parallel or sequential routing rule and recovery

    I'm trying to implement fault handling via fault policies for a composite, to get faults into the error hospital so recovery is possible.
    The fault I'm trying to catch is a service call from a mediator component, but for that to work I have to change the routing rule from sequential to parallel.
    So far no problem, it's working.
    There are a few synchronous services I want to be able to recover as well, but this is not supported:
    "parallel routing rules are not supported for Oracle Mediators with synchronous operations".
    Is there another way to get instances of synchronous services into the error hospital for recovery?

    Hi ,
    Check the below blog to set your conditions using condition and expression editor in your receiver determination
    /people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
    Let me know if you need any further clarifications on this.
    Thanks,
    Sekhar D

  • XPath Error in Receiver Determination

    Hi All,
    I hav an outbound message coming out of ERP (Non IDoc). I have to route the message based on the field DESTINATION in the message. The payload in the SXMB_MONI is as follows.
    <?xml version="1.0" encoding="utf-8" ?>
    <nr1:OLabelling_OB xmlns:nr1="http://cpe.com/cpe_ftp_wms/Labelling/OL">
    <Label>
      <b><DESTINATION>XXXX</DESTINATION></b>
      <PRPRORD>0001005683</PRPRORD>
    </Label>
    </nr1:OLabelling_OB>
    In the receiver determination, I hav chosen the XPath button and given the following value
    <b>/nr1:OLabelling_OB/Label/DESTINATION</b>.
    This doesn't work. i had also tried giving the namespace and the prefix as
    <b>nr1</b> <b>http://cpe.com/cpe_ftp_wms/Labelling/OL</b>. but that dint help either.
    If i remove the condition, then it is working fine.
    Any help in this regard?
    Thnx in Advance.
    Anil

    I had activated and checked......it was not getting displayed.......
    But i checked the xpath rules and used a work around solution for this. as per the xpath rules if i enter xpath as //DESTINATION, it picks up the DESTINATION field from anywhere in the document. and that worked.
    Thnx for ur help so far...
    anil

  • Receiver Determination

    Hi,
    We are running SAP PI 7.11.
    Input message:
    <?xml version="1.0" standalone="yes"?>
    <SITE_ERROR xmlns="http://test.com/SITE_Error">
      <ERROR_DATA>
        <ERROR_DATE>20110120</ERROR_DATE>
        <ERROR_TIME>060002</ERROR_TIME>
      </ERROR_DATA>
      <SITE_INFO>
        <SITEID>AZAZ</SITEID>
      </SITE_INFO>
      <ERRORS>
        <ERROR>Version 2.00</ERROR>
        <ERROR>Bla Bla 1</ERROR>
        <ERROR>Bla Bla 2</ERROR>
        <ERROR>Bla Bla 3</ERROR>
      </ERRORS>
    </SITE_ERROR>
    I require to route the message for delivery if a second node in XPATH /SITE_ERROR/ERRORS/ERROR occurs else it will not be delivered.
    It seems that receiver determination with a condition in the form of a XPATH expression should solve this problem as I would be able to determine if there is a second "ERROR" node and if there is then route it for delivery. However when the rule is not satisfied then for "If No Receivers Is Found, Process as follows:" rule I set "ignore".
    Please could you leant some assistance in constructing the XPATH expression? I have it down as:
    (/SITE_ERROR/ERRORS/ERROR[(2)] EX )
    Your assistance in this matter will be greatly valued.
    Regards
    Willie Hugo

    your Xpath condition seems fine as you have used EX in that it will check for existance of the field element and will route that interface to mentioed system..
    which is right.. but as you mentioed its not working I think there is possibility that its problem of cache ..
    just to rechcek..
    -- check Cache status..
    -- go to SXI_CACHE and check status for your receiver determination object..
    -- if everything is not green then try to activate receiver determination one more time.. just to be on safer side you can reactivate all ID side objects..
    then again check your scenario..
    this is about Xpath..and as you mentioed "If No Receivers Is Found" you have selected igonre then in this case it wll just ignore this message and will not show in SXMB_MONI also..
    here you can select alternate business system or for timebeing select same receiver system and check.. if it is working..
    it should work as your configuration looks fine..
    Thanks,
    Bhupesh

  • Routing Rule

    Hi,
    I have an idoc imported in XI.  It comes with standard message type while importing .
    I need to route this IDOC to two different systems.  But the problme is the Message type is different for both of this system, but the IDOC type is same.
    And the RCVPRN is also different.
    Isit possible to put in Routing rule as the IDOC message type can\t be changed.
    Regards,
    Anandh

    Hi,
    You need to use two seperate Message Mappings as while processing the IDOCs via receiver determination to receiver SAP system, it will check for the IDOC Metadata.
    If the IDOC metadata i.e including the Message Type for Basic IDOC Type will not be matched then that would create problem while processing the idoc.
    Even if the control records are manipulated as per the required Message Type and the RCVPRN, you need two different Mappings as well as seperate receiver determinations.
    Thanks
    Swarup

  • Business connector routing rule problem

    Hi All, I am currently working with BC 4.0 and trying to change the service via developer and I see the changes are not at all reflected when I execute it.
    Also, even though I do not have routing rule for executing a service from a RFC call, the old and hidden service is getting executed and do not know where the old service can be stored and how the routing rule is getting triggered even though i do not see in webconsole-->routing rule tab.
    I tried to reset the cache in developer and also in the server. But all I see is old service is getting executed with out routing rule and the code for old service.
    I would be greatful if someone can help me on this.

    HI,
    Once done modification need to active in change list window after that refresh cache it will reflect, generally it will take time to reflect due to server application burden.
    Most of the routing rules are mentioned in receiver determination condition window, check it once again.  It will solve

Maybe you are looking for

  • Problems with exporting keynote with other programs, devices.

    Recently purchased a mac, a few bells and whistles just due to the frustration of Microsoft. I've done a few things successfully with Keynote so I approach the heads of the global company I work for. (We don't use macs) and provide show a keynote pre

  • Size of plot legend graphics

    After trying to resize the plot legend of a waveform graph with the mouse, the small graphics showing the color and other plot properties suddenly got much longer, and the plot text was no longer left aligned. Tried to modify the legend programatical

  • Email configration error

    Problem facing with the external mail error was : Message cannot currently be transferred to node SMTP due to connection error system response : Message cannot currently be transferred to node SMTP due to connection error Message no. XS751 Diagnosis

  • Undo Tablespace Reuse

    Hi, I am using 10.2.0.3.0 on Oracle Solaris 5.10. I have an undo tablespace 'UNDOTBS1' which has 5 data files of sizes 60GB. Here are my undo parameters: SQL> show parameter undo NAME                                 TYPE        VALUE undo_management 

  • Freezing when saving to share drive.

    Hi everyone, I am posting here because I have been troubleshooting an issue for a couple weeks now with no resolution.  I had the CS4 design suite with Photoshop and Illustrator on a Windows 7 64bit computer and was having issues with Illustrator fre