Hello,
I am very new to SAP PI, and I have been searching for a clear answer to this but haven't found my solution.
In my source file, I have a field called <MakeBuy>. Depending on the value of this field, I need 1,2 or 3 instances of a destination node with different values within. I need assistance with how to set this up in the Message Mapping.
Example:
If in source, <MakeBuy> = "Make" then in my destination I need Two <ItemValue> nodes:
<ItemValue>
<UnitValue>
<Amount currencyID="USD">0.00</Amount>
<PerQuantity>1.00</PerQuantity>
<Code>AverageMaterialCostPerUnit</Code>
</UnitValue>
</ItemValue>
<ItemValue>
<UnitValue>
<Amount currencyID="USD">0.00</Amount>
<PerQuantity>1.00</PerQuantity>
<Code>AverageLaborCostPerUnit</Code>
</UnitValue>
</ItemValue>
If in source, <MakeBuy> = "Buy" then in my destination I need One <ItemValue> (with different constant):
<ItemValue>
<UnitValue>
<Amount currencyID="USD">0.00</Amount>
<PerQuantity>1.00</PerQuantity>
<Code>AveragePuchasePriceForUnit</Code>
</UnitValue>
</ItemValue>
Then finally if <MakeBuy> = "MakeBuy", then I would need all 3 of the <ItemValue> nodes listed above. Could someone point me in the right direction?