Creating a Replication Flow

Create a replication flow to copy multiple data assets from a source to a target with support for delta loads.

Prerequisites

To create flows, you must have a scoped role that grants you access to a space with the following privileges:
  • Data Warehouse General (-R------) - To access SAP Datasphere.

  • Data Warehouse Connection (-R------) - To access remote objects.

  • Data Warehouse Data Builder (CRUD----) - To create, edit, and delete flows.

  • Space Files (CRUD----) - To create, read, update, and delete objects in your spaces.

To run and schedule flows, you must, in addition, have the following privileges:
  • Data Warehouse Data Integration (-R------) - To view data integration task logs in the Data Integration Monitor app.

  • Data Warehouse Data Integration (--U-----) - To manually run data integration tasks.

  • Data Warehouse Data Integration (----E---) - To schedule data integration tasks.

The DW Modeler role template, for example, grants the privileges to create and manage flows, and the DW Integrator role template grants the privileges to run them. For more information, see Privileges and Permissions and Standard Roles Delivered with SAP Datasphere.

Context

For a full list of connection types that can be used as sources and targets, see Select Source and Target Connections for Replication Flows.
You can use replication flows to copy data from the following source objects from ABAP sources:
  • CDS views (in ABAP-based SAP systems) that are enabled for extraction.

  • Tables that have a primary key.

Procedure

  1. In the side navigation area, select (Data Builder), select a space if necessary, and select New Replication Flow to open the editor.
  2. Select a source connection and a source container, then add source objects (see Add the Source for a Replication Flow).

    The side panel shows the properties of your replication flow. Complete the missing information as appropriate:

    Property

    Description

    Business Name

    Enter a descriptive name to help users identify the object. This name can be changed at any time.

    Technical Name

    Displays the name used in scripts and code, synchronized by default with the Business Name.

    Package

    Select the package to which the object belongs.

    Packages are used to group related objects in order to facilitate their transport between tenants. For more information, see Creating Packages to Export.

    Status

    [read-only] Displays the deployment and error status of the object.

    For more information, see Saving and Deploying Objects.

    Delta Load Frequency

    [only relevant for load type Initial and Delta and Delta Only] Define the time interval for replicating changes from the source to the target.

    For more information, see Configure the Run Settings of a Replication Flow.

    Status

    [read-only] Displays the overall status of the replication flow run, for example Not Run Yet. For more detailed information, go to the flow monitor.

    Frequency

    [read-only] Displays the run frequency, if applicable, for example Scheduled.

    Skip Unmapped Target Columns

    [only relevant if the target table has columns that don't exist in the corresponding source object] Activate this option if you want to skip target columns that don't exist in the source. For more information, see Add the Target for a Replication Flow.

    Content Type

    [only relevant for ABAP-based source systems] Select a content type to control how date and other data types are converted in the target table.

    You can choose between 2 content types:
    • Template Type: The data types used in the source table are applied to the target table. DATE and TIME columns keep their corresponding date and time data types.

    • Native Type (default): Different data types are applied to the target table based on the source metadata. DATE and TIME columns are represented as string using the native length provided by the source metadata.

    For more information, see SAP S/4HANA and Other ABAP Sources for Replication Flows.

    Merge Data Automatically

    [Replication flows created in file space] Select this option to automatically merge new data into your local table (file). When new data appears in the inbound buffer, a merge task runs automatically and updates the target table using the default Apache Spark application defined in Space Management or per local table (file) in the Data Integration Monitor. To control the associated workload, you can adjust the delta load interval of the replication flow or disable this setting and run the merge task separately with a less frequent schedule. For more information, see Monitoring Local Tables (File)

    Delta Load Run

    You can define how delta-enabled objects run in a replication flow:

    • On Delta Interval (default): The replication flow runs as a long-running task and continuously checks for new delta records based on the configured interval.

    • At Scheduled Time: The replication flow processes available delta records and then completes. Use this option if you want to run the replication flow manually, on a schedule, or as part of a task chain. For more information, see Configure the Run Settings of a Replication Flow

    Capture Source Schema Changes

    Detects compatible source schema changes and allows you to apply supported changes without restarting the replication flow. Available only for replication flows that use the SAP ABAP connection type with an SLT container and replicate to SAP Datasphere (HANA) or Local Table (File) targets. Apply 3691739 Information published on SAP site to the ABAP source system before enabling this option. For more information, see Modify Replication Flow Object Schemas and Settings

    Source Thread Limit (1-160)

    It displays the number of replication threads that will be used by your replication flow to load the data from the source. The value that is entered here determines how many partitions can be processed in parallel during an initial data load. Default value is 10. The value is read-only at design time. Once you have deployed successfully the replication flow, you can update the value with the Edit button. For more information, see Configure the Run Settings of a Replication Flow.

    Target Thread Limit (1-160)

    It displays the number of replication threads that will be used by your replication flow to write data to the target. The value that is entered here determines how many partitions can be processed in parallel during an initial data load to the target. Possible values are integers between 1 and 160, the default is 10. The value is read-only at design time. Once you have deployed successfully the replication flow, you can update the value with the Edit button. For more information, see Configure the Run Settings of a Replication Flow.

  3. Select a target connection and target container (see Add the Target for a Replication Flow).
  4. Click (Browse target settings) to review the default target settings for your replication flow and change or complete them as appropriate (see Configure the Run Settings of a Replication Flow).
  5. Select a replication object in the canvas to review its properties in the side panel and change or complete them as appropriate:

    Property

    Description

    Projections

    Add a projection to define a filter or mappings. For more information, see Define Filter Expressions in a Replication Flow Object Projection and Define Mappings in a Replication Flow.

    Delta Capture

    [only relevant for local tables] Enable this option if you want the system to keep track of changes in your data source. Once enabled, the name of the delta capture table is displayed.For more information, see Capturing Delta Changes in Your Local Table.

    Load Type

    Select how you want to load the data (initial only, initial and delta, or delta only).

    For some connection types and use cases, only one of these options is available. For more information, see Configure the Run Settings of a Replication Flow andSelect Source and Target Connections for Replication Flows.

    ABAP Exit

    [only relevant for replication of CDS views and if this feature is supported for the source] Select a BAdI implementation to add your own projection logic for replication of CDS view data.

    For more information, see Define Custom Projection Logic in a Replication Flow.

    Delete All Before Loading

    Enable this option to delete any existing content in the target. For some connection types and use cases, this property has a fixed value that cannot be changed.

    For more information, see Configure the Run Settings of a Replication Flow.

    Maximum Parallel Delta Transfers

    Enter the number of threads to be used for parallel processing during delta load. This option is available for SLT tables, CDS views, and CDS view entities that have load type Initial and Delta or Delta Only.

    For more information, see Configure the Run Settings of a Replication Flow.

    Target Columns

    Lists the target column names. A key symbol next to a column name indicates that this column is a key column.

    Storage

    This describes the type of storage available in the space.

  6. Click (Save).
  7. Click (Deploy) to make your replication flow ready to run.

    When you deploy your replication flow, it gets saved in the shared repository and is available for other users to view, import, or modify.

    When deploying your replication flow, the system does a series of validation checks and outputs an error message if it finds an issue in the flow configuration.

  8. Click (Run) to start your replication flow.

    For more information about how to monitor your replication flow run, see Monitoring Flows.

  9. The tools in the editor toolbar help you work with your object throughout its lifecycle:

    Tool

    Description

    (Save)

    Save your changes to the design-time repository. You can use Save As to create a copy of the object.

    See Saving and Deploying Objects.

    (Deploy)

    Deploy your changes to make them available in the run-time environment.

    See Saving and Deploying Objects.

    (Run)

    Run the object to obtain or update its output results.

    You must deploy the object before you can run it.

    (Export)

    Export the object to a CSN/JSON file.

    See Exporting Objects to a CSN/JSON File.

    (Add Projection)

    Define a projection (filter or mapping) for an object by selecting it and choosing Add Projection.

    See Define Filter Expressions in a Replication Flow Object Projection and Define Mappings in a Replication Flow

    (Impact and Lineage Analysis)

    Impact and Lineage Analysis

    Versions

    Open the Version History dialog for the object.

    See Reviewing and Restoring Object Versions.

    Details

    Toggles the display of the Properties panel.

    (Runtime Email Notification)

    Configure email notification to receive an email when the replication of an object fails during a replication flow run. For more information, see Configure Email Notification for Replication Flow Failure at Object Level

    (View Dependent Replication Flows)

    Display which target objects are reused as source objects in other replication flows.