cancel
Showing results for 
Search instead for 
Did you mean: 

XPATH and RECEIVER DETERMINATION

Former Member
0 Kudos

Hi Forum,

I try to figure out how to use the receiver determination. I have two receiving SAP's. The Idoc that I have created should go to the right system dependent on a value of my payload message. In the messages I have the following (Record 1..many):

If I replace one of the conditions to:

(/p1:MouldCreateDataTarget/Records/Record[1]/TARGETSYSTEM ≠ EU) (not equal)

then it went to that system. That means the channelconfiguration of the systems are OK.

I have also tried to set the XPATH to things like

/p1:MouldCreateDataTarget/Records/Record/TARGETSYSTEM = AS

or

/p1:MouldCreateDataTarget/Records/Record[TARGETSYSTEM = 'AS'] EX

or

/p1:MouldCreateDataTarget/Records/Record/TARGETSYSTEM[text() = 'AS'] EX

or have put the right operand in single quotes or double quotes,

but nothing helped...

Any new ideas out there????

Kind regards

Manfred Schmidt-Voigt

Accepted Solutions (1)

Accepted Solutions (1)

udo_martens
Active Contributor
0 Kudos

Hi Manfred,

did u use grafical tool for X-Path? If not, may u made a small mistake. Probably the namespace or praefix. Plz try //TARGETSYSTEM='EU' . The parser will take first field TARGETSYSTEM it finds. Control in monitoring if incoming message including that field with value 'EU'.

Regards,

Udo

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Manfred,

The problem is with your receiver determination.

Even if you have a single send step, you need to have two receiver determination for that sender as you need to send the data to two SAP systems.

Moreover check with the sample BPM under the component SAP BASIS, multicast sequential/parallel that whether you have correctly created containers (multiline) of type 'Receiver' or not.

I hope it helps,

Thanks & Regards,

Varun Joshi

Former Member
0 Kudos

Varun,

even if if I reduce my example to one receiver and I only ask for the entry 'AS' like in my first post I get this error. Only if I ask for 'not AS' it send the resulting Idocs to the singel SAP system...