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

Similar Messages

  • 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

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

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

  • 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

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

  • 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

  • Assign Context Object "ProcessStep" to BPE variable?

    Hi all!
    What exact information does the <b>standard Context Object "ProcessStep"</b> (which should be available in BPM as stated in help.sap.com) include? Is it the ID of the current Workflow-Item / the instance ID of the parent BP process ...?
    I can not test it - since assigning this context object to a simple container variable (string) in my BPM results in the error: <b>The Value of Expression '&<MessageVarName>.PROCESSSTEP&' Cannot Serve As the Source of an Assignment</b>
    during Runtime Activation in "SXI_CACHE" !!????
    Any idea how this "ProcessStep" Context object is correctly used?
    Many thanks in advance ...
    Best regards,
    Andy
    Message was edited by: Andreas Scherf

    Read the error message:
    jservlet2\jservlet2-examples\ch09\ConfirmBookingDetail.
    ava:16: elementAt(int) in java.util.Vector cannot be
    applied to (java.lang.String)
    timeslot=table.elementAt(req.getParameter("timeslot"))Your problem is that the elementAt function in Vector doesn't have a string parameter. I've highlighted the problem
    Timetable table=new Timetable();
    String timeslot=null;
    timeslot=table.elementAt(req.getParameter("timeslot")).
    oString();
    i got the error...
    C:\Downloads\java\jasonHunter
    toString();
    ^
    why is it so?

  • Container operation step in BPM using context object

    Hi all,
    in my BPM I have a send step using the file adapter. The file adapter builds a dynamic filename.
    Now I want to have the filename back into an acknowledgement. First, I need it in the container, right?
    So after the send step, I have a container operation step as follows:
    target: simple string
    mode: assign or append, doesn't matter
    expression: In expression editor, I select Interface variable 'message', then context object 'FileName' from namespace http://sap.com/xi/XISystem/File
    This should be the filename from the fileadapter, right?
    In SXI_Cache, I get return code 99:
    The Value of Expression '&MESSAGE.FILENAME&' Cannot Serve As the Source of an Assignment
    Why is there a context object, if you can' t use it??

    As far as I know, the filename in the Dynamic Header will be lost in when the message enters the BPM.
    As a work around, make a mapping at the Interface Determination level that reads the filename from the SOAP header and sets it into the payload which can be accessed inside the BPM.
    Reason the way I see this that the BPM does not store the filename is ,
    1. What if you have multiple receive steps in the BPM with a fork.
    2. How would the context object know which filename you want to read?
    The reason you see this in the context object is because all Context Objects are the info you get from the Adapter metadata.
    Regards
    Bhavesh

  • ESR Context Objects: using in ABAP or Java

    Hello, experts!
    Is it possible to use (get values of) Context Objects assigned to Service Interface in ABAP or Java?
    If it's possible, than how can we do that?
    BR,
    Vika

    Hello,
    Is it possible to use (get values of) Context Objects assigned to Service Interface in ABAP or Java?
    Context objects assigned to a service interface can't be retrieved via dynamic configuration hint: I tried it the hard way ;-). Not sure about ABAP, but the same could also be true. I think only the COs that came in with adapter metadata can be accessed(conf.get) and overwritten (conf.put).
    Corrections are welcome.
    Hope this helps,
    Mark

Maybe you are looking for

  • Letter of Credit Payables

    Hi Sap Gurus, I am trying to posting with f-40 for L.Cs its asking 001 segment is missing please give me reasonable solution. thanks and regards, Nagaraju.

  • Encoding problem with xml

    Hello, I'm trying to save on disk an xml with utf-8 codification and compressed with "gzip" algorithm. For some reasons, I have to use a BufferedWriter, then I must convert the byte[] to String. Afterwards, I read this document and I try to decompres

  • Firefox is not loading Youtube videos as of 3/17/11. I've seen other threads about this but none of the advice works for me.

    I have been seeing this problem in a LOT of forums from Youtube forums to these forums to Flash forums and on. Just recently, in the last couple of weeks, I can hear Youtube videos but not see them. Any suggestions!? This is truly annoying.

  • How do I connect a PowerBook G4 to the internet?

    I have a 2003 Powerbook G4 with OSX 10.2.3 Jaguar, 1GHz, 867 MHz. In the past I have upgraded the OSX to 10.4 but I have recently done an erase and reinstall from the original CD. I now want to connect to the internet. The machine recognises my ISP r

  • CS4 & CS5 legal usage?

    This may be a really stupid question, but I'm not a lawyer and only have a rough sense of e CS EULA.  How can I use the legally purchased, licensed versions of CS? Can I install on multiple computers and use simultaneously? Can I install at home and