on 11-12-2009 11:50 AM
Hello All,
I should NOT pass the interface when Field1 contains abc in the entire string:
IDOC
--
---
---Field1
---
/IDOC
Incomming data of this field would be uuuabcpppp or eeeeabcooooo so to day it can be abc if it is the case I should fail this itnerface.
Any inputs?
Thanks
Rajeev
Hi ,
There are two options to do this
1) Put a condition on Target element header note which will be created only if the Field1 value is other than abc
In this case the message will go into red status
2) In receiver determination put a condition if field1 value is abc the pass it to a dummy service.
If you give a dummy file adapter then message will not be in red status. But the adapter will be in error status when u check it in RWB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As mentioned in Blog refered by Suraj, try using Xpath functions.
The following fn might be usefull-
fn:contains(string1,string2) Returns true if string1 contains string2, otherwise it returns false
Example: contains('XML','XM')
Result: true
Incomming data of this field would be uuuabcpppp or eeeeabcooooo so to day it can be abc if it is the case I should fail this
itnerface.
Make use of the COntains Pattern option in the Receiver Determination to define the condition
Left Operand:
IDOC[not(Field1]
Middle Operand: CP....symbol will be similar to ~
Right Operand:
*abc*
I am combining the logic mentioned in this wiki....check the 2nd and 4th diagram (from the end):
http://wiki.sdn.sap.com/wiki/display/XI/XpathConditioninReceiverDetermination
Regards,
Abhishek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajeev,
Try the method shown in the blog:
/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
Regards
Suraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajeev,
if filed1 value not abc,then you want to stop the interface ,its not possible to exit the flow in PI,if you want stop it then it will show red flag in moni,means interface failed.
Regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Might not be possible to check out this condition in receiver determination.
You need to filter this in mapping and then pass values to the target. But It results in mapping exception every time the condition fails.
Btw, what is the receiver system?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.