cancel
Showing results for 
Search instead for 
Did you mean: 

Value Mapping

itabhishek9
Participant
0 Kudos

Hi SDNites,

I am implementing the value mapping in SAP HCI and have gone through few blogs.

Below is the Value mapping XML that I have obtained from a blog. Can you please let me know in the below what value can be classified as Source and target. Also when implementing value mapping in message mapping then Source Agency will be mapped to agency, Source identifier will be mapped to Schema. Please let me know if my understanding is correct.

Also the below format is the standard format which can be used in any value mapping with the values of group is, agency, Schema and Value be only modified. Please Confirm.

<?xml version="1.0" encoding="UTF-8"?>

<vm>

<group id="Vegetable">

  <entry>

   <agency>UK</agency>

   <schema>Food Items</schema>

   <value>Aubergine</value> 

  </entry>

  <entry>

   <agency>US</agency>

   <schema>Food Items</schema>

   <value>Eggplant</value>

  </entry>

</group>

<group id="Herb">

  <entry>

   <agency>UK</agency>

   <schema>Food Items</schema>

   <value>Coriander</value>

  </entry>

  <entry>

   <agency>US</agency>

   <schema>Food Items</schema>

   <value>Cilantro</value>

  </entry>

</group>

</vm>

Regards,

Abhi

Accepted Solutions (0)

Answers (1)

Answers (1)

Harish
Active Contributor
0 Kudos

Hi Abhishek,

Yes your understanding is correct.

The value mapping is xml does not define the source and target but when you use the value mapping object you can specify what is your source and target. Value mapping can convert/map value1 to value2 or value2 to value1 depending on how it is used.

In your case when you give source agency as UK and source schema as "Food" in your mapping then it will translate Aubergine to Eggplant and Coriander to Cilantro. if you change the source agency to "US" then it perform the operation other way around.


Hope this help

Harish