Load or Delete Local Table Data

You can upload data from a CSV file to a local table. You can also delete records from your table.

Loading Local Table Data

Prerequisites

To upload a CSV file to a local table, you must have a scoped role that grants you access to a space with one of the following privileges:
  • Data Warehouse Data Integration (--U-----) – The DW Integrator role template, for example, grants this privilege.

  • Data Warehouse Consumption (--U-----) – The DW Modeler role template, for example, grants this privilege.

For more information, see Privileges and Permissions and Standard Roles Delivered with SAP Datasphere.

Procedure

  1. From the Data Builder, open your local table (file) in the Table Editor.

  2. From the toolbar, select Start of the navigation pathEdit Next navigation step End of the navigation path (Upload Data From CSV File).

  3. Select your CSV file and follow the instructions.

    The following options are available:
    • Select the Delete Existing Data Before Upload option if appropriate.

    • Select Use first row as column header if your file contains column headers in its first line.

    • Next to Insert missing string value as, select Empty value or NULL before adding a record. All new empty values are stored as the selected value.

    • Select the character used to signify the boundary between columns in CSV Delimiter. In general, the default value Auto-detect is sufficient.

    Review the matching of columns in your table with those in your CSV file.
  4. Click OK to start the upload.

Deleting Local Table Records

Prerequisites

To delete local table records, you must have a scoped role that grants you access to a space with one of the following privileges:
  • Data Warehouse Data Integration (--U-E---) – The DW Integrator role template, for example, grants this privilege.

  • Data Warehouse Consumption (--U-E---) – The DW Modeler role template, for example, grants this privilege.

For more information, see Privileges and Permissions and Standard Roles Delivered with SAP Datasphere.

Procedure

To delete table records:
  1. From the Data Builder, open your local table (file) in the Table Editor.

  2. Select from the toolbar, (Delete Data From Table).

  3. Depending on whether your local table is delta-enabled or not, you will have different options. In the case of a table that is not delta-enabled, you can delete all records contained in the table. In the case of a table that is delta capture enabled, you can choose between 3 options:

    • Delete All Records: [Table with or without delta capture] This option allows you to delete all records from the table, no matter if they are used by other apps or not. It's up to you to check if the data you are about to delete have dependencies.

    • Delete All Records (Mark as "Deleted"): [Delta capture table only]. This option doesn't physically delete the records. They will be marked as to be deleted (they take the Change Type “D”) but these records can still be processed by other apps until you decide to permanently delete them.

    • Delete all records marked for deletion which are older than the specified number of days: [Delta capture table only] If your table is delta capture enabled, when a record is deleted, it’s marked as deleted so that it won’t be visible in consuming (view) models, but it’s not physically deleted from the database. Indeed, such deletion records from local tables with delta capture are considered by flows that are using the load type Initial and Delta. The records marked as deleted can’t be physically deleted until they have been processed by these flows. For more information, see Capturing Delta Changes in Your Local Table. Once this is given, selecting this option allows you to safely delete records already fully-processed according to the retention period you've defined. The default retention period is 0 days, and the maximum retention period allowed is 999 days.