SAP Knowledge Base Article - Public

2769193 - Custom CDS View not showing data in "preview" - SAP S/4HANA Cloud Public Edition

Symptom

When trying to preview a Custom CDS View but no data is being returned.

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Go to the Custom CDS Views app.
  2. Select a Custom CDS View.
  3. Click on Preview for this view.
  4. In the preview of the data there is no real data, and the message "No Data" is displayed.

Cause

If there is really data in this view, the user may not have authorization to see the data.

Resolution

Add the required authorization to the user.

As an example, while trying to view I_MaintOrderOperationData, adding a role to the user that would give access to the Display Maintenance Order app. 

If it's not clear what role to add, search for the primary datasource in SAP Help Portal or create an incident for the component responsible for that specific view. To find the concerned component, follow the steps below:

  1. Go to the View Browser app.
  2. Search for the View.
  3. This app will list the responsible component for that view.

    See Also

    • 2712057 - Cannot preview SAP C_* CDS Views
    • 2540696 - Custom CDS Views – Content Rules

    Keywords

    Access Protection, custom cds view, no data, preview, returning, null, value , KBA , BC-SRV-APS-GKE , Generic CDS Key User Editor , Problem

    Product

    SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions