Maintain Local Table Data

Use the Data Editor to add, delete, duplicate, or update records in local tables. You can also sort, filter, reorder, and replace data.

Prerequisites

To edit local tables' data in the Data Editor, 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 Data Builder (-RU-----) - To access the local table Data Editor screen in the Data Builder.

  • Data Warehouse Consumption (-RU-E---) - To add and delete data in a local table.

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

The DW Modeler role template, for example, grants these privileges. For more information, see Privileges and Permissions and Standard Roles Delivered with SAP Datasphere.
You can only maintain data in local tables that:
  • Have status of Deployed.

  • Include at least one key column (which does not have a data type of cds.Binary or cds.hana.BINARY).

  • Do not contain binary (hana.BINARY, Binary, LargeBinary) or geo (abap.geom_ewkb, hana.ST_POINT, hana.ST_GEOMETRY) columns that have the Not Null property set or binary columns containing NULL values.

  • Do not contain SAP-managed data (for example, generated time tables, see Create Time Data and Dimensions).

Open the Data Editor

To open the Data Editor for a local table:
  1. In the Data Builder start page, click the local table whose data you want to edit.

  2. Click the Data Editor button.

  3. The following tools are available in the Data Editor toolbar:

    Tool

    Description

    Add

    See Add a Record.

    This tool is not available if any key column (or Not Null column without a default value) is hidden.

    Delete

    See Delete a Record.

    This tool is not available if you have unsaved changes.

    Duplicate

    See Duplicate a Record.

    This tool is not available if any key column (or Not Null column without a default value) is hidden.

    Restore

    Undo all edits and return to previously saved values.

    Insert Missing String Value as

    Specify how empty string cells are interpreted when adding a record. Select from:

    • NULL (default)

    • Empty value

    Column settings ()

    See Choose Columns to Display.

Add a Record

To create a new data record:
  1. Click the Add button.

    An empty row will appear at the top of the table.

  2. Enter values in the appropriate cells.

    The data in each cell must comply with the data type and other properties of the column. In particular:
    • Each key value must be unique.

    • Each Not Null field must contain an appropriate value.

    If warnings or errors are shown, click the (Validation Messages) for details.

Edit a Record

To edit a record:
  1. (optional) Filter or sort data to find the record you want to edit.

    See Filter Data and Sort Data.

  2. Click in the cell you want to edit and enter a new value.

    The data in each cell must comply with the data type and other properties of the column. In particular:
    • Each key value must be unique.

    • Each Not Null field must contain an appropriate value.

    If warnings or errors are shown, click the (Validation Messages) for details.

Duplicate a Record

To duplicate records:
  1. Select one or more records.

  2. Click the Duplicate button.

  3. Edit the duplicated values as necessary.

    The data in each cell must comply with the data type and other properties of the column. In particular:
    • Each key value must be unique.

    • Each Not Null field must contain an appropriate value.

    If warnings or errors are shown, click the (Validation Messages) for details.

Delete a Record

To delete a record:
  1. Select one or more records.

  2. Click the Delete button.

Find and Replace Data

To find (or find and replace) data in text columns:
  1. Click the header of the column you want to search in and select Find and Replace.

  2. In the dialog, complete the settings as follows:

    Setting

    Description

    Find

    Enter the value to search for.

    Replace By

    (optional) Enter a replacement value.

    Match Case

    Select to make your search case-sensitive.

    Match Entire Field

    Select to ignore partial matches.

    Show Occurrence Count

    Select to return the number of records. In large tables, enabling this feature may reduce performance.

Sort Data

You can sort the data in the following ways:
  • Click a column header and then click (Sort Ascending) or (Sort Descending).

  • Click (Columns Settings) to open the View Settings dialog, and then click the Sort tab. Select the columns to sort by, whether to sort each one by ascending or descending order, and click OK to update the viewer.

Filter Data

To filter the data:
  1. Click a column header and then (Filter) to open the Define Filter dialog, or click (Columns Settings) and then click the Filter tab.

  2. Choose the appropriate section for your filter:

    • Include - Enter one or more filter conditions that must be met in order to display a row.

    • Exclude - Enter one or more filter conditions that must be met in order to hide a row.

  3. Select a column to filter on, an operator, and a value.

    For example, to filter the data to see only employees born between 1960 and 1969:
    • Select the Birth Date column.

    • Select the between operator.

    • Select Jan 1, 1960 in the From field and Dec 31, 1969 in the To field.

  4. [optional] Click (Add Filter) to add further conditions in either the Include or Exclude section.

  5. Click OK to apply the filters.

    The current filter conditions are displayed in a strip across the top of the panel. Click Clear Filter to remove them.

Choose Columns to Display

To reorder the columns, click and drag a column header to left or right and drop it in its new position.

To display, hide, or reorder columns, click (Columns Settings) to open the View Settings dialog. On the Columns tab:
  • Select a checkbox to display a column or unselect it to hide a column.

  • Click a column name to select it and then use the arrow buttons to move it up or down in the list.

  • Use the Show Selected/Show All button to toggle between the two different lists.

  • Use the Sort and Filter tabs

Click OK to update the columns or Cancel to undo your changes. To return to the default columns, click Reset.

Save Data Changes

To save the changes you have made to the data:
  1. Click Save in the main tool bar.

  2. To exit the Data Editor, click the Table Editor button or close your browser tab.