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 Public Edition.
Reproducing the Issue
- Go to App Custom CDS Views.
- Search for the CDS view I_ProfitCenterHierarchyNode.
- Select to open the CDS view.
- Press the Preview button in the bottom right.
Cause
CDS view I_ProfitCenterHierarchyNode is defined with annotation AccessControl.authorizationCheck: #PRIVILEGED_ONLY, that means only analytical queries could consume these data.
Resolution
Create own custom CDS View with namespace YY1_ to preview the data based on I_ProfitCenterHierarchyNode by following the given steps:
- Go to App Custom CDS Views.
- Click on the Create button.
- In the pop-up, give the mandatory field values.
- Select the scenario Standard CDS View in dropdown.
- Click on the Create buttom.
- Under the data source tab, add the Primary Data Source as I_ProfitCenterHierarchyNode.
- Go to the Elements tab and press the add button and select Elements.
- In the pop-up menu, search with the keyword ProfitCenter.
- Under the menu I_ProfitCenterHierarchyNode, select checkbox for ProfitCenter and press the OK button.
- Press the Save button.
- Press the Publish button.
- After the customer CDS view is publish press the Preview button.
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 , FI-FIO-GL , Fiori UI for General Ledger Accounting , FI-GL-IS-2CL , Information System (Public Cloud) , BC-SRV-APS-GKE , Generic CDS Key User Editor , How To