Data Extraction from SAP S/4HANA CDS View to a File Store

In this example, the source is an SAP S/4HANA.

Not mandatory, but for convenience, this example may be extended to read the data from the written files and to feed into the Terminal operator.

Prerequisites

  • You need a valid connection to SAP S/4HANA. Please create a valid and checked connection to an SAP S/4HANA environment or to an SAP NetWeaver/ABAP based system that supports the CDS technology. Please use the related description of the SAP DI - Connection Management to implement and test such a connection. In this example the communication is based on HTTPS, but you may use other protocols such as HTTP, RFC or (WebSocket) WSRFC

  • You need a valid connection to a file store and the ability to create, read and write files to that file store location. Please use the related description of the SAP DI - Connection Management to implement and test such a connection.

  • A couple of Operators need to be in place:
  • The CDS View must allow data extraction via the annotation: @Analytics:{ dataExtraction: enabled: true ... for delta extraction. The delta.changeDataCapture part of the annotation needs to be maintained correctly.

Configure and Run the Graph

  1. In this example the ABAP CDS Reader is configured to execute an initial load. The CDS Reader supports 3 ways to load data: a) the straight forward Initial Load, which copies the data from source to target but without any subsequent replication. b) the Replication, which includes the Initial Load and - based on a delta handling - the subsequent replication of changed data. c) the Delta Processing, which implies that no Initial Load takes place and changed data only will get processed.

  2. The ABAP Converter feeds via a Message Converter into a Go operator Determine Last Batch, which checks whether the SLT-based replication got stopped and is then launching a soft-kill (used at Check Last Batch)

  3. The data keep flowing into a Go operator Limit File Size, which controls the file size as a parameter and the file counter.

  4. The Write File Operator uses the configured 'append' mode to fill into `/tmp/file_<header:ABAPfilenumber>.csv` and its configured connection.

  5. The Go operator Check Last Batch terminates the graph in case of the end of the replication; without the two operators * Last Batch, it can happen that the graph gets terminated before the last write gets completed.

  6. (optional) To simply visualize the file, the just used and created file may be read again and sent to Terminal.

  7. Use to execute this Graph.

Data Integration and Data Security

Please make yourself familiar with the related Integration Guides and Security considerations such as User Guide for ABAP Integration in SAP Data Intelligence, the Administration Guide for SAP Data Intelligence Cloud, and SAP Note 2831756 Information published on SAP site .