on 09-05-2007 10:39 AM
Hi All,
I hav an outbound message coming out of ERP (Non IDoc). I have to route the message based on the field DESTINATION in the message. The payload in the SXMB_MONI is as follows.
<?xml version="1.0" encoding="utf-8" ?>
<nr1:OLabelling_OB xmlns:nr1="http://cpe.com/cpe_ftp_wms/Labelling/OL">
<Label>
<b><DESTINATION>XXXX</DESTINATION></b>
<PRPRORD>0001005683</PRPRORD>
</Label>
</nr1:OLabelling_OB>
In the receiver determination, I hav chosen the XPath button and given the following value
<b>/nr1:OLabelling_OB/Label/DESTINATION</b>.
This doesn't work. i had also tried giving the namespace and the prefix as
<b>nr1</b> <b>http://cpe.com/cpe_ftp_wms/Labelling/OL</b>. but that dint help either.
If i remove the condition, then it is working fine.
Any help in this regard?
Thnx in Advance.
Anil
why dont you try creating a context object and then assign this context object to your element in the outbound message interface.Now, you can use the context object instead of Xpath in your condition.
Cheer's
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dreamcatcher,
I had already tried creating a context object and assigned it to the interface in the repository. but the problem here is that i cant c my context object in the list of the available context objects in the condition editor. all the context objects that are displayed are the satndard ones given by SAP.
Anil
I had activated and checked......it was not getting displayed.......
But i checked the xpath rules and used a work around solution for this. as per the xpath rules if i enter xpath as //DESTINATION, it picks up the DESTINATION field from anywhere in the document. and that worked.
Thnx for ur help so far...
anil
Can you try this?
/p1:OLabelling_OB/Label/DESTINATION
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 | |
12 | |
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.