<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Cloud Integration Value Mapping in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/cloud-integration-value-mapping/qaa-p/12578784#M4716944</link>
    <description>&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;thanks for you eagle-eyes &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; Indeed this will change the behavior and i am getting while deployments from the logs:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2090939-image.png" /&gt;But the developer will still is lag of information which Artifact is causing the clash.&lt;/P&gt;&lt;P&gt;But I think from the government - it would be good to use as Agency not only very generic names (e.g. "SAP") rather than take the Package identifier as a prefix (e.g. "demo.helmut.SAP") to prevent this kind of problem.&lt;/P&gt;&lt;P&gt;Best Regards&lt;BR /&gt;   Helmut&lt;/P&gt;</description>
    <pubDate>Wed, 07 Sep 2022 10:54:03 GMT</pubDate>
    <dc:creator>helmut_skolaut3</dc:creator>
    <dc:date>2022-09-07T10:54:03Z</dc:date>
    <item>
      <title>Cloud Integration Value Mapping</title>
      <link>https://community.sap.com/t5/technology-q-a/cloud-integration-value-mapping/qaq-p/12578774</link>
      <description>&lt;P&gt;I try to understand the concept of Value Mapping. I also read following blogs:&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://blogs.sap.com/2020/09/10/sap-cloud-platform-integration-cpi-part-12-value-mapping/" target="test_blank"&gt;https://blogs.sap.com/2020/09/10/sap-cloud-platform-integration-cpi-part-12-value-mapping/&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://answers.sap.com/questions/540900/cpi--accessing-value-mapping-using-groovy-script.html" target="test_blank"&gt;https://answers.sap.com/questions/540900/cpi--accessing-value-mapping-using-groovy-script.html&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;Unfortunately I don't understand, if i have several ValueMappings in my Package - how to configure in the Groovy which Value Mapping needs to be taken - or is it necessary to have overall Value Mappings unique entries?&lt;/P&gt;
  &lt;P&gt;Please help me to understand this missing puzzle piece &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
  &lt;P&gt;BR Helmut&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 13:48:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cloud-integration-value-mapping/qaq-p/12578774</guid>
      <dc:creator>helmut_skolaut3</dc:creator>
      <dc:date>2022-09-06T13:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cloud Integration Value Mapping</title>
      <link>https://community.sap.com/t5/technology-q-a/cloud-integration-value-mapping/qaa-p/12578775#M4716935</link>
      <description>&lt;P&gt;Hi Helmut,&lt;/P&gt;&lt;P&gt;You can do it via the Groovy script with the following import and code statements (referenced from answer of &lt;SPAN class="mention-scrubbed"&gt;7a519509aed84a2c9e6f627841825b5a&lt;/SPAN&gt; to consolidate content of two posts) -&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;import com.sap.it.api.ITApiFactory
import com.sap.it.api.mapping.ValueMappingApi

def valueMapApi = ITApiFactory.getApi(ValueMappingApi.class, null)
def value = valueMapApi.getMappedValue('source-agency', 'source-identifier', 'source-value', 'target-agency', 'target-identifier')
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;See the image from the blog for association of the source agency, identifier, and target agency, identifier examples. If you have multiple possibilities then you can add a content modifier step or something as per your requirements.&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/wp-content/uploads/2020/09/5-9.png"&gt;https://blogs.sap.com/wp-content/uploads/2020/09/5-9.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ryan Crosby&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 14:21:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cloud-integration-value-mapping/qaa-p/12578775#M4716935</guid>
      <dc:creator>Ryan-Crosby</dc:creator>
      <dc:date>2022-09-06T14:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cloud Integration Value Mapping</title>
      <link>https://community.sap.com/t5/technology-q-a/cloud-integration-value-mapping/qaa-p/12578776#M4716936</link>
      <description>&lt;P&gt;Thanks Ryan,&lt;/P&gt;&lt;P&gt;but where to tell which Value Mapping object should be used? &lt;/P&gt;&lt;P&gt;BR Helmut&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 14:36:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cloud-integration-value-mapping/qaa-p/12578776#M4716936</guid>
      <dc:creator>helmut_skolaut3</dc:creator>
      <dc:date>2022-09-06T14:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Cloud Integration Value Mapping</title>
      <link>https://community.sap.com/t5/technology-q-a/cloud-integration-value-mapping/qaa-p/12578777#M4716937</link>
      <description>&lt;P&gt; &lt;SPAN class="mention-scrubbed"&gt;helmut.skolaut3&lt;/SPAN&gt; - based on the API it looks like you need only the agency and identifier information, along with the source value. &lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 14:40:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cloud-integration-value-mapping/qaa-p/12578777#M4716937</guid>
      <dc:creator>Ryan-Crosby</dc:creator>
      <dc:date>2022-09-06T14:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cloud Integration Value Mapping</title>
      <link>https://community.sap.com/t5/technology-q-a/cloud-integration-value-mapping/qaa-p/12578778#M4716938</link>
      <description>&lt;P&gt;So what happens if I have configured exactly the same combination in a 2nd Value Mapping? Which one is taken ?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 14:43:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cloud-integration-value-mapping/qaa-p/12578778#M4716938</guid>
      <dc:creator>helmut_skolaut3</dc:creator>
      <dc:date>2022-09-06T14:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cloud Integration Value Mapping</title>
      <link>https://community.sap.com/t5/technology-q-a/cloud-integration-value-mapping/qaa-p/12578779#M4716939</link>
      <description>&lt;P&gt;If you have two value mappings with the same data input, then they should have the same target value... and essentially the entries can be collapsed into a unique mapping. If your scenario has two unique target values, then you have a data association problem because that should not be possible.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 14:55:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cloud-integration-value-mapping/qaa-p/12578779#M4716939</guid>
      <dc:creator>Ryan-Crosby</dc:creator>
      <dc:date>2022-09-06T14:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cloud Integration Value Mapping</title>
      <link>https://community.sap.com/t5/technology-q-a/cloud-integration-value-mapping/qaa-p/12578780#M4716940</link>
      <description>&lt;P&gt;I understand what you are saying. But if you have 20 developers in a system - how much you have to spend into Governance on not produce a duplicate on Agency names to avoid duplicates?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 14:59:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cloud-integration-value-mapping/qaa-p/12578780#M4716940</guid>
      <dc:creator>helmut_skolaut3</dc:creator>
      <dc:date>2022-09-06T14:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cloud Integration Value Mapping</title>
      <link>https://community.sap.com/t5/technology-q-a/cloud-integration-value-mapping/qaa-p/12578781#M4716941</link>
      <description>&lt;P&gt;If they are duplicates where the target value is the same, then I don't think you are going to lose much, but that is really a process question.  I cannot provide any helpful feedback because I'm on a team where I'm the only developer in the SAP space including CPI.  I would think that the value mapping space would require very little upkeep, however.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 15:02:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cloud-integration-value-mapping/qaa-p/12578781#M4716941</guid>
      <dc:creator>Ryan-Crosby</dc:creator>
      <dc:date>2022-09-06T15:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cloud Integration Value Mapping</title>
      <link>https://community.sap.com/t5/technology-q-a/cloud-integration-value-mapping/qaa-p/12578782#M4716942</link>
      <description>&lt;P&gt;I have now the result - i have created two Value Mapping Artifacts (even within the same package!) &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2090932-image.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2090933-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Both could have been deployed w/o any error or warning. And then my  demo groovy is accessing with value "1000" and gets the value "AEUR" from "ValueMapping1"&lt;/P&gt;&lt;P&gt;For me, it's a classic design problem of the whole Value Mapping concept. I would have expected to have at least a deployment error for the 2nd Value Mapping telling, combination of source/target Agency+Identifier is already existing or better to have the choice to trigger explicitly the correct ValueMapping Artifact.&lt;/P&gt;&lt;P&gt;BR Helmut&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 08:54:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cloud-integration-value-mapping/qaa-p/12578782#M4716942</guid>
      <dc:creator>helmut_skolaut3</dc:creator>
      <dc:date>2022-09-07T08:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cloud Integration Value Mapping</title>
      <link>https://community.sap.com/t5/technology-q-a/cloud-integration-value-mapping/qaa-p/12578783#M4716943</link>
      <description>&lt;P&gt;Hi Helmut,&lt;/P&gt;&lt;P&gt;you actually should get a deployment error when you try to deploy a second value mapping that uses the same combination, I just tested this and I am able to successfully deploy the second value mapping only if undeploying the first value mapping before.&lt;/P&gt;&lt;P&gt;In your case, the second value mapping gets deployed because you have a typo in the identifier of the second value mapping, you entered comany instead of company and hence there is no clash. Try the same combination and you will see that the second value mapping won't get deployed.&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 09:52:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cloud-integration-value-mapping/qaa-p/12578783#M4716943</guid>
      <dc:creator>alex_bundschuh</dc:creator>
      <dc:date>2022-09-07T09:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Cloud Integration Value Mapping</title>
      <link>https://community.sap.com/t5/technology-q-a/cloud-integration-value-mapping/qaa-p/12578784#M4716944</link>
      <description>&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;thanks for you eagle-eyes &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; Indeed this will change the behavior and i am getting while deployments from the logs:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2090939-image.png" /&gt;But the developer will still is lag of information which Artifact is causing the clash.&lt;/P&gt;&lt;P&gt;But I think from the government - it would be good to use as Agency not only very generic names (e.g. "SAP") rather than take the Package identifier as a prefix (e.g. "demo.helmut.SAP") to prevent this kind of problem.&lt;/P&gt;&lt;P&gt;Best Regards&lt;BR /&gt;   Helmut&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 10:54:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cloud-integration-value-mapping/qaa-p/12578784#M4716944</guid>
      <dc:creator>helmut_skolaut3</dc:creator>
      <dc:date>2022-09-07T10:54:03Z</dc:date>
    </item>
  </channel>
</rss>

