cancel
Showing results for 
Search instead for 
Did you mean: 

Condition in receiver determination

0 Kudos

Hi,

In a file to idoc scenario, i want to make a condition in receiver determination like this:

if /MT_MESSAGE/lin/field1 = /MT_MESSAGE/lin/field2 --> interface

I think xpath is necessary but i'm not sure how to do it.

Any help, please?

Carme

Accepted Solutions (1)

Accepted Solutions (1)

former_member200962
Active Contributor
0 Kudos

Referring this blog /people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination you can try with this condition:

Left operand -->

/MT_MESSAGE/lin[(field1=field2)]

Middle Operand --> EX

Let me know if this works...

Regards,

Abhishek.

0 Kudos

You are right, Abhishek.

Only one more question.... how can i control that /MT_MESSAGE/lin/field2 has not a null value ("")?

Thanks,

Carme

former_member187339
Active Contributor
0 Kudos

Hello,

Try giveing condition like this:

(/MT_MESSAGE/lin[(field1=field2)] EX and

[/MT_MESSAGE/lin/field <> '' or

/MT_MESSAGE/lin/field EX]

PS: <> = not equal symbol shoudl be selected in the condition editor

Regards

Suraj

Answers (2)

Answers (2)

prateek
Active Contributor
0 Kudos

Duplicate..

prateek
Active Contributor
0 Kudos

Usually such requirements are fulfilled using Enhanced Receiver Determination. The condition you require could be maintained in the mapping with ReceiverDetermination interface.

/people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16

Regards,

Prateek