cancel
Showing results for 
Search instead for 
Did you mean: 

Receiver Determination Condition Editor - How to base xpath on index

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

This has to work (this is the syntax)

/INVOIC02/IDOC/E1EDK14<QUALF = 006>/ORGID = 01 (or any value)

the < angular brackets > have to be considered as square bracktes [ ]

the editor does not represent sqaure brackets correctly in the code above

other additional info for trials

you can try giving single quotes etc (like '006')

first make it work for a direct condition, then try the above with similar syntax

Regards

Vishnu

Former Member
0 Kudos

thanks, it works. points awarded.

Answers (0)