Skip to Content
1

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

Oct 01, 2017 at 11:58 AM

69

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Jens Schwendemann Oct 04, 2017 at 04:37 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded