on 03-04-2011 9:12 AM
Hi,
I have a requirement where condition to be checked in receiver determination is a field whose value starts with X.......
I tried giving X * in condition editor but its not working, please suggest me as what possibly could be done.
Thanks
Hello,
In your xPath condition, try using the approximately(wavy) equals sign as your operator instead of the equal sign and then provide X* to your right condition.
Hope this helps,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mark,
I tried as you have suggested and it worked fine but I have another condition to check like.
If starts with X*... message goes to two receivers
if starts with Y* messgage goto another receiver..
I gave these two conditions as you have suggested but got error while testing.. as"No receiver could be determined"
Thanks
Newa
HI Newa,
Condition Based Routing: By Two ways
1. XPATH Way:
You can create two rules for this condition based routing.
First condition where Receiver Determination sends to two receivers if the field value data is <code> u2248X* <code>.
Second Condition (if its not in conjunction or intersection with first condition) <code> u2248Y* <code>.
If these conditions are to be put together then you have to use "AND", "OR" conditions in the same receiver rule.
2. Context Object Way:
If you are facing problem with XPATH try preferring Context Object if your interface is stateless(XI Compatible) and assign the condition the same way.
Regards,
Nipun
Hi Newa,
is not requied after X.
f starts with X*... message goes to two receivers
if starts with Y* messgage goto another receiver..
I gave these two conditions as you have suggested but got error while testing.. as"No receiver could be determined"
In your xPath condition, use ~ X (~ = equivalent operator).
is not requied after X.
It will start working with out any error.
Thanks,
Madan Agrawal
I have another condition to check here
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
See the below link, it might be helpful to you.
http://wiki.sdn.sap.com/wiki/display/XI/XpathConditioninReceiverDetermination
Regards,
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try using XPATH expression like below:
(/MT_Data/Field1[(substring(.,1,1) = 'X')] EX )
/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
Edited by: Rahul Kothari on Mar 4, 2011 2:52 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Newa,
Ref: /people/daniel.graversen/blog/2006/12/29/hack-using-xpath-in-xi-message-mappings
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.