cancel
Showing results for 
Search instead for 
Did you mean: 

Define API / API provider based on HANA cloud connector resource

tomvanrooijen
Participant
0 Kudos

Hi,

I'm trying to access an SAP Netweaver Gateway Odata service via HCP API management.

I have HANA cloud connector running locally and can see in HCP that the virtual host & port of the netweaver gateway are known.

Where I do not succeed is creating an API provider with the virtual host & port of the gateway. It almost seems as if the API provider connection does not work with HCC defined resources.

Based on the defined provider I am not able to discover odata services:

Unable to fetch data from the catalog due to incorrect configuration of selected API Provider. Check the configuration and try again.

If I define an API with or without the API provider it get the error which I think is an http 503.

{"fault":{"faultstring":"The Service is temporarily unavailable","detail":{"errorcode":"messaging.adaptors.http.flow.ServiceUnavailable"}}}

Should an API provider be able to work with OData services being made available with HCC?

Testing on premise works ok with this url: /sap/opu/odata/sap/<svc name>.

This link is the same in the URL parm of the provider.

I have no issues in this process when using the ES4 system (which isn't on premise and does not use HCC)

Accepted Solutions (0)

Answers (5)

Answers (5)

ElijahM
Advisor
Advisor

Hi George,

To follow up on what Gaurav replied, OData Provisioning and API Management are both fully available on the Trial for Non-Productive usage. However as mentioned, both for the API Provider "Discover" button and for OData Provisioning, you need to be connecting to an SAP Gateway backend, configured against the proper SAP Gateway Service catalog.

You can consume generic OData services (or REST and SOAP) via API Management as well, but you cannot use the "Discover" feature.

I highly recommend that you get started with the collected information here https://blogs.sap.com/2016/03/03/sap-api-management-overview-getting-started/ to discover what API Management can do, all Blogs are written with Trial usage in mind.

Regards,
Elijah

gauravdey
Employee
Employee

Hi George,

To answer your questions:

is API Management available only for production customer and not for Hanatrial users? : No this is not true, it's available to both trial and production users.

Does this apply for OData Provisioning also because i am not able to fetch the odata services there also however it works in the Portal.: As of March 2017 to use OData Provisioning the backend has to be SAP Business Suite.

The error that you are facing, I suspect is because of couple of reasons either you have not provided the catalog urls while creating API provider or not selected the onPremise checkbox as your scenario is using Cloud Connector.

Regards,

Gaurav Dey

ElijahM
Advisor
Advisor

Greetings Tom,

I apologize for lateness of this reply, end of year is always a difficult time to monitor questions. I hope that if this does not reach you in time, it can at least help someone.

Currently HCP API Management does support HANA Cloud Connector as of Build 1.18 (November release timeframe). What values were you using when creating the API Provider? You should be entering the value of the Global HCP HCC destination for the Host/Port.

Regards,
Elijah

0 Kudos

Hi Elijah,

i am using the latest SAP Cloud Connector 2.9.0 and i have already connected the trial portal with my backend system and was able to pull some odata service & create sample fiori application.

Now i created a API Provider which is correct, but when i try to create a API it gives me the below error

[RequestID:5b627356-bf83-48c2-a3ba-4b2f88854f3d] Unable tofetchdatafrom the catalog due to incorrect configuration of selected API Provider.Check the configuration andtry again.

is API Management available only for production customer and not for Hanatrial users?

Does this apply for OData Provisioning also because i am not able to fetch the odata services there also however it works in the Portal.

Thanks,

George.

former_member268816
Discoverer
0 Kudos

Hi ,

In SAP HANA cloud connector goto Cloud To On-Premise in Access Control Tab check Resource Accessible

enter Url Path /

select Access Policy :Path and all sub-paths


0 Kudos

Hi Elijah,

i am using the latest SAP Cloud Connector 2.9.0 and i have already connected the trial portal with my backend system and was able to pull some odata service & create sample fiori application.

Now i created a API Provider which is correct, but when i try to create a API it gives me the below error

[Request ID: 5b627356-bf83-48c2-a3ba-4b2f88854f3d] Unable to fetch data from the catalog due to incorrect configuration of selected API Provider. Check the configuration and try again.

is API Management available only for production customer and not for Hanatrial users?

Does this apply for OData Provisioning also because i am not able to fetch the odata services there also however it works in the Portal.

Thanks,

George.

irijsdijk
Participant
0 Kudos

Hi George, did you manage to solve this issue? I'm facing the exact same problem here.