Skip to Content
Author's profile photo Midhun VP

Learn How to connect HCI OData Adaptor with SAP Gateway On Premise

This blog explains how to use HCC to connect HCI OData adaptor with SAP Gateway. HCC helps HCI adaptors to communicate with SAP on premise systems.

/wp-content/uploads/2016/03/2016_03_22_22_07_59_913732.jpg

Setting up HANA Cloud Connector

  • Download HCC from here.
  • After extracting the HCC zip file, open the directory and run the batch file go.bat to start cloud connector.
  • Next, run the url https://localhost:8443/

2015-11-23_14-24-49 (1).png

  • Enter username and password enter Administrator / manage(Case sensitive).
  • Next, choose Master type installation and click Apply.

2015-11-23_14-28-23 (1).png

  • On the next screen, enter your HCI tenant details. To find the details from your HCI eclipse environment, click IFLMAP.
  • Note the Account ID and URL and provide it in the setup configuration window.

/wp-content/uploads/2016/03/2016_03_23_08_28_14_913933.jpg

/wp-content/uploads/2016/03/2016_03_23_08_31_03_913976.jpg

  • From the new window click on Access Control,then click on Add to add a backend to be used with HCI.

2015-11-24_02-34-14 (1).png

  • Choose backend system type as SAP Gateway.

gateway (1).png

  • Select HTTPS protocol.

2015-11-23_21-49-03 (1).png

  • Then, provide SAP Gateway internal hostname and port.

2015-11-23_21-51-33 (1).png

  • Next, provide a virtual host and port. You could give any values here.

/wp-content/uploads/2016/03/2016_03_22_22_44_26_913805.jpg

  • Choose Principal Propagation Type as None.

2015-11-23_21-53-20 (1).png

  • Click on Finish.

/wp-content/uploads/2016/03/2016_03_22_22_46_59_913806.jpg

  • Then, choose the system we just created, and click on Add.

/wp-content/uploads/2016/03/2016_03_22_22_53_20_913807.jpg

  • Provide below details. Here I am choosing url path as “/” which will allow HCP to access all the Odata serivces available in SAP Gateway. If you need to give access to only specific services mention only that.

2015-11-23_21-57-12 (1).png

  • Now we are good to go. It should a green icon under Connector State.

2015-11-23_15-55-42 (1).png

OData Adaptor in HCI

  • In the below example I am using OData receiver adaptor.

/wp-content/uploads/2016/03/2016_03_22_23_03_11_913810.jpg

  • In the adaptor settings you should provide the address with virtual hostname and port as given below.
  • Also, the Proxy type should be On-premise when using HCC.

/wp-content/uploads/2016/03/2016_03_22_23_05_06_913811.jpg

To know more about the OData adaptor read this blog: OData Adapter in SAP HANA Cloud Integration

If you are interested to know how to do batch request in OData HCI adaptor read this blog: How to do Batch Request in HCI OData Adaptor

Regards, Midhun

SAP Technology RIG

Assigned Tags

      3 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Eng Swee Yeoh
      Eng Swee Yeoh

      There is an additional blog with similar topic below as well:-

      Using SAP HCI OData Adapter with SAP HANA Cloud Connector

      Author's profile photo Midhun VP
      Midhun VP
      Blog Post Author

      This blog was created to help those following this blog: How to do Batch Request in HCI OData Adaptor

      Author's profile photo Former Member
      Former Member

      Hi,

      is it possible to make a batch approach  for a GET Operation in HCI? I tried it like in this blog:

      https://github.com/SAP/C4CODATAAPIDEVGUIDE/blob/master/sections/massquery.md

       

      But always get this error:

      com.thoughtworks.xstream.io.StreamException: : only whitespace content allowed before start tag and not - (position: START_DOCUMENT seen -... @1:1) , cause: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not - (position: START_DOCUMENT seen -... @1:1)

      I tried the same payload in Postman an it worked fine.