Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

extract data from hash map for target structure mapping

$
0
0

Hello All

 

i have written a udf to extract material id and its related data in a hash map

 

hash map looks like below {Material_ID=[plant,uom,salesorg] combination - there are many material ids in the hashmap as shown below

 

{0061399=[1592345, 26728282, 29798989], 006139940=[1596889, 292909, 2989898], 006139996=[15965677, 989889, 990090] ...........................}

 

I want to extract these values inside the square braces and map it to the corresponding PI message mapping target structure fields for plant, uom, sales org. How do I achieve this?

 

The source structure is something like below

<Material>1.unbounded

<Material_ID/>

<plant/>

<uom/>

<salesorg/>

</Material>

---

---

---

 

Target structure is like below

 

<Mat>1.unbounded

<Mat_ID/>

<werks/>

<unitofMeas/>

<salesorganiz/>

</Mat>

---

 

 

thx

mike


Viewing all articles
Browse latest Browse all 7030

Trending Articles



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