Skip to Content

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

Create a Target based on Condition

Hi Experts,

I have a scenario like, based on a filed value the target node should be created /not created.


if i have a field value(UDF) "true" , target should be created with respective fields mapped to that target.

if i have a field value(UDF) "false" , target should NOT be created.

Above mentioned is my mapping to Target.

Target gets created if the UDF value is "true"

But if value is false, getting error message as target message not created, please check your xsd.

How to achieve this scenario.



Former Member
Former Member replied


Please apply the condition to targer Header node instead of MT node and see if it works.

The mapping fails because MT_T node is mandatory node with 1..1 cardinality so if you don't create this node, mapping will fail.

So please apply the condition to Header node with 0..n cardinality.

Also apply removecontext to tSalutaion source node.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question