on 01-07-2013 7:55 AM
Hi Experts,
I have a scenario like, based on a filed value the target node should be created /not created.
ex:
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.
Thanks,
Baskar
Hi,
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.
Regards,
Beena.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Additional Info:Error message popup
Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD
See error logs for details
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
The root node has an occurrence of 1..1 meaning it does not need any mapping. You can use your logic in the header instead. If you will be creating a file, you might want to look on the strictXml2PlainBean for empty file handling
http://help.sap.com/saphelp_nwpi711/helpdata/en/cd/5af7c0c994e24fb0d0088443513de2/frameset.htm
Hope this helps,
Mark
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.