[SAP CPI] – WORKING WITH API IN INTEGRATION SUITE

Hi guys, after go around services on SAP BTP, I come back to post about SAP Integration Suite – CPI. Today I want to share my understand How to call API in Integration Suite to access data.

Let me example, we want to access to MPL (Message Processing Log) of integration suite to get data in it, we want to get message application id to check dupplicate data or not. How can we do ?

To resolve this requirement, I thought one way by using API in CPI to get message application from integration flow by HTTP receiver adapter and get response data compare with input value to check dupplication

Kindly reference here for API in integration Suite

https://help.sap.com/docs/CLOUD_INTEGRATION/368c481cd6954bdfa5d0435479fd4eaf/3fd9fc923dee4d5db0696cfdce187154.html

To Try It, reference here https://api.sap.com/api/MessageProcessingLogs/overview

Create instance and service key for API Client

To call API in Integration Suite, first we should be create instance and service key with plan is API to get access token for API Client.

Go to SAP BTP Cockpit

Go to Subaccount

Create New Instance

Next step, we have to choose ROLES. Kindly reference on SAP Help to determine ROLEs.

To access data in MPL, we just need ROLE MonitorDataRead

After finish, we have client id, client serect and token URL, and host to connect API in next step.

Call API in Integration Suite

After create instance and service key, in this step we will call API in Integration Suite from POSTMAN Tool.

General enpoint for API in integration suite will be https://<URL Host>/api/v1/MessageProcessingLogs

Base on information in service key above, we start call API fro POSTMAN

We have many API to get data from CPI, kindly explore more detail on SAP Help.

Summary

In this article, I shared how to get data from CPI, example MPL from API Client. To do this, we should be create service intance Process integration runtime with plan api. One more, we have to get ROLE MonitorDataRead. Thanks for your reading and any advise, kindly leave your comment on this.

Thanks.

Joseph.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.