Skip to Content
1
Dec 07, 2021 at 08:18 AM

oDataV4 Service Catalog exposing to SAP API Management (Creating API Provider, Proxy ...)

1309 Views Last edit Dec 07, 2021 at 03:35 PM 4 rev

Hallo experts,

I have the problem exposing an OData V4 Service or entire Service Group through sap cloud connector to sap api management.
The scenario is: Connect Cloud BTP (Cloud Foundry) to the On Premise (S4 Hana) trought Cloud Connector and create API Provider and API Proxy for Front End Web Application.

I have Created Cloud Connector with backend type SAP HANA and added resources ( /, Path and All Sub-Paths). The CC is successfully connected and it is avaliable on SAP BTP.

The problem starts when i try to create API Provider with spacific oData V4 Service Cattalog. This is what i try:
- /sap/opu/odata4/iwfnd/config/default/iwfnd/catalog/0002/ServiceGroups?$expand=DefaultSystem($expand=Services)&$top=5

catalogservice-1.png

-/sap/opu/odata4/iwfnd/config/default/iwfnd/catalog/0001/ServiceGroups('API_CONDITION_CONTRACT')/Systems('LOCAL')/Services

catalogservice-2.png

- /sap/opu/odata4/sap/api_condition_contract/srvd_a2x/sap/api_condition_contract/0001/?sap-client=100

catalogservice-3.png

API Provider returns 200 but, when i try to create API Proxy with this Provider i get 403 on Discover function.

api-proxy.png


- sap/opu/odata4/sap/api_condition_contract/srvd_a2x/sap/api_condition_contract/0001
This is the same as the example above.

I would like to mention that if I try this URLs in POSTMAN, I get the response 200 for each and everyone.
I am quite stop at this point because I don’t know why there are so many problems exposing this catalog service. So, if you have any idea or solution to this problem (maybe someone already done it) it would be much appreciated.

I hope I explained enough so you can get a picture what I try to solve.

Many thanks in advance.

Best regards,
Mark

Attachments

api-proxy.png (30.5 kB)