You are on page 1of 7

9/6/22, 3:02 PM Extract and Integrate Data from SAP S/4HANA Cloud by using CPI Part I | SAP Blogs

Community Topics Groups Answers Blogs Events Programs Resour

Ask a Question Write a Blog Post Login

Technical Articles

Jacky Liu
September 6, 2022
| 2 minute read

Extract and Integrate Data from SAP


S/4HANA Cloud by using CPI Part I

Follow  0  0  76

In the  blog Extract and Integrate Data from SAP S/4HANA Cloud using CDI by
 Like Venu Krishna Murthy, the method of data integraion with the tool CDI has been
clearly explained .

 RSS Feed But some customers haven’t purchased CDI , they only have purchased CPI and
they also have the requirements to do data integration with S/4 hana cloud , Is it
possible to do this with CPI . By this blog, I want to do some discovery with CPI .

Note:  For data integraion , I recommand SAP Data Intelligence or SDI or BW ETL
.But comparing to the method of using business Odata API to do data integration
with S/4 Hana Cloud, I recommend to use CDI Api(SAP_COM_0531) with CPI to
do data integration.

In the blog Part I , I will show steps to  use postman to test CDI
Api(SAP_COM_0531) in S/4 Hana Cloud and communication arrangement is
SAP_COM_0531.

Prerequisite:
1, Customer has S/4 Hana Cloud gone alive

2, You have installed postman .

https://blogs.sap.com/2022/09/06/extract-and-integrate-data-from-sap-s-4hana-cloud-using-cpi-part-i/ 1/7
9/6/22, 3:02 PM Extract and Integrate Data from SAP S/4HANA Cloud by using CPI Part I | SAP Blogs

Procedure:

Step 1:  Create communication system, communication user,


communication arrangement in S/4 Hana Cloud .

Step 2,  Query CDS provider to find the purchase order item
provider ID .
 

https://blogs.sap.com/2022/09/06/extract-and-integrate-data-from-sap-s-4hana-cloud-using-cpi-part-i/ 2/7
9/6/22, 3:02 PM Extract and Integrate Data from SAP S/4HANA Cloud by using CPI Part I | SAP Blogs

Step 3 , Create  Subscription for purchase order item with


following json data :

{"NamespaceID": "ABAP_CDS","ProviderID": "C_PURCHASEORDERITEMDEX",

get  x-csrf-token

create  purchase order item subscription :

https://blogs.sap.com/2022/09/06/extract-and-integrate-data-from-sap-s-4hana-cloud-using-cpi-part-i/ 3/7
9/6/22, 3:02 PM Extract and Integrate Data from SAP S/4HANA Cloud by using CPI Part I | SAP Blogs

Step 4,  Use CurrentDeltaLink from subscription to do initial  data


extract from S/4 Hana Cloud

https://blogs.sap.com/2022/09/06/extract-and-integrate-data-from-sap-s-4hana-cloud-using-cpi-part-i/ 4/7
9/6/22, 3:02 PM Extract and Integrate Data from SAP S/4HANA Cloud by using CPI Part I | SAP Blogs

In initial data extract, the data volumn maybe hug, the data can not be extracted
with one extraction, we can use nextLink which include deltatoken and skipToken
to do the next initial extraction untill all the data has been extracted .

Step 5,  After all the initial data extractions have been fully
done, we can find both CurrentDeltaLink and PreviousDeltaLink
in reading subscription, we can use CurrentDeltaLink to do delta data
extraction from S/4 Hana Cloud  

The End!

In the next blog Part II, I will explain how to use CPI to realize  data initial extract
and Delta extact from S/4 Hana Cloud .

https://blogs.sap.com/2022/09/06/extract-and-integrate-data-from-sap-s-4hana-cloud-using-cpi-part-i/ 5/7
9/6/22, 3:02 PM Extract and Integrate Data from SAP S/4HANA Cloud by using CPI Part I | SAP Blogs

Best Regards!

Jacky Liu

Alert Moderator

Assigned Tags

SAP Integration Suite

SAP S/4HANA Cloud

cdi

data integration

Similar Blog Posts 


SAP Cloud Integration into SAP BW/4HANA
By
Frank Riesner Sep 22, 2021

Integrate SAP S/4HANA Cloud with SAP Cloud Platform Integration using SOAP APIs - Part 1
By
Marcel Wolf Mar 03, 2018

Integrate SAP S/4HANA Cloud with third-party Warehouse Management System (WMS) by SAP Cloud
Platform Integration Suite - Part 1
By
Arvin Wu Dec 18, 2020

Related Questions 
Help: SAP CPI Connection Service User -> S4 Hana
By
Sergio Alberto Oliveira Jun 04, 2021

Customer Master Integration between S/4 HANA and external system

https://blogs.sap.com/2022/09/06/extract-and-integrate-data-from-sap-s-4hana-cloud-using-cpi-part-i/ 6/7
9/6/22, 3:02 PM Extract and Integrate Data from SAP S/4HANA Cloud by using CPI Part I | SAP Blogs

By
girdhari mondal May 15, 2018

How to replicate product data from S4 Hana Cloud to HCI


By
Rajapriya Ravi Jul 24, 2018

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Find us on

Privacy Terms of Use

Legal Disclosure Copyright

Trademark Cookie Preferences

Newsletter Support

https://blogs.sap.com/2022/09/06/extract-and-integrate-data-from-sap-s-4hana-cloud-using-cpi-part-i/ 7/7

You might also like