Context object in xpath under reciver determination

hi all.
iam new to xi.
i just want to know what is the need of context object in xpath under reciever determination.
i tried a lot for understanding this context object but no way.
can any body expalin briefly.
waiting for ur great answer.
bye.
regards.
seeta ram.

suppose say you have a particular field in an xml and the xpath for the same is;
root/seg1/seg2/seg3/seg4/seg5/seg6/seg7/seg8/field, so instead of always using the whole xpath you can store it as a context object. It is like a variable say fieldcontextobject = root/seg1/seg2/seg3/seg4/seg5/seg6/seg7/seg8/field and in further development u can just ref. fieldcontextobject instead of the whole xml !!!!
http://help.sap.com/saphelp_nw04/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/content.htm
More on Xpath:
/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

Similar Messages

  • Context Object for IDOC in Receiver Determination

    hi,
    I am trying to filter the receivers based on the vendor values in IDOC ORDERS using Context Object.
    I don't see the vendor field where i could filter the value.
    Any ideas would be greatful.
    Thanks,
    Tirumal

    hi,
    Conditional Receiver determaintion is possible only on the Source Message. the reason being that the integration engine will first execute receiver determiantion--> interface determiantion --> message mapping.
    If you are getting the IDOC as a source, then you can use the XPATH to do conditional receiver determination.
    Regards,
    Bhavesh

  • Context object in Receiver Determination

    Hi,
    I am trying to use context object in receiver determination for routing messages to different receivers. From help document , I know that certain context objects are already present. Can we create our own context object in ESR and how?
    I am using PI7.1
    Thanks,
    Neelansha

    Hi Neelansha,
    You can create a context object for only a request message(source), i.e, if you have a very deep nested structure then
    you can use context objects which contains the XPath expression of your request message.
    Can we create our own context object in ESR and how
    For steps to  create- go to  context object - create new-->select type (int,string..)-
    go to your   source Service  interface-click on context obj tab-select the element to which you want to assign the context obj  name
    refer activities mentioned in this help link
    http://help.sap.com/saphelp_nw04/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/frameset.htm
    /people/prasadbabu.nemalikanti3/blog/2006/09/20/receiver-determination-based-on-the-payload-of-input-dataextended-xpathcontext-object
    please note that you have to choose interface pattern as  Stateless (XI 3.0 Compatible) ,otherwise you will not be able to see the context object in Receiver determination editor.
    I found the  standard  context objects  very useful and i think we can  sometimes avoid using the dynamic configuration
    i have used the file name  context object  in  expression editor in receiver determination to create a condition for routing the messages to two different Business services.
    Regards,
    Srinivas

  • 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!

  • What is context objects and how we can use it Receiver Determination

    hi,
    i have situation here a idoc is triggered into the xi and i need to use the conditions in the receiverdetermination in that condition i need to use  context object how i can use it? and what is the difference it makes and why i need to use it?
    thanks in advance
    Amaresh

    HI,
    Context objects are alternative to XPATH expressions. It is like macros in other programming langugage. If you define this , you can use this object in the receiver determination while doing conditional receiver determination
    For more-
    http://help.sap.com/saphelp_nw2004s/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/content.htm
    /people/prasadbabu.nemalikanti3/blog/2006/09/20/receiver-determination-based-on-the-payload-of-input-dataextended-xpathcontext-object
    Regards,
    Moorthy

  • Xpath & context object

    can u tell me with an example what is xpath & context object and where do we use this

    Hi Sandeep,
    Xpath abd Context Object can be  used in Interface Determination(Configuration Object).
    Consider a scenario(FILE>PI>RFC) where you have a source structure as
    Field1
    Field2
    you have two target RFC's to be called based on a condition,
    RFC1 needs to be called if field1 is '1'
    RFC 2 needs to be called if field1 is '2'
    In this case you would be creating two message mapping and corresponding Operation Mapping(Source->RFC1 &         Source->RF2)
    In the Configuration part , in Interface determination you would specify both the operation mapping. Over here you can define the condition, you can use Xpath or ContextObject for this.
    I hope you are clear now what an Xpath and Context Object is how how to use it.This is just a samll example.For detailed study please go through,
    http://help.sap.com/saphelp_nw04/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/frameset.htm
    Provide points if useful!
    Regards,
    Venu

  • Xpath and context objects

    hi expects,
        what is difference between xpath and context objects?

    Rohit,
    Check this thread for bhavesh reply for this:
    Context object
    ---Satish

  • Context object not visible in configuration (for receiver determination)

    Hi,
    I've created a context object and depending on that I want to forward the message to a specific receiver. But when in that pop-up window for the receiver determination I cannot find the context object. I can only find the technical context objects defined by SAP.
    Do you have a solution for that?
    Regards
    Volker

    Hi Volker,
    you can solve your task by using a <a href="/people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16 Receiver Determination</a>
    Regards,
    Udo

  • Context Object not found in Integration Directory

    Hi experts,
    I am trying to do a content based routing scenario using BPM.
    The Scenario is
    ASYNC -> SYNC -> ASYNC
    The synchronous step here refers to a rfc call. The response from this determines the ASYNC systems to which data should be sent.
    I have declared container objects REQ and RESP accordingly in the BPM. Also have a Context object for the response.
    My issue is, while doing receiver determination, I am unable to find neither RESP message type ( for XPATH ) nor a context object declared in ESR for creating an expression.
    Could someone please help/guide me to resolve this.
    Please let me know if I was not clear.
    Thank you.

    Hi,
    I am on 7.11.
    The problem I am facing is that I am unable to find the corresponding structure to be used for XPATH.
    As mentioned, the scenario is
    ASYNC -> SYNC -> ASYNC's.
    I have two container variables : REq and RESP. RESP is populated after the SYNC call. The message type for the subsequent ASYNC is REQ ( step description ).
    So when I do receiver determination for ASYNC, I am able to see only REQ message type for building the expression. ( Obvious )
    But I would need RESP to build it.
    Please advise.

  • Context object

    Hello,
                 What is context object ? where this will be used?
                                                                              shyam

    Hi Shyam,
    when you have a deep nested XPATH, and you need to use it in multiple locations it can become tricky and so in your IR you create a context object to refer to the XPATH.
    Note: For example, you have 2 receivers (receiver1 and receiver2). You need to choose the receiver based on the vale present in any source node. Then you can use context object to choose the receiver dynamically at run time.
    Create a context object in IR and assign it to an outbound interface.
    In ID, while creating Receiver Determination, in condition editor you can specify the conditions….. like multiple receivers you have to specify.
    Creating Context Objects --> Quite Simple.
    1. Create a new context object --> Right Click on Context Object --> New --> and then give the type of the context element. Integer, char ,etc.
    2. Now, go to the Message Interface and you will find the column Context object. To the corresponding XML element, give your context object name
    Comparison between XPath and Context Object
    XPath     
    /InvoiceOut/customerData/address/postalCode = “69120”
    Context Object
    postalCode = “69120”
    Regards,
    Ramana.

  • Reg:Xpath in receiver determination

    Hello,
    My message strcture looks like below.
    Record
    Level1
    item
    field1
    Level2
    item
    field2
    Level3
    item
    field3
    There can be multiple items for each level.
    Here goes my condition.
    I have to send the message to the receiver system "A" only when filed2 value is same across all items under level2 i.e. if there are three items under level2, then field2 should have the same value  across the items.
    Can you please let me know how do we impliment this in the reciver determination step using xpath?
    Regards,
    Rahul

    Rahul,
    Your scenario can be achieved using Enhanced Receiver Determination. Using Xpath in Receiver Determination might become complex for your condition.
    Refer below links for Enhanced Receiver Determination.
    http://help.sap.com/saphelp_nw04/helpdata/en/43/a5f2066340332de10000000a11466f/frameset.htm
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3343
    Regards,
    Geetha

  • XPATH in receiver determination

    Hi,
    We need to dynamically determine the receiver service based on the payload.
    In the extended service editor we have succesfully used a simple XPATH expression to point out a specific field of the payload (just like using af context object) containing the service name.
    However, in most cases the service name is a substring of a field of the payload and furthermore a constant is to be added to give the full service name. We have tried to solve this problem using the XPATH functions 'concat', 'string' and 'substring'. But as soon as we add just the simplest function to the XPATH expression, the receiver determination fails (unable to process the XPATH).
    We have tested the XPATH with the actual message using XML Spy, and it works well.
    The XPATH expression is: "concat('SAPR3_', substring(string(/p1:receipt/p1:identity), 2, 5))"
    Any hints?
    Regards
    Lars

    Hi Lars,
    I just noticed, that you are talking about extended Service Editor - not a Condition - so my answer above is obviously rubbish.
    What remains true is that the XPath you use has to result in a node, than the nodes string is taken as a service.
    So I am afraid there is no easy solution for your problem...
    If you do not have too many receivers and this list is rather static, you could of course use conditions in the receiver determination - something like:
    receiver service = SAPR3_b if /.../ = abc
    but this is of course not really applicable if the list of possible receivers gets too long.
    Another possibility would be to use the substring as a receiver within the configuration. So take it from the payload in the receiver determination and use this 'service' for interface determination and receiver agreement.
    Than, within the receiver agreement you can exchange this name by the 'real' name in the header mapping (which is performed as the very last step in the pipeline). Since you have a receiver agreement per receiver anyway, you would not have to create additional configuration objects. The downfall is of course, that to 'read' the configuration (or the message monitoring) one has to know about this mapping trick...

  • Context object problem

    hi,
    i have created a context object of type xsd:string and have assigned to a Message interface and have activated the change list.
    In Integration directory when i am configuring the receiver determination i wanted to specify a condition.
    i cannot see the context object in my condition editor. my sender is a business system with an SLD entry.
    but if i use my sender as a business service i can see the context object.
    my question is why cannot i see the context object when the sender is a business system.
    appreciate ur response
    thanks

    Hi.
    I'm having the same problem.
    Mi sender is a business system with a ZBAPI. R3->XI (BPM)
    I've created a context object and assigned to a field of ZBAPI.
    When i create the receiver determination, as sender i put the R3, with the ZBAPI and as receiver, i've got a BPM. When i try to set the condition, i cannot see the context object neither ZBAPI in Xpath.
    I have only one software component and i would like to use this context objet in order to set the BPM that will continue the process.
    Thanks.

  • What is Context object?

    Hi,
    any one help me out what is context object.
    thaks

    Hi,
    check this links
    http://help.sap.com/saphelp_nw04/helpdata/en/ab/13bf7191e73a4fb3560e767a2525fd/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/6e/ff0bf75772457b863ef5d99bc92404/content.htm
    Property File: A Smart use in XI context.
    Receiver Determination based on the payload of input data.(Extended-->xpath,Context Object)
    Regards,
    Surya

  • Diff between context object and x path

    hi gurus,
      what is difference between context object and x path?

    Hi rohit,
    If u have multiple receiver system then to determine the reciever u can use context object.....
    Context objects are alternative to XPATH expressions. It is like macros in other programming langugage. If you define this , you can use this object in the receiver determination while doing conditional receiver determination
    To better idea see the blog...
    /people/prasadbabu.nemalikanti3/blog/2006/09/20/receiver-determination-based-on-the-payload-of-input-dataextended-xpathcontext-object
    Check out these also...
    http://help.sap.com/saphelp_nw2004s/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/content.htm
    /people/prasadbabu.nemalikanti3/blog/2006/09/20/receiver-determination-based-on-the-payload-of-input-dataextended-xpathcontext-object
    Here is a scenario where context objects were used for BPM
    Technical Context Object in ccBPM
    Get the details here:
    http://help.sap.com/saphelp_nw04/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/frameset.htm
    Technical Context Objects :
    http://help.sap.com/saphelp_nw04/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/frameset.htm
    A list of the Technical Context Objects names can be found here:
    http://help.sap.com/saphelp_nw04/helpdata/en/6e/ff0bf75772457b863ef5d99bc92404/content.htm
    XPath to show the path (Multiple Receivers)
    /people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers
    Customize your 'XPATH' Expressions in Receiver Determination
    /people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
    regards
    biplab
    Use a Good Subject Line, One Question Per Posting - Award Points

Maybe you are looking for

  • Viewsonic VG2030wm not detected on DVI

    Hello, I got a MacBook Pro 13' and purchased at the same time a Mini DisplayPort to DVI Adapter to use with my ViewSonic VG2030wm. To my surprise, when I connected the monitor absolutely nothing happened, it goes completely undetected. The monitor wo

  • Moving contents from old iPod to new iPod

    I would like to shift all the contents on my old 30g iPod over to the new 160g I just bought. I haven't kept everything on my iTunes library, so is there a really simple way to do this without losing things? Any help would be appreciated.

  • How to make a field conditional Read Only

    Hi, There is a "Close date" field. I need to check if the date today, and the "Close date" falls in the same quarter. If it does, then, a particular field has to be made editable otherwise not. (Better, if it could be done by using business component

  • Aggregate table

    Hi ! I have a problem when I try to use the aggregate wizard, but only with some dimension tables. This is the error message given by Job Manager : Processed: 1 queries Encountered 1 errors [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general erro

  • Java runtime hangs - need help!

    I have a batch process that is getting totally hung up. Not sure if it is an application problem or a JVM problem. Here is the dump of the threads: Can anyone help me interpret this??? This runs on Solaris 8. Full thread dump Java HotSpot(TM) Client