Transferring data to SAP Database Warehouse Cloud

This guide explains how to transfer data to SAP Database Warehouse Cloud to store and further process information.

Concept

SAP Database Warehouse Cloud is an Active Destination. After you set SAP Database Warehouse Cloud as the Destination of a Datastream, data is transferred to SAP Database Warehouse Cloud each time data is fetched for the Datastream. For more information, see Destination types.

You can assign multiple Destinations to a Datastream. For more information on possible limitations, see Assigning multiple Destinations to a Datastream.

Prerequisites

Before you complete the procedure in this guide, perform all of the following actions:

  • Create a Datastream whose data you want to transfer to SAP Database Warehouse Cloud. For more information on creating a Datastream, see Introduction to collecting data.

  • Ensure you can log in to SAP Database Warehouse Cloud.

  • Ensure your SAP account has at least Admin privileges.

  • Determine Adverity's IP address and whitelist it in SAP Database Warehouse Cloud. For more information, see Determining Adverity's IP address. For more information on whitelisting the IP address, see the SAP documentation.

Procedure

To transfer data from a Datastream to SAP Database Warehouse Cloud, follow these steps:

  1. Add SAP Database Warehouse Cloud as a Destination to the Workspace which contains the Datastream or to one of its parent Workspaces.

  2. Assign the SAP Database Warehouse Cloud Destination to the Datastream.

  3. Configure transfer settings.

Adding SAP Database Warehouse Cloud as a Destination

To add Adverity as a connection within the SAP user interface, follow these steps:

  1. Log in to SAP Data Warehouse Cloud instance.

  2. Click Space Management.

  3. Click on your Adverity space.

  4. Go to the Connections section.

  5. Click to create a new connection. For more information on creating a connection, see the SAP documentation.

  6. Select Adverity from the list of connections.

  7. Enter your Adverity credentials. For more information, see the SAP documentation.

    Choose a Workspace where to add the Destination. If the selected Workspace does not have a Destination, the added SAP Data Warehouse Cloud Destination is made the default Destination. If the selected Workspace already has Destinations, the SAP Data Warehouse Cloud Destination is added to the list of available Destinations.

  8. Configure the connection properties. For more information, see the SAP documentation.

As a result, Adverity has been created as a connection in the SAP user interface, and an SAP Database Warehouse Cloud Destination is added to your selected Workspace.

Assigning SAP Database Warehouse Cloud as a Destination

To assign the SAP Database Warehouse Cloud Destination to a Datastream, follow these steps:

  1. Click the Connect element and select the Workspace you work with in Connect, Enrich & Transfer.

  1. Select the Connector Name Datastream.

  1. In the Destinations section, click + Add Destination.

  2. Click Assign Existing Destinations.

  1. Select the SAP Database Warehouse Cloud checkbox in the list.

  2. Click Save.

Configuring transfer settings

To configure transfer settings, follow these steps:

  1. Click the Connect element and select the Workspace you work with in Connect, Enrich & Transfer.

  1. Select the Connector Name Datastream.

  1. In the Destinations section, find the SAP Database Warehouse Cloud Destination in the list, and click on the right.

  2. Click Destination Settings.

  1. Fill in the following fields:

    Table name

    Specify the target in the Destination where to transfer data from the Datastream. The name can contain alphanumeric characters and underscores. For example, target_table. To specify a schema, use the syntax schemaName.tableName.

    The table name provided in Adverity must match the name of the table created in SAP Database Warehouse Cloud.

    By default, Adverity saves data from each Datastream in a different table named {datastream_type}_{datastream_id} (for example, mailgun_83).

    You can specify the same target table for several Datastreams. If a column is shared between Datastreams, Adverity performs a full outer join and concatenates values. If a column is not shared between Datastreams, Adverity writes null values in the relevant cells.

    Use placeholders to create unique, dynamic table names in the Destination. Use the following placeholders:

    Placeholder

    Description

    {datastream_id}

    The Datastream ID.

    {datastream_type}

    The Datastream Type.

    {extract_id}

    The Data Extract ID.

    {meta[*]}

    Replace * with a metadata placeholder to use metadata in the table name. For example, {meta[datastream_URI]} uses the Datastream URI as the table name. For more information on metadata and placeholders, see Using placeholders.

    {name}

    The automatically generated filename of the Data Extract.

    {scheduled_day}

    The day from the start date of a date range for a scheduled data fetch.

    {scheduled_month}

    The month from the start date of a date range for a scheduled data fetch.

    {scheduled_year}

    The year from the start date of a date range for a scheduled data fetch.

    Truncate

    Select this checkbox to delete all rows from the relevant table in the Destination before transferring the latest Data Extract.

    Datastream

    Select this checkbox to overwrite data in the target table if both of these conditions are satisfied:

    • The data was previously transferred from this Datastream. Data transferred from other Datastreams is not overwritten.

    • The date ranges of the existing and the new data set overlap. Adverity overwrites existing data in the target table if it refers to the same dates as the new data from the Datastream.

    For example, if the existing data in the target table refers to 10 January 2022 - 14 January 2022, and the data from the Datastream refers to 13 January 2022 - 17 January 2022, then Adverity overwrites data in the target table for 13 January 2022 and 14 January 2022.

    If you select this checkbox, specify the column in your Data Extract that contains the dates in Date Range.

    Date Range

    Select the column in your Data Extract that contains the dates.

    Filename

    Select this checkbox to overwrite the relevant data in the Destination if a Data Extract with the same filename already exists in the Destination.

    Key Columns

    Select this checkbox to overwrite data in the Destination based on the key columns defined in the Schema Mapping of the Datastream. Adverity executes this overwrite option after all the other overwrite options. When you select this checkbox, the configuration to overwrite data based on dates does not have an effect.

  2. Click Save.