on 06-05-2006 10:23 AM
In Reference to forum thread :
Suppose I have MT as
MT_Pickfile
|_Header
|_Body
|_Trailer
And i need to check;
(field3 = "100" or field3 = "200" or field3 = "300" ) and(field5 = "AA" or field5 = "BB" or field5 = "CC")
field3 is in Header and field5 is in Body
I tried giving
/p1:MT_Pickfile/Header[(field3 = "100" or field3 = "200" or field3 = "300" )] and /p1:MT_Pickfile/Body[(field5 = "AA" or field5 = "BB" or field5 = "CC")] EX
It doesnt work. But then if both field3 and field5 are in Header then it works (as had been the case in the above mentioned thread which Stefan Grube replied to) i.e. to say
/p1:MT_Pickfile/Header[(field3 = "100" or field3 = "200" or field3 = "300" )] and [(field5 = "AA" or field5 = "BB" or field5 = "CC")] EX
Can anybody put in their suggestions ?
Thanx in Advance,
ShaBZ
Hi Shabarish,
It is not possible to have <i>and</i> or <i>or</i> outside the brackets <i>[]</i>.
Try following:
/p1:MT_Pickfile[(Header/field3 = "100" or Header/field3 = "200" or Header/field3 = "300" ) and Body/field5 = "AA" or Body/field5 = "BB" or Body/field5 = "CC")]
Another idea:
Write two lines in receiver determination (use insert expression):
1. line:
/p1:MT_Pickfile/Header[(field3 = "100" or field3 = "200" or field3 = "300" )]
2. line
/p1:MT_Pickfile/Body[(field5 = "AA" or field5 = "BB" or field5 = "CC")]
Hope that helps
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
when you used " field5 is in Body"
did all field5s (all in body) had the same value?
if not maybe try deselecting multiline check
in the condition editor for field5 and check then?
did you try that?
Regards,
michal
-
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shabarish,
Have u gone through Enhanced Receiver Determination feature in SP 16.It will be helpful when you want to do complex calculations on your conditions in receiver determination.
<a href="/people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16">/people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16</a>
Regards,
Sudharshan.
For XPATH rules check this links:
Here you find what to do for retrieving the first occurrence of the node.
To compare the field within the same parent node, it is better to do so:
/DEBMAS01/IDOC/E1KNA1M/E1KNVVM[(VKORG = "UA01" and VTWEG = "01" and SPART = "01")]
Regards
Stefan
From what is written in online help:
http://help.sap.com/saphelp_nw04/helpdata/en/ab/13bf7191e73a4fb3560e767a2525fd/frameset.htm
I would say: Yes, you have to check "multiline".
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.