6

Extract and Integrate Data from SAP S/4HANA Cloud by using CPI Part II

 1 year ago
source link: https://blogs.sap.com/2022/09/06/extract-and-integrate-data-from-sap-s-4hana-cloud-by-using-cpi-part-ii/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
September 6, 2022 2 minute read

Extract and Integrate Data from SAP S/4HANA Cloud by using CPI Part II

In Part I, I have explained how to test  CDI API  in S/4 Hana Cloud whose target is data integration . In part II, I will explain how  to realize  initial data extraction and delta data extraction with background job in CPI with Iflow .

For initial data extraction, the data volumn is big especially for business objects like sales order ,purchase order etc . If the skipToken shown up in returned body nextLink field,that means the iflow need to continue reading data base on delta token and skipToken .  Otherwise the  iflow can stop reading data from S/4 Hana Cloud .

The following are the main screen shot for init data extraction iflow:

57.png
58.png
59.png
60.png
61.png
62.png
63.png

The following is the screen shot after the inflow run. This initial data extraction only run once for a subscription, but it will run untill there is no further data in initial data extraction base on skipToken .

64.png

For delta data extraction, the iflow need to read subscription first to get CurrentDeltaLink,  then do the delta data extraction by using CurrentDeltaLink . The following are screen shots for the delta data extraction iflow , it triggered by timer after deployment.

66.png
67.png
68.png
69.png
70.png
71.png

After this iflow deployed , it will do the delta  data extraction from S/4 Hana Cloud  with background job defined in Timer .

The End.

Best Regards!

Jacky Liu


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK