cancel
Showing results for 
Search instead for 
Did you mean: 

"Not Exists" Condition in Interface Determination

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I seem to have figured it out. The brackets are key, and do not show up in forum threads (instead they create a link).

(/CREMDM04/IDOC/E1LFA1M \[not(LIFNR)\] EX )

Edited by: Keith Wendel on Dec 2, 2008 3:11 PM