Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3575

Re: how to create duplicate node at target

$
0
0

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:

echange_rates.png

Mapping Result:

result_map.png

 

Regards,

Praveen.


Viewing all articles
Browse latest Browse all 3575

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>