Hi,
I have a scenario where 1 source file will be containing multiple IDocs and based on certain conditions 5 different files should be created. I am using xpath to define these conditions in Interface Determination. Xpath is working for 4 files but it is not working for one particular file. It is creating this particular file even when the condition is not satisfied.
Xpath expression:
/ZLOIPRO03EXT/IDOC/E1AFKOL/E1JSTKL[STAT = "I0002" and (STAT != "I0009" or STAT != "I0010" or STAT != "I0012" or STAT != "I0074" or STAT != "I0076")]
File should be created if STAT has "I0002" and should not have any of "I0009", "I0010", "I0012", "I0074", "I0076".
Idoc segment structure is like:
<E1JSTKL SEGMENT="1">
<STAT>E0001</STAT>
<STSMA>Z0000006</STSMA>
</E1JSTKL>
<E1JSTKL SEGMENT="1">
<STAT>I0002</STAT>
</E1JSTKL>
<E1JSTKL SEGMENT="1">
<STAT>I0004</STAT>
</E1JSTKL>
<E1JSTKL SEGMENT="1">
<STAT>I0010</STAT>
</E1JSTKL>
<E1JSTKL SEGMENT="1">
<STAT>I0016</STAT>
</E1JSTKL>
<E1JSTKL SEGMENT="1">
<STAT>I0028</STAT>
</E1JSTKL>
<E1JSTKL SEGMENT="1">
<STAT>I0215</STAT>
</E1JSTKL>
<E1JSTKL SEGMENT="1">
<STAT>I0291</STAT>
</E1JSTKL>
<E1JSTKL SEGMENT="1">
<STAT>I0361</STAT>
</E1JSTKL>
Each IDoc in the file would have similar segment occurrence.
Would appreciate any help on this.
Thanks!