0% found this document useful (0 votes)
30 views3 pages

Sandbox

Uploaded by

siva.sappipo4522
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views3 pages

Sandbox

Uploaded by

siva.sappipo4522
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Invoking testing environment(sandbox)API in artifact

Table of Contents

1) Creating and setup account in SAP business accelerator hub

 Atfirst login to SAP business accelerator with btp login credentials


 Click on exploreAPIcloud integration(API package)integration
content(odata v2)Tryout tab
 You will find the resources like integration packages, runtime artifacts, designtime
artifacts etc and consume the resources according to requirement
 On the right corner, you will get APIKEY,paste it in notepad
 Click on integration packages resource and “GET”call you will get a testing
environment of sandbox demo metadata copy url in notepad example:
https://sandbox.api.sap.com/cpi/api/v1/IntegrationPackages

2)Consuming sandbox environment in artifact

2.1) Create an Integration Flow (iFlow):

 Log in to your SAP CPI tenant.


 Navigate to the Design tab and create a new integration package.
 Inside the package, create a new integration flow.

1
2.2) Add a sender system with https adapter

 Drag and drop a Sender adapter (e.g., HTTPS) to the iFlow canvas.
 Configure the sender adapter with the necessary details like the endpoint URL
(/address)

2.3) Add a Content Modifier:

 Drag and drop a Content Modifier to set the headers required for the API call.
 In the Message Header section, add a new header,take 3 headers
 Name: 1)APIKey 2)Accept 3)Content-Type
 Type: 1,2,3)Constant
 Value: 1)Your actual API key 2)application/json 3)application/json

2.4)Add a request reply

 Drag and drop a Request-Reply step to the iFlow.


 This step will be used to call the SAP CPI API.
2.5)Configure the Receiver Adapter:

 Drag and drop a Receiver adapter (e.g., HTTP) to the iFlow canvas.
 Configure the receiver adapter with the following details:
 Address: https://sandbox.api.sap.com/cpi/api/v1/IntegrationPackages
 HTTP Method: GET (or the appropriate method for your use case)
 Authentication: Select None (since you are using an API key in the header)
 Request headers : APIKey, Accept, Content-Type

3) Deploy the iFlow:


 Save and deploy your iFlow.
 Test the iFlow by sending a request to the sender adapter’s
endpoint.
 Endpoint available in monitor sectionmanage integration
contentcopy the url and trigger in postman.

4) Output :

2
3

You might also like