Viewing Object Data

You can, at any time, view the data contained in (or output by) your tables, views, and other Data Builder objects. When working in the graphical view editor, you can view the data output by each node in the diagram.

Prerequisites

To view the data contained in Data Builder objects, 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.

  • Space Files (-R------) - To read objects in your spaces.

  • Data Warehouse Data Builder (-R------) - To open Data Builder objects.

  • Data Warehouse Consumption- To view data in the Data Viewer panel. Two levels of access are available:

    • Data Warehouse Consumption (-R------) - To view only data output by views with the Expose for Consumption switch enabled.

      The DW Viewer role template, for example, grants this privilege.

    • Data Warehouse Consumption (----E---) - To view data from any object or diagram node (where this is supported).

      The DW Modeler role template, for example, grants this privilege.

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

Open the Data Viewer

You can view data in the table, graphical view, SQL view, E/R model, analytic model, and transformation flow editors. The analytic model has an additional analytic data viewer (see Preview Data in an Analytic Model). The data flow editor provides a limited data preview (see Preview Data in Data Flows).
  1. To open the Data Viewer panel

    • In the main toolbar, or in a diagram symbol menu, click (Data Viewer), or

    • In the Source Browser, click Start of the navigation pathMore Next navigation step Show Data PreviewEnd of the navigation path.

  2. If the object contains one or more input parameters, the Input Parameters dialog opens. You can accept the default value, if one is provided, or enter a value for each input parameter. If a value help is available, click (Value Help) to select from a list of available values, and then click OK.

    The values are applied to the data and are displayed on a strip above the table. You can edit the values at any time by clicking the strip to re-open the dialog.

  3. The data is displayed, and the panel header shows the number of rows that are available.

    A maximum of 1,000 rows can be shown. If the records you want to see are not shown, then apply filters to find them.
  4. The following tools are available in the panel toolbar:

    Tool

    Description

    (Refresh)

    Refresh the data displayed in the panel.

    (Preview SQL)

    [graphical views] Preview the SQL generated for the selected node. Use the Copy button to copy the SQL code for pasting into the SQL view editor or elsewhere.

    (Export Support Information)

    Download a file containing technical information to send to SAP support.

    (Preview as User)

    [views] Open the Preview as User dialog to select another user to preview the data with their permissions and see which records will be visible to them. Select a space user from the list or enter any other user identifier (see View Data as a Different User).

    (Columns Settings)

    Open the Settings dialog (see Choose Columns to Display).

    (Close)

    Close the panel.

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

View Data as a Different User

You can review the effects of any data access controls you apply to a view by checking the records that another user will be allowed to see:
  1. Click (View as User) to open the View as User dialog.

  2. Select a space user from the list or enter any other user identifier and then click View.

    The data viewer updates to show only the records visible to the selected user.

For more information about data access controls, see Securing Data with Data Access Controls.

Preview Data in Data Flows

You can preview data for any source or output of a data flow (intermediate nodes do not support data preview), but the following limitations apply:
  • The preview can only show the first 1,000 records retrieved from the object, and any filters are only applied on these 1,000 records.

  • The complex filtering available in Define Filter dialog is not available. You can only filter only on simple values by clicking a column header and selecting (Filter).

  • The View Settings dialog is not available. Use the Columns dialog to choose columns to display.