cancel
Showing results for 
Search instead for 
Did you mean: 

Expose oData service created in CPI in API Management

tushar_saurabh2
Explorer
0 Kudos

Hi,

The scenario is:

1. oData Service is created and deployed in CPI (Productive Tenant)

2. Expose this oData service in SAP APIM (Trial account)

I have created an API provider in SAP APIM which created a destination. While testing the connection, I am getting "404: Not found".

API Provider:

While creating API, I am getting below error;

I have referred to below blog "

https://blogs.sap.com/2018/01/12/connecting-and-exposing-apis-from-cloud-platform-integration/";

Please guide me where things are wrong.

Thanks

Tushar

Accepted Solutions (0)

Answers (2)

Answers (2)

ShilpaVij
Advisor
Advisor
0 Kudos

Hello Tushar,

Just to add to what Elijah has written above, we also need to check that both the instance CPI and APIM are either in trial or in a production environment.

What I see above is you are using your trial for APIM and productive instance for CPI which I guess is a problem.

Regards

Shilpa

tushar_saurabh2
Explorer
0 Kudos

Hi Shilpa,

They need not be on same instance whether productive or trial. I was able to create both oData and ReST API using CPI (Productive) and APIM(Trial).

Thanks

Tushar

ShilpaVij
Advisor
Advisor
0 Kudos

Hello Tushar,

When I tried around 8 months back, I could not do this.

But thanks for the info if you are able to do it now, I will also try the same and will modify the comments in blogs/videos etc.

Regards

Shilpa

ElijahM
Advisor
Advisor
0 Kudos

Hi Tushar,

I think that we may need to revamp the guide a little bit, as there is some unclarity. In order to create an API Provider connecting to your CPI tenant you must use the following configuration:

Host:

<hcitenant>-tmn.<hciservice>.hana.ondemand.com

replacing the items in brackets with your particularities.

Then set

Service Collection URL: /gw/CATALOGSERVICE/ServiceCollection

Assuming that is configured correctly, you will be able to discover your OData service assuming it was deployed successfully in your CPI tenant.

I hope this helps.

regards,

Elijah

tushar_saurabh2
Explorer
0 Kudos

Hi Elijah
Thanks for your inputs. I did make it work through a workaround. Created an API provider connecting to CPI (Production) on APIM (Trial) for option to create ODATA API.
API Provider Endpoint: <tenant iflmap>.hana.ondemand.com
oData service endpoint in API :- /gw/odata/<API particulars>
I was able to accomplish this way.
Thanks
Tushar