cancel
Showing results for 
Search instead for 
Did you mean: 

will Mapping performance effected?

Former Member
0 Kudos

My source and target mapping looks like

Source:

ZLOCAL(node 0.Unbound)

---

ZBILL(node 0:1)

--- Name1

---Name2

so on

Target:

Local(node 1.unbound)

-


Details(0.unbound)

---Name(required attribute)

---value(required attribute)

If name1 is john the my target side name attribute must be "name1" and Value attribute should be "john"..like this the node has to repeat several times on target side

For one field its easy to use but i have upto "name20" on target side.i have duplicated "Details" node on target side 20 times and done the mapping.But i feel this as bit wierd and complex for a new guy who sees it later..

Any other simple way?

Accepted Solutions (0)

Answers (3)

Answers (3)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

>> For one field its easy to use but i have upto "name20" on target side.i have duplicated "Details" node on target side 20 times and done the mapping.But i feel this as bit wierd and complex for a new guy who sees it later..

With the given situation, I will also vote for Java Mapping. To design java mapping here is my few cents...

Parse the source XML structure and look for number of ZBILL's child elements and retrieve those values and store it in Vector(java object).

Create target element based on the number of child elements and use vector values to create name value pair . i.e in your case first element Name corresponds to source element name as value and second element value is vector index value for that element.

If you create logic like this way, you dont need to worry about future changes/addition/deletion of fields in structure.

Hope this helps.

Former Member
0 Kudos

stefan is right it could be difficult if you have a lot of values.

if your structure is only until 20 is doable with a message mapping, you could try with xslt that is much easier and you can make it more generic (so that if they send more than 20 name fields you don't have to change the mapping)

stefan_grube
Active Contributor
0 Kudos

> For one field its easy to use but i have upto "name20" on target side.i have duplicated "Details" node on target side 20 times and done the mapping.But i feel this as bit wierd and complex for a new guy who sees it later..

The weird thing is the target structure which makes it difficult to get the data out of XML in target system.

If there are two many values, you have to use a program language like ABAP or Java for mapping.