cancel
Showing results for 
Search instead for 
Did you mean: 

Condition Editor

Former Member
0 Kudos

Hi,

I need to put a condition in the receviver determination like below,

( WERKS = 1000 or WERKS = 1000 or WERKS = 1000) and

( BWART <> 101 or BWART <> 102 or BWART <> 103 or BWART <> 104 ) and

( KZBEW <> B) and

( KZVBR <> a or KZVBR <> b or KZVBR <> c or KZVBR <> d)

please help me out how to put this condition in condition editor of receiver determination.

Thanks in advance.

-srikanth.

Accepted Solutions (0)

Answers (1)

Answers (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

use xpatch expressions

/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination

Regards,

michal

Former Member
0 Kudos

Hi Michal,

I am putting condition on an IDoc,

<?xml version="1.0" encoding="UTF-8" ?>

- <ZWMMBID01>

- <IDOC BEGIN="1">

- <EDI_DC40 SEGMENT="1">

<TABNAM>EDI_DC40</TABNAM>

<MANDT>110</MANDT>

<DOCNUM>0000000000555552</DOCNUM>

<DOCREL>700</DOCREL>

<STATUS>30</STATUS>

<DIRECT>1</DIRECT>

<OUTMOD>2</OUTMOD>

<IDOCTYP>ZWMMBID01</IDOCTYP>

<MESTYP>ZWMMBXY</MESTYP>

<STDMES>ZWMMBX</STDMES>

<SNDPOR>SAPERD</SNDPOR>

<SNDPRT>LS</SNDPRT>

<SNDPRN>ERD110</SNDPRN>

<RCVPOR>EXD001</RCVPOR>

<RCVPRT>LS</RCVPRT>

<RCVPFC>LS</RCVPFC>

<RCVPRN>EXD001</RCVPRN>

<CREDAT>20070604</CREDAT>

<CRETIM>145643</CRETIM>

<SERIAL>20070529143309</SERIAL>

</EDI_DC40>

- <ZE1MBXYH SEGMENT="1">

<MBLNR>4900000136</MBLNR>

<MJAHR>2007</MJAHR>

<BLDAT>20070529</BLDAT>

<BUDAT>20070529</BUDAT>

- <ZE1MBXYI SEGMENT="1">

<MATNR>000000000000003801</MATNR>

<WERKS>RU21</WERKS>

<LGORT>1000</LGORT>

<CHARG>G030545500</CHARG>

<BWART>601</BWART>

<WAERS>UAH</WAERS>

<ERFMG>1.000</ERFMG>

<ERFME>PC</ERFME>

<EBELP>00000</EBELP>

<UMMAT>000000000000003801</UMMAT>

<UMWRK>UA01</UMWRK>

<UMLGO>1020</UMLGO>

<UMCHA>G030545500</UMCHA>

<SJAHR>0000</SJAHR>

<SMBLP>0000</SMBLP>

<ZEILE>0001</ZEILE>

<MENGE_BT>0.000</MENGE_BT>

<DMBTR_1>5.00</DMBTR_1>

</ZE1MBXYI>

</ZE1MBXYH>

</IDOC>

</ZWMMBID01>

i am giving the condition as

/p1:ZWMMBID01/IDOC/ZE1MBXYH[(ZE1MBXYI/WERKS = "RU21" or ZE1MBXYI/WERKS = "RU22" or ZE1MBXYI/WERKS = "RU35") and (ZE1MBXYI/BWART != "601" and ZE1MBXYI/BWART != "602" and ZE1MBXYI/BWART != "631" and ZE1MBXYI/BWART != "632" and ZE1MBXYI/BWART != "653" and ZE1MBXYI/BWART != "654" and ZE1MBXYI/BWART != "657" and ZE1MBXYI/BWART != "658") and (ZE1MBXYI/KZBEW != "B") and (ZE1MBXYI/KZVBR != "V" and ZE1MBXYI/KZVBR != "A" and ZE1MBXYI/KZVBR != "E" and ZE1MBXYI/KZVBR != "P")]

and p1 is urn:sap-com:document:sap:idoc:messages

but still its not working. correct me if i am wrong.

thanks in advance.

-srikanth.

prabhu_s2
Active Contributor
0 Kudos

check by not givin double quotes for the field data......still if it is not working then check with ur payload if the condition is satifying