Hi Swapna,
I know ABAP is not accepting multiple ECXHRATE_LIST nodes, i just want to give you the solution as per your original question incase the requirement changes.
Use below UDF to set the occurrence of the target node as explained in below blog.
Message Mapping : Play around with target structure
Excecution Type : Single Values
public String setOccurences(String sourcenode, String monthlyRateExist, Container container) throws StreamTransformationException { StructureNode node = ((StructureNode) container.getParameter("STRUCTURE_NODE")); if (monthlyRateExist.equals("true")) node.setOccurences(0, 2); else node.setOccurences(0, 1); return ""; }
Mapping for EXCHRATE_LIST node:
Mapping Result:
Regards,
Praveen.