Skip to Content
0
Former Member
Dec 02, 2008 at 09:04 PM

"Not Exists" Condition in Interface Determination

327 Views

I have been using the recommendation in a couple threads and the xpath reference at w3schools, but cannot get my "node not exists" xpath condition to work.

My source is a CREMDM idoc and I want to condition in the Interface Determination on the LIFNR field existing in the source idoc. I also have a condition for when the LIFNR exists (and uses different interface mapping).

One of the threads I noticed mentioned the following...

2.If you want both in xpath condition then use below xpath condition.
/p1:ABC Parent structure/ First child structure XYZ not(NodeF)-Node does not exit

No matter how I attempt to write the xpath, I have not been able to get it to work. My test file without a LIFNR keeps failing because it cannot find an interface to use.

Can anyone advise on what I am missing?

CREMDM04/IDOC/E1LFA1M not(LIFNR) EX )

CREMDM04/IDOC not(/E1LFA1M/LIFNR/) EX )

not(CREMDM04/IDOC/E1LFA1M/LIFNR) EX )

[and many more variations that are not working]

Thank you.

Keith