Skip to Content
Author's profile photo Hari Sonnenahalli

HCI-PI & Outbound Proxy as Web-Service

I am working on a project in which customer is planning to implement HCI PI and intent is to develop custom iflows development. As part of POC few interfaces were selected from existing SAP PI landscape. In one of the interface, an outbound proxy is sent from ECC to make a call via PI and get a response back to SAP ECC. In SAP PI it would be a straightforward synchronous interface but when it comes to HCI PI everything is a web service call. In this blog will show you the steps to expose outbound proxy as web service and then bind the endpoints from HCI so that transactions can be passed through HCI PI by retaining the same proxy program. This configuration steps can be used if you’re exposing FM as web-service.

To build this iflow in HCI-PI I have used a request-reply pattern in which sender is ECC and receiver system is a third party web service. The idea is when data is triggered from SAP, a synchronous WSDL which contains both request and response has to make a request and get back the response and post it to ECC through HCI PI iflow.

If you are familiar with SAP ECC. The data structure was created in SAP PI and made it available in SAP ECC under SPROXY transaction to which the proxy program was developed. In my scenario in HCI PI when developing iflow I used the same data structures in the mappings so that I can leverage same proxy program in ECC. I have downloaded the WSDLS from PI and used them in my message mappings.

Once the iflow is created and deployed it looks as below.

Steps to bind endpoints created in HCI PI and outbound proxy from ECC in SOAMANGER.

Step1: Login into SAP ECC and execute T-code SOAMANAGER

Step2: A new UI window opens in the default browser as shown in the screenshot below.

Step3: Click on Web Service Configuration tab as shown in the screenshot above

Step4: Select the consumer proxy from the drop-down menu and type the search pattern for the proxy according to the landscape naming convention and click GO button as shown in the screenshot below.

Step5: Select the proxy which needs to be exposed as web service and click apply as shown in the screenshot below.

Step6: Click on configuration tab as shown in the screenshot below and click on create button

Step7: Provide the details of logical port and description and choose the manual configuration and click on apply settings.


Step8: New configuration window opens as shown in the screenshot below.

Step9: Choose the method of authentication from following options. In this document have selected a basic authentication. Note: If you choose basic authentication (User ID/ Password) then you need to provide HCI tenant credentials as it does not allow to any service users. Follow the steps shown in the screenshot below and save the configuration.

When providing computer name of access URL provide runtime URL with no https:// and part after /CXF/* as this is not needed in access URL.

Step10: After saving the manual configuration it is activated automatically and can be seen under configuration tab as shown in the screenshot below.

Hope this helps!

See you in my next blog!

Assigned Tags

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

      Hi Hari,

      Thanks for the informative blog!

      I have the similar requirement in our landscape and I would like to avoid usage of SAP PI/PO system for WSDL generation. Is there any other standard way we can create and expose message structure from CPI rather can creating WSDL in SAP PI/PO or other tools (eclipse etc.)



      Author's profile photo Harsha Gaonkar
      Harsha Gaonkar

      Hi Hari

      Thanks for Informative blog.

      I am using SAP CPI.

      what adapter you used? Can I use XI sender adapter?

      do I need to use Soap adapter only?

      SOAMANAGER for S4 HANA UI is different.

      I am getting below error while using URL for Iflow





      Author's profile photo Hari sonnenahalli
      Hari sonnenahalli

      I had used SOAP. It is recommended when creating the endpoints in CPI.





      Author's profile photo Harsha Gaonkar
      Harsha Gaonkar

      Hi Hari

      This is about below question

      which mapping you removed?

      I am getting same error?

      My flow is asynchronous S4HANA->CPI->SFTP



      Author's profile photo Hari Sonnenahalli
      Hari Sonnenahalli
      Blog Post Author

      I have not removed any mapping. In my case it was a synchronous call. You can just use an SOAP endpoint and create one mapping and then send it to SFTP. What type of the data is being sent from S4 is what determines the adapter type.




      Author's profile photo Joel Langoyan
      Joel Langoyan

      Hi Hari,

      Isn't Cloud Connector required in order to successfully connect to CPI from ECC? Thanks.