Add or Create a Target Table in a Data Flow

Add a target table to write data to. You can only have one target table in a data flow.

Procedure

  1. Add a target table to the data flow in one of the following ways:
    • Click (Add Table) in the toolbar, and drag and drop it onto the canvas to create a new target table

      The target table is added to your data flow. The text New at the bottom-right of the operator shows that the table is newly added.

    • Drag an existing table from the Source Browser, drop it onto the canvas, and click the floating Target button to use it as the target table. You can choose:

  2. Click and drag the port on the right of the last operator in your data flow and drop it onto the target table.

    A flow is created between the operator and the target table.

  3. Click the target node to display its properties in the side panel, and complete the properties in the General section:

    Property

    Description

    Label

    Enter a label to display in the target table symbol.

    Business Name / Technical Name / Type / Connection

    [read-only] Provide information to identify the target table.

    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.

    Type

    Type of object. For example: a local table.

    Mode

    Specifies the mode with which to write to the target table or modify the data in the target table..

    You can choose between:
    • Append: Write the data obtained from the data flow as new records appended to the end of the target table.

    • Truncate: Erase the existing data in the target table and replace it with the data obtained from the data flow.

    • Delete: Delete records in the target table based on the columns mapped in the target. All the column mappings are considered for the match condition and if the value of these columns match the record in the target table, the record will be deleted.

    Update Records By Primary Key (UPSERT)

    [Append mode] Instructs the flow to update, where appropriate, existing target table records that can be identified by their primary keys. If this option is not selected then all source records (including those that are already present in the target table) are appended, which may cause duplicate key errors.

    This feature is based on the UPSERT statement (see Upsert in the SQL Reference for SAP Vora in SAP Data Intelligence guide).

    Status

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

    For more information, see Saving and Deploying Objects.

    Use As

    [read-only] Specifies whether the table is used as a Source or Target in the data flow.

  4. In the Mappings section, review the mappings of incoming columns to the target table columns.
    • When you connect any operator to the target table, each incoming columns that has the same name and a compatible data type with a column in the target table is automatically mapped to it.

    • You can manually map an incoming columns with a target table column that has a compatible datatype by dragging the column from the left list and dropping it onto the appropriate column in the right list.

    • To delete a mapping, select it, and click Delete. To delete all mappings, Remove all Mappings.

    • You can, at any time, click (Auto Map) to relaunch automapping based on names and datatypes.

  5. In the Columns section, view the columns of the target table. To check the data type of a column, hover over it and click .
  6. [optional] In the Advanced section, configure the following properties:

    Property

    Description

    Control Batch Size

    To enforce a specific value for Batch Size, toggle this switch.

    Batch Size (Number of Rows)

    Specifies the amount of data being read. That is, it indicates the number of rows that will be fetched from the source in each request.

    Enable ODBC Tracing

    : [SAP HANA connection only] Enable this option to create a new log file in the vflow graph pod with HANA ODBC debug logs.

    Access Method

    Select the open connector API to use to access the data:
    • GET: The Open Connectors data query API is called directly once per page to retrieve data. It's the recommended default method, except in cases of large amounts of data.

    • BULK: An asynchronous query job is created on Open Connectors to start streaming the data. It's better to use this method to get better performance in cases of large amounts of data.

  7. Click Create and Deploy Table in the properties panel to create and deploy the newly added target table to the repository in your space.

    This step is not necessary if you added an existing table.