Skip to Content
Technical Articles
Author's profile photo SAJAL GUPTA

How to connect CPI and PI system to import mappings via SAP Cloud Connector

The purpose of this blog is to understand the configurations done in SAP Cloud Connector(SCC), SAP PI system and SAP CPI to import the mappings from the Enterprise Service Repository(ESR) of your SAP PI system. Without further delays, let’s start with the setup:

Step 1: Make sure you have valid credentials for the PI system you want to connect to CPI. If you don’t have credentials to the PI system, raise a DLM ticket and get the access.

Step 2: Once you have the valid credentials, you need to maintain in the CPI tenant.

  • Go to your CPI tenant
  • Click on Operations View Tab
  • Click on Security Material Tile
  • Add the User Credentials (PI system credentials)

Step 3: Install the Cloud Connector. Based on your operating system, you can install the cloud connector.

Step 4: Login to the cloud connector through any browser

  • Enter https://<hostname>:<port>
  • If you are running SCC locally on your browser, then hostname = localhost
  • The default port is 8443. You can change the port if required, during the installation of the Cloud Connector
  • Default User Name/ Password is Administrator/manage
  • When you log in for the first time, it will prompt you to change the password
  • Save the new password

Step 5: Once you successfully log in, you need to define the subaccount (CPI Account) to which you need to establish the connection:

  • Region: Refers to the SAP Cloud Platform host. You can choose from the drop-down. In case you have a canary landscape, you can manually enter your region. For example
  • Subaccount: Refers to the technical name of the account which needs to be configured with SCC. You can get that from your SCP cockpit

  • Subaccount User/Password: These are your CPI credentials
  • Click on Save

Step 6: To connect Cloud Connector with the PI system, you need to get the URL of the system with the port number:

  • Go to the respective PI system from SAP Logon
  • Run transaction sxmb_ifr
  • From here, you get the URL which needs to be configured in the Cloud Connector
  • Get the URL and the port number

Step 7: Once you define Subaccount, you need to go to Cloud To On-Premise Section to maintain the PI system details:

  • Click on the add (+) button and complete the necessary steps
  • Backend type should be “SAP Process Integration
  • It is advised to maintain different virtual host and port (not same as Internal host and port i.e. your PI system details)
  • Principal type can be set to “None
  • After this, you need to define the URL path
    • URL path can be set as /
    • Under Access policy, select “Path and all sub-paths” option
    • Tick the Enabled checkbox


Step 8: Go to your CPI tenant and maintain the virtual host/port configured in the Connector:

  • Go to Settings > ES Repository
  • Under the ES Repository, maintain all the necessary details
  • Name: It can be anything
  • Address: It is the virtual host/port which you configured in the Cloud Connector. Example: http://<virtualHostName>:<virtual PortNumber>
  • Credential Name: It is the name, which you configured during Step 2

Step 9: Once you are done with all the configurations, go to your integration flow and add the desired mappings

  • Under Resources section, click on Add > Mapping > Message Mapping/Operation Mapping

  • Once you click on the add mappings, a dialog opens from where you can connect to the PI system and import the mappings

  • When you click on Connect, it connects to the PI system and then displays a list of all the mappings

  • When you click on Select, it opens a pop up to Add Mappings as follows:

  • Click on Add
  • Your mappings are added to the respective integration flow

Step 10: Now all the steps are done, and your CPI system is connected to PI system via cloud connector



Congratulations! You should now be easily able to connect CPI and PI systems to import mappings via SAP Cloud Connector.? I hope this blog covering the end to end use case was of help to you. It is indeed a pleasure to compile and document one’s notes in a structured form so that it could be of use to many. Until then, Happy Learning and Blogging?.

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Pavan G
      Pavan G

      Hi SAJAL GUPTA ,

      Thanks for the detailed blog.

      I tried to follow the steps you have mentioned in the blog.

      But I am getting below error while connecting to ESR to add operation mapping.

      Error Log:


      An error occured while connecting to ES Repository. Contact Tenant Administrator if you need further support. <!DOCTYPE html PUBLIC”-//W3C//DTD HTML 4.01Transitional//EN”><html><head><title>Logon Error Message</title><META http-equiv=”Content-Type” content=”text/html;charset=UTF-8″><style type=”text/css”>body { font-family:tahoma,helvetica,sans-serif;color:#333333;background-color:#FFFFFF; }td { font-family:tahoma,helvetica,sans-serif;font-size:70%;color:#333333; }h1 { font-family:tahoma,helvetica,sans-serif;font-size:160%;font-weight:bold;margin-top:15px;margin-bottom:3px;color:#003366; }h2 { font-family:verdana,helvetica,sans-serif;font-size:120%;font-style:italic;font-weight:bold;margin-top:6px;margin-bottom:6px;color:#999900; }p { font-family:tahoma,helvetica,sans-serif;color:#333333;margin-top:4px;margin-bottom:4px; }ul { font-family:tahoma,helvetica,sans-serif;color:#333333;list-style-type:square;margin-top:8px;margin-bottom:8px; }li { font-family:tahoma,helvetica,sans-serif;color:#33333;margin-top:4px; }.emphasize { color:#333333;background-color:#C8E3FF;padding:5px;}.note { color:#CC6600; }a { font-family:tahoma,helvetica,sans-serif;text-decoration:underline;color:#336699; }a:visited { color:#001166; }a:hover { text-decoration:none; }</style></head><body><table cellpadding=”0″ cellspacing=”0″ border=”0″ width=”100%”><tr><td><h1>Service cannot be reached</h1><br><h2>What has happened?</h2><p>URL call was terminated because the corresponding service is not available.</p></td></tr><tr><td>&nbsp;</td></tr><tr><td class=”emphasize”><strong>Note</strong><br>The termination occurred in system with error code <b>404</b> and for the reason <b>Not found</b>.</td></tr><tr><td>&nbsp;</td></tr><tr><td><p><h2>What can I do?</h2>Select a valid URL.</ul><br/><p class=”note”></p><br/><p>HTTP 404 – Not found<br><p>Your SAP Internet Communication Framework Team</p></td></tr></table></body></html>Show Less


      Any leads to resolve this error will be very helpful.



      Pavan G

      Author's profile photo Pavan G
      Pavan G

      Creation of the new virtual host again and mapping it to internal host resolved my issue.


      Pavan G

      Author's profile photo p jayaraj
      p jayaraj

      Hi Sajal,


      Thanks for sharing this informative blog.

      Is it possible to import PO mappings into CPI which has a lookup or a Java mapping code written for any fields ?