Hi Satish,
You can write one udf with follwoing code and the input will be the amount field also change the context of your amount field to 1 level up. Use this UDF and map to LineItem segment
for(int i=0;i<amount.length*2;i++)
result.addValue("");
These many child nodes will be generated for Lineitem therefore
for the child nodes also you can do like this but dont forget to use splitByValue node function for child nodes and map them with corresponding source fields.
Thanks!
Hey,
as far as my understanding,
you can use node funciton exists and createif for header node and a one to one mapping for child node.
amount-> exists-> createif-> currency line item.
amount-> child node.
this will be the case if amount is repeating.
if the amount node is not repeating, you can map the child node of amout, which must be repeating.
regards,
Milan
Use node functions SplitByValue (Each Value) and RemoveContext for multiple occurrence of node.
Same functions could be used at child level also.
Regards,
Prateek
Add comment