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

Similar Messages

  • 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

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

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

  • 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

  • Regarding mandatory fields, Context Objects and Fault Message Types

    Hi All,
    1) I am creating a structure with fields "Name", "Street" and "City". While creation i want to make "Name" fields as mandatory. Is it possible. If so how to achieve this.
    2) What is the purpose of Context Object and in which situation we will use this.
    3) What is the purpose of Fault Message Types and in which situation we will use this.
    4) I am doing file to file scenario, at sender side i have set the adapter as file and transport protocol as "FTP" . It is asking for "Server", "PORT" and "Login Details". What is this FTP, for this do i need to take any login details. I am totally not aware of FTP, could please explain more about this.
    Kindly look into the above points and respond point by point.
    Thanks in advance.
    Regards,
    Prem.S

    Hi prem,
    <b>1) I am creating a structure with fields "Name", "Street" and "City". While creation i want to make "Name" fields as mandatory. Is it possible. If so how to achieve this.</b>
    give occurence 1..unbounded. for the field name.
    <b>2) What is the purpose of Context Object and in which situation we will use this.</b>
    If u have multiple receiver system then to determine the reciever u can use context object.....
    the alternative of context objetc is X-Path...
    Check out these
    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
    Difference between context object and x-path:
    diff between context object and x path
    <b>3) What is the purpose of Fault Message Types and in which situation we will use this</b>
    whenever u want to catch some exception u can use fault message types.Just for a example u r sending some data to SAP system.But due to some reason the R/3 system is down.so in this case if u have implemented fault message ..u can get a error message specifying r/3 is down....
    Fault message implementation.
    /people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1
    How to Guide
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40574601-ec97-2910-3cba-a0fdc10f4dce
    <b>4) I am doing file to file scenario, at sender side i have set the adapter as file and transport protocol as "FTP" . It is asking for "Server", "PORT" and "Login Details". What is this FTP, for this do i need to take any login details. I am totally not aware of FTP, could please explain more about this.</b>
    there are two transport protocol for File adapter
    1)FTP(File transfer protocol)
    to know abt FTP check here
    http://help.sap.com/saphelp_nw04/helpdata/en/43/0e16bfd7b021aee10000000a1553f6/content.htm
    2)NFS(Network File System)
    in server :Enter the host name or IP address of the FTP server.
    in PORT:Specify the port number of the FTP server.
                 The default is the standard port for the FTP server (21)
    check here
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
    Regards
    BILL
    <b>***reward with points if ity helps u!!</b>

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

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

  • 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

  • Jndi and serializable objects

    Hi,
    I am attempting to create a cache on the web server to store
    frequently accessed reference data. I do so by running a series of
    queries in a startup class. The data retrieved from the result set of
    each query is stored in a custom class and bound to the server context.
    My understanding is that when serializable objects are bound, they are
    written to disk (so as not.to waste valuable Heap space I assume). As a
    test I made the startup query return a large amount of data and I
    expected to see the amount of free disk space decrease as the objects
    were bound however I did not see this occurring. I examined the memory
    usage of the java process with the NT task manager, and the memory usage
    was increasing pretty dramatically as the query results were performed
    and new objects created to store this data.
    Based on these observations I assume that the objects I created and
    bound are stored in the Java Heap and not written to disk. Would
    Weblogic at some point write these to disk if memory became tight or is
    my understanding that binding an object serializes it incorrect?
    If it turns out that what I am attempting here consumes a lot of heap
    space, I assume that server performance will suffer which is
    unacceptable. Would using read-only entity beans be a better solution?
    The container could manage this memory more effectively but it would
    seem to add a lot of overhead for a simple read only data cache.
    Thanks,
    Steve Snodgrass

    We never write jndi data to the disk. So if you add more objects your are
    going to take up more heap space. You should be looking at other
    alternatives to implement this.
    -- Prasad
    Steve Snodgrass wrote:
    Hi,
    I am attempting to create a cache on the web server to store
    frequently accessed reference data. I do so by running a series of
    queries in a startup class. The data retrieved from the result set of
    each query is stored in a custom class and bound to the server context.
    My understanding is that when serializable objects are bound, they are
    written to disk (so as not.to waste valuable Heap space I assume). As a
    test I made the startup query return a large amount of data and I
    expected to see the amount of free disk space decrease as the objects
    were bound however I did not see this occurring. I examined the memory
    usage of the java process with the NT task manager, and the memory usage
    was increasing pretty dramatically as the query results were performed
    and new objects created to store this data.
    Based on these observations I assume that the objects I created and
    bound are stored in the Java Heap and not written to disk. Would
    Weblogic at some point write these to disk if memory became tight or is
    my understanding that binding an object serializes it incorrect?
    If it turns out that what I am attempting here consumes a lot of heap
    space, I assume that server performance will suffer which is
    unacceptable. Would using read-only entity beans be a better solution?
    The container could manage this memory more effectively but it would
    seem to add a lot of overhead for a simple read only data cache.
    Thanks,
    Steve Snodgrass

  • Dynamic Configuration of custom Context Objects: is it possible?

    Guys,
    is it possible to use Dynamic Configuration for custom Context Objects as we normally do to technical context objects?
    Also, is it possible to use a context object in receiver determination, even if it is not assigned to a message interface?
    My case: I need to use condition at receiver determination but I dont want to read a field from payload. Instead, I want to write that context object with dynamic configuration and use it at receiver determination runtime.
    I want to do this in order to avoid having to extend the payload's message type because of this extra field for condition (actually, its not that I dont want to, its that I cant. The message type is defined by 3rd party and cant be changed). If it is possible to keep that information at header instead of payload, it'd be great.
    Kind regards and thanks in advance,
    Henrique.

    Hi,
    >>>>>Just a last comment: do you need to deploy any code for the adapter on SDM or just the "fake adapter metadata file" is enough?
    no SDM
    just the metadata file as per my blog
    glad this is what you wanted
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Maybe you are looking for

  • CREATE A PARAMETER IN SSRS

    i AM TO CREAT A PARAMETER FROM THE ANALYSIS DATABASE BUT APPARENTLY THERE ARE NO VALUES IN THE DIMENSIONN MEMBER BELOW IS THE LOGIC THAT WAS USED WHEN LOADING THE DATA INTO THE DATAWAREHOUSE. 1)  Each transaction in the audit trail is matched with a

  • Duplicate R/3 custom requirement in IPC  -- z table and comm. structure

    Dom, The ZSITCATPRI has composit key of: MANDT, VKORG, MTPOS, KSCHL, PSTYV, KOBED.  So the condition Type is part of the primary key.  The records in ZSITCATPRI table has KOBED=000 (no requirement), 002 or 022 (standard SAP requirement, I see them in

  • Adobe Suite will not run with most recent Java after I have installed Yosemite

    I have updated to Yosemite for my Mac, when trying to open Adobe Photoshop it prompted me to install Java 6, which I installed, then Java said to update to 8, which I did. My photoshop and other adobe suite programs still will not open (except Bridge

  • Risk Management in PS

    Hi everyone! Does anyone know if the there's any functionality in SAP to handle Risk Management? What the client needs to know is if SAP has any available tool to manage risks in project. When they are building up the solution for a client, they cons

  • [new] konq_quickfiler - A hidden feature in KDE 3.4

    I've only recently become aware of this: http://www.kde-apps.org/content/show.php?content=22720 Just a couple of configuration files which enables viewing files/directories through a filter (such as in KMail's message filter field). I've packaged it