Creating a Transformation Flow

Create a transformation flow to load data from one or more sources, apply transformations (such as a join), and output the result in a target table. You can load a full set of data from one or more sources to a target table. You can add local tables and views, Open SQL schema objects, and also remote tables located in BW Bridge spaces. You can also load delta changes (including deleted records) from one source table to a target table.

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

A transformation flow run is a one-time event that completes when the relevant data is loaded to the target table successfully. You can run a transformation flow multiple times, for example if you are loading delta changes to the target table.

Creating a transformation flow involves two important steps:
  • Creating a graphical view transform or an SQL view transform to load data from sources and to transform data.

  • Adding a target table to the transformation flow and mapping the columns from the graphical view transform or SQL view transform created in the first step to the target table.

In addition to working with flows in the editor, you can also:

Procedure

  1. In the side navigation area, click (Data Builder), select a space if necessary, and click New Transformation Flow to open the editor. The system displays the New Transformation Flow screen.
  2. Create a graphical view transform or an SQL view transform to load data from sources and to transform data. To create a graphical view transform, click the Graphical View Transform button (see Create a Graphical View in a Transformation Flow). To create an SQL view transform, click the SQL View Transform button (see Create an SQL View in a Transformation Flow).
  3. Click the Back button to return to the Transformation Flow Editor. Add or create a target table that the transformation flow will write its data to (see Create or Add a Target Table to a Transformation Flow).
  4. Click the Details button to display the Transformation Flow Properties panel.
    In the General section, you can view the following properties:

    Property

    Description

    Business Name / Technical Name

    Information to identify the transformation flow.

    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

    The deployment and error status of the object. For more information, see Saving and Deploying Objects.

    Load Type

    Select the relevant load type.

    The following options are possible:

    • Initial Only

      Loads the full set of data to the target table.

    • Initial and Delta

      If you want to load delta changes from a source table, you need to ensure that the value of the option Delta Capture is On for both the source table and for the target table.

      The first time you run the transformation flow, the system will load all the full set of data to the target table. For subsequent runs, the system will only load delta changes to the target table.

    Runtime

    Runtime is used to run the transformation flow. It can be HANA (for a transformation flow in a space with Storage Type SAP HANA Database (disk and In-Memory)) or SPARK (for transformation flow in a space with Storage Type SAP HANA Data Lake Files).

    Run Status

    View the details of the last run.

    You can view the details of the last run. You can view the date and time of the run as well as the status, for example Completed. In addition, you can choose:
    • Schedule: run your transformation flow at later time, or on regular basis.

    • Simulate Run: In the Data Integration Monitor, you can open the transformation flow and click Start of the navigation pathRun Next navigation step Run with Settings Next navigation step Simulate RunEnd of the navigation path to test a transformation flow and see if you get the desired outcome. Based on the result, you can decide to resolve errors or to optimize the flow to improve performances. No changes are saved in the target table. For more information, see Explore Transformation Flows.

    A transformation flow run fails if it lasts for over 48 hours.

    In the Run Status section, you can view the status of the transformation flow run.

    In the Input Parameters section, you can create input parameters to prompt them to enter values for filtering or other calculations when running the flow in SAP HANA runtime or Apache Spark runtime. See Create an Input Parameter in a Graphical View.
  5. Click (Save). A dialog box appears. Enter a business name and a technical name for your transformation flow.

    When you enter a business name, the system automatically suggests a corresponding technical name, but you can change the technical name if required. Both names must be unique within the space you work in.

  6. Click (Deploy) to make your transformation flow ready to run.
    • Newly created transformation flows are deployed for the first time.

    • Transformation flows that have changes to deploy are redeployed.

  7. 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.

    (Undo) / (Redo)

    Revert the last change to the object or redo a change you have previously undone.

    (Export)

    Export the object to a CSN/JSON file.

    See Exporting Objects to a CSN/JSON File.

    (Impact and Lineage Analysis)

    Open the Impact and Lineage Analysis graph for the object.

    See 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.

    Show Sources

    Enable to see the table and views used as sources for the view transform.

    Source objects are in read-only mode in the transformation flow editor. Click a source object to see additional information about them in the Properties side panel. Click (Open in New Tab) to open the source object in its own editor in a new tab.