Skip to Content

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 04, 2017 at 04:37 PM

    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

    Add comment
    10|10000 characters needed characters exceeded