Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
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 int.sap.hana.ondemand.com

  • 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

 

Conclusion:

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?.
3 Comments