Skip to Content
Product Information
Author's profile photo Deepak G Deshpande

SAP Cloud Integration – Copy Message Mapping

Introduction

SAP Cloud Integration version 3.21.x comes with enhancements on message mapping with support of copying message mappings from other integration flows and copying message mapping expressions. This blog describes these features.

Copying Message Mapping from Other Integration Flows

As any other resource in integration flow project, the copying capability of message mapping was missing. It was only possible to import message mapping from ES Repository (more info at https://blogs.sap.com/2018/02/09/importing-message-mapping-from-es-repository-in-sap-cloud-platform-integration/ ).

It is now possible to copy a message mapping from other integration flow projects belonging different packages of the tenant. Below screenshots explains on how to use this feature.

In the Resources tab, click on Add -> Message Mapping

 

Select the Source as Integration Flow

 

Select Package and Integration flow project

 

Select required Message Mappings

 

After clicking on Add, an information dialog will be shown as a summary of dependent resources, used in the mapping, which will be copied along with message mapping file

 

Once you click on Add, all the resources will be copied

 

Once you get hold of message mapping file, you can assign it to any message mapping flow step of your integration flow project.

 

Note:

  1. The message mapping file, along with the dependent resources, will be copied, even if there are validation errors in the message mapping at source integration flow.\
  2. While we work on the performance improvements in mass copy, it is recommended that you copy 5 message mappings at a time to avoid unintended UI issues.
  3. Limitation:
    1. If the resource used in mapping (e.g. WSDL or XSD file), have referenced resource (e.g. via import statement in schema), those referenced resources will not be copied, you need to copy them manually.

 

Copy Expression

Another enhancement provided is to support the copying of expression of a source and target elements of message mapping. If there is a reusable expression, the copy/paste of expression will help.

Screenshot below explains how mapping expression copy works.

 

Toolbar buttons have been introduced in the expression editor. The copy action from toolbar copies the complete expression including the source elements, but excluding the target elements

 

Copying via content menu at a function tile/brick is also enabled. This will copy the function along with left-hand-side chain of expression including source element, excluding target elements.

 

Paste the expression wherever needed using the paste icon of toolbar.

 

Note: As of now, the multiple paste operation is not possible, it will be fixed going forward.

 

Summary

The enhancement in message mapping with copy support would make re-use of mapping even faster in integration flow development activity. In upcoming release, the said limitations will be worked upon.

Assigned Tags

      16 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Hemant Malvi
      Hemant Malvi

      Hi Deepak,

       

      Thanks to you and SAP team for introducing this feature. This was much awaited feature. It will minimize efforts of CPI consultant in designing mapping.

       

      Regards,

      Hemant

      Author's profile photo Deepak Govardhanrao Deshpande
      Deepak Govardhanrao Deshpande
      Blog Post Author

      Hi Hemant,

      Thanks for the input.

       

      -Deepak

      Author's profile photo Vadivel Kirubakaran
      Vadivel Kirubakaran

      Hi,

      That's a great news. we are still at 3.20.8, any idea when are they going to update all customers?

       

      Author's profile photo Gagandeep Batra
      Gagandeep Batra

      Great!!! Much Awaited Feature Comes!!!

      Thanks for sharing!!

      Regards

      Gagan

      Author's profile photo T. van Rooijen
      T. van Rooijen

      Indeed long awaited. But it is also present in my 3.20.8 installations.

      Also in this area is the new export mapping to excel spreadsheet, very handy for documentation purposes.

       

      See release notes at:

      https://help.sap.com/doc/43b304f99a8145809c78f292bfc0bc58/Cloud/en-US/98bf747111574187a7c76f8ced51cfeb.html?sel1=Cloud%20Integration

       

       

      Regards

      Tom

      Author's profile photo Deepak Govardhanrao Deshpande
      Deepak Govardhanrao Deshpande
      Blog Post Author

      Hi Tom,

      Thanks for the inputs. The release 3.20.x doesn't have copy message mappings from different integration flows. But it has only copy of mapping expression and mapping export as spreadsheet.

      I have written this blog including both copy features.

      Nevertheless, thanks for sharing your observations and also the release notes. It will help others.

       

      -Deepak

      Author's profile photo Shrinath Saxena
      Shrinath Saxena

      Much needed feature. Thanks for putting it wonderully outta here.

      Author's profile photo Prabhat Kumar Ranjan
      Prabhat Kumar Ranjan

      Thanks for sharing! Really much awaited feature.

      I have one query reg this. if some body is working with 2 customers and want to apply the same message mapping in both the customer’s scenario due to any reasons. so is it possible?

      Author's profile photo Deepak Govardhanrao Deshpande
      Deepak Govardhanrao Deshpande
      Blog Post Author

      Hi Prabhat,

      When you say "2 customers", I assume that you talked about 2 different tenants. In that case it is not possible to copy message mappings from different tenants.

       

      I hope I understood your question and replied, with my assumption :).

      Let me know otherwise.

       

      Thanks

      Deepak

      Author's profile photo Prabhat Kumar Ranjan
      Prabhat Kumar Ranjan

      Hi Deepak,

      Yes, my mean for 2customers was 2 different tenants.

      any way thanks for clarifications.

       

      But it would be good and more beneficial, when this re-usability of mapping feature would be available in 2 or more tenants(belong from same organization). I am talking for large scale business organization which has more than 2 Dev tenants.

       

      Thanks,

      Prabhat

      Author's profile photo Philippe Addor
      Philippe Addor

      I agree to this. I think it would be more flexible if it would be possible to simply download the message mappings and be able to upload them anywhere.

      Author's profile photo Deepak Govardhanrao Deshpande
      Deepak Govardhanrao Deshpande
      Blog Post Author

      Hi Prabhat,

      We are working on downloading of message mappings. Soon I will publish a blog once the feature is out 🙂

       

      Thanks

      Deepak

      Author's profile photo Prabhat Kumar Ranjan
      Prabhat Kumar Ranjan

      Hi Deepak,

      Any updates on my last request?

      As this will help us to save our time.

       

      Thanks,

      Prabhat

       

      Author's profile photo Sriprasad Shivaram Bhat
      Sriprasad Shivaram Bhat

      Hello Prabhat,

      I think you could raise this new feature request in influence program by our developement team.

      https://blogs.sap.com/2020/05/29/central-sap-cloud-platform-feedback-requirements-channel-for-customers-and-partner-now-available/

      Regards,

      Sriprasad shivaram Bhat

       

      Author's profile photo Damodar Damodar
      Damodar Damodar

      Hi All,

       

      Does CPI allow message mapping to excel now? I am able to export in an excel but it does not provide complete details of mapping. It presents only details of the flows, not mapping.

       

      Regards

      Author's profile photo Deepak Govardhanrao Deshpande
      Deepak Govardhanrao Deshpande
      Blog Post Author

      Hi Damodar,

      Yes, message mapping export to excel spreadsheet is supported. Can you elaborate more on your problem/issue, with a sample attachment what you got at your end? A screenshot of the same would do.

      OR, you can raise a support ticket providing complete details and relevant team will look into it.

       

      Thanks

      Deepak