SAP Knowledge Base Article - Public

2957528 - How to preview data from the CDS view I_ProfitCenterHierarchyNode.

Symptom

  • No Data is displayed from the data preview of standard CDS View I_ProfitCenterHierarchyNode.

“Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.“

Environment

  • Financial Accounting (FI).
  • SAP S/4HANA Finance.
  • SAP S/4HANA Cloud.

Reproducing the Issue

  1. Go to App Custom CDS Views.
  2. Search for the CDS view I_ProfitCenterHierarchyNode.
  3. Select to open the CDS view.
  4. Press the Preview button in the bottom right.
  5. Preview_no_data.PNG 

Cause

CDS view I_ProfitCenterHierarchyNode is defined with annotation AccessControl.authorizationCheck: #PRIVILEGED_ONLY, that means only analytical queries could consume these data.

I_ProfitCenterHierarchyNode.PNG

Resolution

Create own custom CDS View with namespace YY1_  to preview the data based on I_ProfitCenterHierarchyNode by following the given steps:

  1. Go to App Custom CDS Views.
  2. Click on the Create button.
  3. In the pop-up, give the mandatory field values.
  4. Select the scenario Standard CDS View in dropdown.
  5. Click on the Create buttom.
  6. Under the data source tab, add the Primary Data Source as I_ProfitCenterHierarchyNode.
  7. Go to the Elements tab and press the add button and select Elements.
  8. In the pop-up menu, search with the keyword ProfitCenter.
  9. Under the menu I_ProfitCenterHierarchyNode, select checkbox for ProfitCenter and press the OK button.
  10. Press the Save button.
  11. Press the Publish button.
  12. After the customer CDS view is publish press the Preview button.

BT_TEST_DETAILS.PNG

Profit_center_btTest.PNG

Preview_ProfitCenterHierarchyNode.PNG

See Also

To know about access control, refer to KBA 2725274 - Access to CDS Entities is unconditionally blocked by CDS Access Control

Keywords

custom, cds, views, to, be, deprecated, I_ProfitCenterHierarchyNode, app, id,  F1866, F1866A, S4_PC, BC-SRV-APS-GKE, FI-FIO-GL, FI-GL-IS , KBA , FI-GL-IS , Information System , BC-SRV-APS-GKE , Generic CDS Key User Editor , FI-FIO-GL , Fiori UI for General Ledger Accounting , How To

Product

SAP S/4HANA Cloud 2005