cancel
Showing results for 
Search instead for 
Did you mean: 

How to use both "AND" and "OR" in the condition editor in NWDS (SAP PO 7.4)

former_member230666
Participant

Dear SAP PO Experts,

I have a requirement to add in a condition to send this XML file to a correct receiver location based on condition given in the below. I tried to use the "EXIST" in the condition editor but it would not work. Can you please advise me?

Steps taken:
(EXISTS(Xpath./ZMM_WAFERINFO/IDOC/Z1MMWMAHEAD/Z1MMWMAITEM/[STORAGE_LOCATION != "WW01" AND (MATERIAL != "1111" OR MATERIAL != "2222")]))

Requirement:
If storage location <> "WW01" and (material <> "1111" or material <> "2222") then send the XML file to business system "A".

Regards,
Shawn

Accepted Solutions (0)

Answers (1)

Answers (1)

JaySchwendemann
Active Contributor
0 Kudos

This is (was at least the last time I tried, about a year ago) a limitation of NWDS. You could use Swing Tools (however then you would not be able to re-edit this stuff with NWDS later on) or you could use this dirty hack of mine:

Go to the condition editor and click on "Create Xpath containing whitespaces". There you can enter a valid xPath expression.

By the way, "AND" or "OR" would not be the reason this fails, they work quite nicely AFAIK. Exists is more likely "your problem"

Cheers

Jens