Skip to Content
avatar image
Former Member

Connection between API Business Hub and Smart Business Service in SAP Cloud Platform

Hi All,

I have a requirement to access the ODATA API's from SAP API Business Hub. I want to use the accessed ODATA API as a data source for Smart Business Service in SAP Cloud Platform.

In API Management (SAP Cloud Platform), I have created an API proxy for the sandbox system(API Business Hub) and deployed that. Please find the screen shot for the same

api-proxy-deployed.png

I used the API Proxy URL to create a destination and checked the connection - which is OK. Please find the screen shot for the same.

destination.png

But when i tried to connect from smart business service, I unable to do connect. Please find the the screen shot of the error. error-bs.png.

Request to help me in solvong this issue or I might be missing something. So kinldy help me out.

Thanks & Regards

Thiru

destination.png (61.4 kB)
error-bs.png (39.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Feb 05 at 11:45 PM

    Hello Thirumoorthy,

    I hope that you are finding API Business Hub sandbox data useful. I want to remind you that the API Business Hub is a discovery and testing service, and not for productive use against the sandboxes. So this is the reason that we have set up some items to act as gatekeepers, one of which is the requirement of usage of your API Key in accessing API Hub services (this is handled for you when you use the API Hub UI).

    So when you pass the request through the API Management API Proxy, you will need to pass your API Key value in the header. You can see the basics of this in the following blog: https://blogs.sap.com/2018/01/08/sap-api-business-hub-deploy-generated-fiori-application-to-sap-cloud-platform-account/

    Since this cannot be done in the Smart Business Service wizard that you posted a screenshot for, you would most likely have to enable API Management to modify the incoming requests to add a Header value with this information. In general this is absolutely bad practice, but for testing purposes I hope that it makes sense.

    Let me know if you have additional questions.

    Regards,
    Elijah

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Elijah,

      First of all I just want to clarify, this is purely for learning/testing purpose and not for productive use.

      Thank you so much for the information!!

      My issue is resolved - I had an issue while creating metadata annotation in smart business service

      Best Regards,

      Thiru

  • avatar image
    Former Member
    Feb 08 at 11:45 AM

    The issue is resolved - URL was wrong while creating OData metadata annotation

    Best Regards,

    Thiru

    Add comment
    10|10000 characters needed characters exceeded