cancel
Showing results for 
Search instead for 
Did you mean: 

Multiline in receiver determination

former_member296836
Participant
0 Kudos

Dear all,

my payload is like this:

<item>

<WERK>PLANT_A</WERK>

<RCODE>99</RCODE>

</item>

<item>

<WERK>PLANT_A</WERK>

<RCODE>0</RCODE>

</item>

<item>

<WERK>PLANT_A</WERK>

<RCODE>0</RCODE>

</item>

Only if WERK is like PLANT_A AND RCODE is 99 then he should send

the message else he should ignore it automatically.

So in this message are three recipes in one message to the same plant,

but only one got an error.

I also marked multiline in XPath editor, but he does not send a message, but

stop the complete message.

My conditions

/rfc:PROCESS_MESS_GET_RETURN_CODE/MSHD/item/WERK = PLANT_A AND

/rfc:PROCESS_MESS_GET_RETURN_CODE/MSHD/item/RCODE <> 0

I also tried:

/rfc:PROCESS_MESS_GET_RETURN_CODE/MSHD/item[WERK='PLANT_A']/RCODE='0'

with operatro EX, but it also doesn't work.

Is it possible with a normal receiver determination or do I have to use the extended version?

Thanks

Regards

Chris

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Have tyou tried this..

/rfc:PROCESS_MESS_GET_RETURN_CODE/MSHD/item/WERK = PLANT_A AND

/rfc:PROCESS_MESS_GET_RETURN_CODE/MSHD/item/RCODE = 99

Note: If receiver determination condition gets true then whole payload will be sent and if it gets false then whole payload will be stopped. This is normal behavior.

former_member296836
Participant
0 Kudos

Thanks for your replies.

I finally made it like this:

/rfc:PROCESS_MESS_GET_RETURN_CODE/MSHD/item[RCODE>0] EX

AND

/rfc:PROCESS_MESS_GET_RETURN_CODE/MSHD/item/WERK = "PLANT_ID"

This seems to work even with multiline payloads

Regards

Chris

Former Member
0 Kudos

Hi,

This should be possible with the normal receiver determination. Can you try the conditions for WERKS and RCODE seperately (keep multiline checked) to see if the message goes through and then again revert back to both conditions.

Try to check if its a data issue.

Regards