SAP Manufacturing Integration and Intelligence (SAP MII) is used to improve your manufacturing processes. SAP PRESS has recently published the book Implementing SAP MII co-authored by Dipankar Saha (Principal Architect – Incture Technologies).
WRITTEN BY
Alisha Viz
10th June 2022
INTEGRATION
Introduction
Hi Guys!!! So this is my first technical blog post on SAP CPI. Hope you guys are going to like it.
As we know, Cloud Platform Integration (CPI) is SAP’s cloud middleware that allows blending between cloud and on-premise applications with third-party SAP and non-SAP products. Take it as given, I am assuming you are already familiar with CPI.
Till now, we have learnt about triggering postman using basic authorization. In this blog I am going to demonstrate triggering postman via OAUTH 2.0.
For more information on CPI, refer https://blogs.sap.com/2020/01/03/sap-cloud-platform-integration-cpi-part-1-know-your-tool/
Pre-Requisite:
2. Postman is Installed
The below figure shows the integration flow that you get as an outcome of this exercise.
2. Navigate to Instances tab under Security
3. Service Instances and Keys are created at Cloud Foundry level when we set up our account. Navigate to your Cloud Foundry where Process Integration Runtime service keys has been created. In SAP Cloud Platform trial a default space named dev is automatically created when you will enable the trial environment.
4. Select View parameters from the icon with three vertical dots.
5. After clicking on View, you will find this type of service key on right hand side of screen, click on that.
6. Save that information confidentially in any notepad.
5. After clicking on View, you will find this type of service key on right hand side of screen, click on that.
6. Save that information confidentially in any notepad.
TESTING THE FLOW
For testing the above flow, I have used postman. You can use any other test console too.
1. Navigate to the postman app and click on the + sign on top.
2. Select the POST method.
3. Paste the CPI enpoint url in the link space.
4. Choose Oauth 2.0 from the authorization tab.
5. Refer to the image below
An OAuth token contains sensitive information. We also have a choice to share the token. As you can see the sync icon under authorization tab. By default they dont keep it in sync position. But the token is still restored in your session.
Conclusion: To summarise, we are triggering the SAP CPI artifact via Oauth instead of Basic authorization using Postman.
For more information refer:Â https://blog.postman.com/collaborating-oauth-postman/
Do like, share and comment if you found this helpful.
See you again….
SAP Manufacturing Integration and Intelligence (SAP MII) is used to improve your manufacturing processes. SAP PRESS has recently published the book Implementing SAP MII co-authored by Dipankar Saha (Principal Architect – Incture Technologies).
This is my first blog Post where I have been tried to describe a real time scenario of CPI where we have to call the iflow followed by another iflow and spilt the data and fetch it with looping process call.