Technology Blog Posts by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
fellipe_mendes
Participant
677

This blog is meant to provide a comprehensive guide for users seeking to learn how to create a Cloud Integration Flow API Provider. The solution outlined in this guide employs SAP Integration Suite - API Management and Cloud Integration. It is required for exposing a Cloud Integration iFlow via API Management. Taking advantage of the functionality provided by API Management to govern and monitor the calls made to the Cloud Integration iFlow.

Background Information

During a recent integration project, we were challenged with designing a solution to expose internal Cloud Integration iFlows inside SAP BTP Integration Suite for external access from third party applications. 
To address this, we created an API in API Management that will act as a proxy to the Cloud Integration iFlow. 

From the API Provider menu, the Cloud Integration Flow type is not available for creation:

 Image-1.jpg

Systems and Platforms 

  • SAP BTP Integration Suite (Cloud Integration and API Management): Integration Platform. 
  • Third Party External Applications 
  • SAP S4HANA 
     

Architecture Diagram 

Image-2.jpg

  1. Third Party External Applications trigger the message 
  2. SAP API Management receives the message 
  3. SAP Cloud Integration iFlow process the message 
  4. SAP S/4HANA receives the message and perform the activities 

 

BTP SAP Process Integration Runtime Instances 

Two SAP Process Integration Runtime instances are required with different plans. One of integration-flow plan and another of api plan. More information about the type of the plan can be found in the following documentation. In both instances, a Service Key is required: 

 Plan integration-flow: 

Image-3.jpg

Image-4.jpg

Plan api: 

Image-5.jpg

Image-6.jpg

Generic iFlow   

A generic and simple iFlow is required to serve as the basis for the Discovery process.  
Create an iFlow called CI_IFLOW and assign a HTTPS Sender adapter with the following configurations: 

Image-7.jpg

After saving, deploy this iFlow. 

 

API Management - API Provider CI_PROVIDER 

 Create an API Provider to get the deployed Cloud Integration iFlows. 

Name: CI_PROVIDER 
Description: API Provider to get the deployed Cloud Integration iFlows 
Type: Cloud Integration 
Cloud Integration Management Host: ….hana.ondemand.com  (Get the value of field “url” from BTP Instance ins-ci-api – default key) 
Port: 443 
Authentication: OAuth2ClientCredentials 
Client ID: sb-..….6 (Get the value of field “clientid” from BTP Instance ins-ci-api – default key) 
Client Secret: a….= (Get the value of field “clientsecret” from BTP Instance ins-ci-api – default key) 
Token URL: https://....hana.ondemand.com/oauth/token (Get the value of field “tokenurl” from BTP Instance ins-ci-api – default key) 
 

Image-8.jpg 

Image-9.jpg

 

API Management - API Proxy CI_IFLOW + API Provider CI_IFLOW 

Create an API Proxy called CI_IFLOW. 

Select the Create button: 

Image-10.jpg

Select the API Provider CI_PROVIDER and choose button Discover: 

Image-11.jpg

Select the iflow CI_IFLOW and Next: 

Image-12.jpg

Select the OAuth2ClientCredentials and fill the other required fields 

Client ID: sb-….6 (Get the value of field “clientid” from BTP Instance ins-ci-flow – default-key) 
Client Secret: 8…= (Get the value of field “clientsecret” from BTP Instance ins-ci-flow – default-key) 
Token URL: https://....hana.ondemand.com/oauth/token (Get the value of field “tokenurl” from BTP Instance ins-ci-flow – default-key) 
 

Image-13.jpg

Select the button Done. 

The required fields will be automatically filled.  
Confirm the information and select the button Create: 

Image-14.jpg

The API Proxy CI_IFLOW will be created: 

Image-15.jpg

The API Provider CI_IFLOW will be automatically created with the type of Cloud Integration Flow: 

Image-16.jpg

Image-17.jpg

 

API Management - API Proxy for Integration Flow 

When creating the API Proxy of the Cloud Integration Flow, select the API Provider CI_IFLOW: 

Image-18.jpg

 

Benefits/Advantages of the implemented solution 

This solution utilizes an approach that harnesses the strengths of SAP Cloud Integration + API Management while addressing common challenges associated with authentication and integration. The emphasis on leveraging out-of-the-box capabilities contributes to the efficiency and reliability of the overall solution. 
 


Conclusion

Overall, the solution not only meets the specific requirements of the project but also sets the foundation for a robust and configurable data integration framework. This approach facilitates seamless data flow from external systems to Cloud Integration Flows via API Management. 

I would be more than happy to hear from our SAP Community about similar experiences with this or other integration requirements. 

Please share your feedback in the comments below. I welcome any thoughts you may have on this solution. I encourage you to share similar requirements and how you solved them. 

Thank you for reading! 

Fellipe Mendes

1 Comment
Labels in this area