Skip to Content
0
Former Member
Mar 05, 2009 at 07:17 PM

Receiver Determination Condition Editor - How to base xpath on index

175 Views

Say source message is an IDOC which has the E1EDK14 segment repeated:

example:

E1EDK14-QUALF=006

E1EDK14-ORGID=01

E1EDK14-QUALF=007

E1EDK14-ORGID=02

I need to route this to System1 if ORGID=01 where corresponding QUALF=006 and System2 if ORGID=02 where corresponding QUALF=006.

Regular condition as follows does not work because it does not take into account that the two fields should be on the same index. Following routes it to both because ORGID=02 exists as well when QUALF=006 though on different index.

(/INVOIC02/IDOC/E1EDK14/QUALF = 006 AND /INVOIC02/IDOC/E1EDK14/ORGID = 01) - System1

(/INVOIC02/IDOC/E1EDK14/QUALF = 006 AND /INVOIC02/IDOC/E1EDK14/ORGID = 02) - System2

How to incorporate the index in the condition so that above logic goes to a particular system when the corresponding QUALF and ORGID on same index (or node occurence) only satisfies?