cancel
Showing results for 
Search instead for 
Did you mean: 

Conditions in Receiver Determination

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

markangelo_dihiansan
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

hi, make sure the condition you add is with or and not with an and

look at the difference between clicking on th + button and on [] button

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

Not sure why this is not working. Can you try removing the * after the X?

Regards,

Mark

Former Member
0 Kudos

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

samiullah_qureshi
Active Contributor
0 Kudos

Since you have three receivers (say R1, R2, R3), you have to use three lines in Configured Receiver area of Receiver Determination

put the condition like

If starts with X*... then Receiver R1,

If starts with X*... then Receiver R2 and

if starts with Y*...then Receiver R3

madanmohan_agrawal
Contributor
0 Kudos

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

Answers (4)

Answers (4)

Former Member
0 Kudos

I have another condition to check here

former_member463616
Contributor
0 Kudos

Hi,

See the below link, it might be helpful to you.

http://wiki.sdn.sap.com/wiki/display/XI/XpathConditioninReceiverDetermination

Regards,

Rajesh

RKothari
Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Newa,

Ref: /people/daniel.graversen/blog/2006/12/29/hack-using-xpath-in-xi-message-mappings

Thanks,