on 06-09-2008 9:29 PM
What is the difference between Context object and X-path Expression. how we could add any complicated logics in receiver determination for e.g. I need to check the 1st 4 characters of a particular field and have to decide the receiver at runtime.
I can't do this with Context object and X-path expression
Hi,
Context objects are a simple alternative to XPath expressions for accessing the contents of a message.
If you needed Xpath expression in more than one condition, you would have to rewrite or copy it each time. Instead, you can assign a context object to the particular field
http://help.sap.com/saphelp_nw2004s/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/content.htm
You can route messages based upon any condition as long as that condition is valid in message mapping via enhanced Recv. determination.So in 1st maping you need to select the services based on 1st 4 chars of source field and then have to decied the further mappings
/people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16
Thanks
Swarup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
xpath is the complete path of any field of the message structure.
Context object is a shorter mode of referring to the xpath. This is used when the field is under a deep heirarchy.
U can create context objetc in IR and assign it to a particular field.
Conext Objects are nothing but a short way to reference XPATH.
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 conext object to refer to the XPATH.
Creating Conext Objects --> Quite Simple.
1. Create a new context object --> Right Click on Context Object --> New --> and then give the type of the conext element. Integer, char ,etc.
2. Now, go to the Message Interafce and you will find the column Context object . To the corresponding XML element , give your context object name
You can do it with Enhanced Receiver Determination.
Below are useful links.
Enhanced Receiver Determination
http://help.sap.com/saphelp_nw70/helpdata/en/43/a5f2066340332de10000000a11466f/frameset.htm
Enhanced (Mapping-Based) Interface Determination
http://help.sap.com/saphelp_nw70/helpdata/en/43/a5f2066340332de10000000a11466f/frameset.ht
Please reward points if it helps
Thanks
Vikranth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
how we could add any complicated logics in receiver determination for e.g. I need to check the 1st 4 characters of a particular field and have to decide the receiver at runtime.
Suppouse u have MT_XYZ
<MT_XYZ>
<NODELIST>
<NODE>ABCDEF</NODE>
</NODELIST>
</MT_XYZ>
u r x-path in receiver determination is as follows..
/p1:MT_XYZ/NODELIST\[substring(NODE,1,3)]="ABC"] EX
i.e. we are comparing first 3 fields if equals to "ABC" rote to particular receiver.
Regards,
Rao.Mallikarjuna
Edited by: Rao Mallikarjuna on Jun 10, 2008 4:22 AM
Edited by: Rao Mallikarjuna on Jun 10, 2008 4:22 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Hope you got the difference between Xpath and context objects now:
you can check this wiki also for enhanced receiver determination in the wiki section.
https://www.sdn.sap.com/irj/sdn/wiki
This could solve your problem.
Thanks
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey
you can do this via Enhanced receiver determination
Please search SDN for blog "Enhanced receiver determination"
Thanx
Aamir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.