Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Mapping exception

Hi Experts,

I have two receivers and my source xml needs route to receivers based on the condition.

If it goes to wrong receiver, I get mapping exception because of different logic.

Below are the conditions that i am using for routing, not sure i am getting errors. Please help me on this.

For ReceiverA:

(((/Source1/Data/Node/SubNode/Value = A) and (/Source1/Data/Node/DiffNode/SecondValue = "ABC" or /Source1/Data/Node/DiffNode/SecondValue = "DEF")) or ((/Source1/Data/Node/SubNode/Value = B) and (/Source1/Data/Node/DiffNode/SecondValue = "ABC" or /Source1/Data/Node/DiffNode/SecondValue = "DEF")) EX )

For ReceiverB:

(((/Source1/Data/Node/SubNode/Value = A) and (/Source1/Data/Node/DiffNode/SecondValue != "ABC" or /Source1/Data/Node/DiffNode/SecondValue != "DEF")) or ((/Source1/Data/Node/SubNode/Value = B) and (/Source1/Data/Node/DiffNode/SecondValue != "ABC" or /Source1/Data/Node/DiffNode/SecondValue != "DEF")) EX )

Logic is:

((If Value is equals to 'A') and (If SecondValue is equals to "ABC" or "DEF")) or ((If Value is equals to 'B') and (If SecondValue is equals to "ABC" or "DEF"))   ---> route to receiverA

((If Value is equals to 'A') and (If SecondValue is not equals to "ABC" or "DEF")) or ((If Value is equals to 'B') and (If SecondValue is not equals to "ABC" or "DEF"))   ---> route to receiverB

Appreciate your inputs on this. Thank you.

Former Member
Not what you were looking for? View more on this topic or Ask a question