ABAP CDS Reader

Use the ABAP CDS Reader operator to read data from a CDS view.

SAP Data Intelligence can take one of the following actions with the ABAP CDS Reader:
  • Initial load: read all the data from the CDS view once.

  • Replication: initial load and then follow up on subsequent changes.

  • Delta load: only follow up on changes without doing an initial load first.

General Concepts

The following general concept sections in ABAP Operators General Concepts are relevant for this operator:

  • Authorizations

  • Versioning

  • Subscriptions

New Features

As of V2, the output type for the CDS Reader operator has changed from abap.* to message. Also, ABAP metadata is available for CDS Reader. For more information, see the section Output.

Configuration Parameters

Name

ID

Type

Description

Relevant in Version

ABAP Connection

connectionID

string

Required. Connection information for the remote ABAP system. Select a predefined ABAP connection from the Connection Manager.

Default: ""

V0, V1, V2

Version

operatorID

string

Required. Specific version of the operator.

Default: ""

V1, V2

ABAP CDS Name

cdsname

string

Name of the CDS view.

Default: ""

V0, V1, V2

Subscription Type

subscriptionType

string

Choose one of the following values:
  • New: new subscription

  • Existing: reuse existing subscription

Default: "New"

V1, V2

Subscription Name

subscriptionName

string

Name of the subscription

Default: ""

V1, V2

Subscription ID

subscriptionID

string

ID of the subscription.

Default: ""

V1, V2

Transfer Mode

action

string

Choose one of the following values:
  • Initial Load: initial load only

  • Replication: replication of delta information (including initial load)

  • Delta Load: replication of delta information only (no initial load)

Default: "Initial Load"

V0, V1, V2

Records per Roundtrip

Chunk size

integer

Maximum number of records to output in one round trip.

The actual number of records per roundtrip depends on multiple factors, but can't be larger than the specified value.

Possible values are all integer numbers from 1 to 1,000,000.

Default: 50,000.

V0, V1, V2

Subscriptions and Related Topics

Availability Options

  • The subscription feature is available for the ABAP CDS Reader as of SAP S/4HANA 2020 FPS00.

  • The Resilience Subscription Eraser operator doesn't work for ABAP CDS Reader subscriptions in SAP S/4HANA OP 2020 FPS00. For more information, see SAP Note 2967162 Information published on SAP site.

  • V2 of the ABAP CDS Reader is available as of SAP Data Intelligence 3.0, but not with older on-premise releases of SAP Data Intelligence.

Function

When you create a graph that includes the ABAP CDS Reader, set the subscription type to New, and enter a subscription name in the configuration panel.

Resume Data Loading

To resume data loading for a graph after it stops, perform the following steps:
  1. Set the subscription type to Existing.

  2. Choose the subscription ID that corresponds to the applicable subscription name. (SAP Data Intelligence generated the subscription ID automatically when you created the replication.)

  3. Choose the CDS name from the configuration panel.

  4. Choose the transfer mode from the configuration panel.

Find the subscription ID for your subscription name in any of the following locations:
  • Process logs of your run graph in the Modeler.

  • Resilience Subscription Eraser operator.

  • Table DHAPE_SUBSCR or LTAPE_SUBSCR (respectively), depending on your ABAP system, in the source ABAP-based system.

Input

None.

Output

The following table describes the output for the ABAP CDS Reader based on the version.

Version

Output

Description

V0 and V1

outData

Output the CDS data; type: abap.*.

V2

outMessageData

Output the CDS data; type: message.

In addition, the output data type depends on the type of the CDS view that the operator is reading. It's extended by an additional field that specifies the operation:
  • I = Insert

  • U = Upsert

  • D = Delete

If you use CDS Reader V2, the output operator provides a message output that consists of metadata in the header of the message. Information includes the column names with respective data types, and the lastBatch attribute (type boolean), which indicates if the current batch is the last one. The following table describes the output attributes.

Attribute

Description

Fields

Object metadata from ABAP source system including field names and data types provided in JSON format.

message.lastBatch

Boolean that indicates if the current batch is the last one in the data ingestion process.

message.batchIndex

Number (integer type) that indicates which batch is being processed, starting from 0.