You can also use createIf node function to handle the same. Check below link for further details
http://scn.sap.com/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-part-ii
Hi Vicky,
You can achieve that in Message Mapping without failing the message using a few node and text functions , but the occurrence of the target message be either 0..1 or 0..Unbounded.
I created two sample message types 'DemoSrc' and 'DemoTarget' and tested the same in message mapping.
In the below map, I didn't want to target message 'DemoTarget' to be created if the field 'Field' is not present in the source message 'DemoSrc'.
Test when the element 'Field' is present in the source message.
Test when the element 'Field' is absent in the source message.
In both the cases, the mapping is executed successfully.
Hope this helps..
Regards,
Samanth Kunapareddi.
Add a comment