on 09-07-2011 11:51 AM
HI All,
I am wondering if someone can please help me in Receiver Determination Condition.
I have a requirement in which I need to pick-up values from different Segment and Qualifier and based on that I need to send the data to correct receiver.
Requirement
I am using QCERT.QALITY02 iDoc and I need to check the following fields
if /QALITY02/IDOC/E1TXTH1/TDOBJECT = HTTP AND
/QALITY02/IDOC/E1TXTH1/E1TXTP1/TDLINE !='' AND
/QALITY02/IDOC/E1EDK02/QUALF != 45 AND
/QALITY02/IDOC/E1EDK02/BELNR != DE01 AND
/QALITY02/IDOC/E1ADRM1/E1ADRE1/EXTEND_D != 009835008
I used this condition but I am getting this error
<Trace level="2" type="T">Check conditions for rule line no. 3</Trace>
<Trace level="3" type="T">...call rule engine for Condition %CL_SAI_SWF_RULE_ENGINE.MSG_GET(MSG=&_MSG&;NSP=&_NSM&;XPATH="/QALITY02/IDOC/E1TXTH1/TDOBJECT")% CE HTTP and %CL_SAI_SWF_RULE_ENGINE.MSG_GET(MSG=&_MSG&;NSP=&_NSM&;XPATH="/QALITY02/IDOC/E1TXTH1/E1TXTP1/TDLINE!=''")% EX and %CL_SAI_SWF_RULE_ENGINE.MSG_GET(MSG=&_MSG&;NSP=&_NSM&;XPATH="/QALITY02/IDOC/E1ADRM1/E1ADRE1/EXTEND_D=0009835008")% EX</Trace>
<Trace level="2" type="T">......extracting (new) for Extractor: XP /QALITY02/IDOC/E1TXTH1/TDOBJECT</Trace>
<Trace level="2" type="T">......extracting values found: 1</Trace>
<Trace level="2" type="T">......extracting values found: 1</Trace>
<Trace level="2" type="T">......extracting (old) for Extractor: XP /QALITY02/IDOC/E1TXTH1/E1TXTP1/TDLINE!=''</Trace>
<Trace level="2" type="T">...invalid Receiver:
/QALITY02/IDOC/E1EDK02/QUALF = 45 is appearing in the 3 segment of E1EDK02.
Thanks,
Hi,
Check the multiline checkbox so that all occurrences of the segment are checked.
Also, for complex conditions, you can go for Xpath Expressions (option EX) which gives you more control over how you build the query.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you seen this link
http://help.sap.com/saphelp_nwpi71/helpdata/EN/44/15981541f7648ee10000000a1553f7/content.htm
Hi Iqbal,
When i need to write a complex expression in the condition, i take help of W3schools
http://www.w3schools.com/XPath/xpath_syntax.asp
regarding the position you can try.
/QALITY02/IDOC/E1EDK02[position() = 5]/QUALF != 45
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.