Symptom
Error message: "No authorization to view data" encountered when attempting to preview data in Eclipse using the Data Preview functionality. The issue occurs despite the user being assigned the following authorizations:
- SAP_BR_DEVELOPER
- SAP_A4C_BC_DEV_DAT_PRV_PC
- SAP_A4C_BC_DAT_PRV_DFT_PC
- SAP_A4C_BC_DAT_PRV_RDO_PC
- SAP_A4C_BC_DEV_UT_RUN_PC
- BR_APPL_SUP_ENG_DEV_SUP
Authorization trace indicates missing authorization for restriction/object ID S_TABU_NAM.
Environment
- ABAP Development Tools in Eclipse
Reproducing the Issue
- Open Eclipse and on its workplace click with the right mouse button.
- Select "Open With"
- Click on "Data Preview"
- No authorization error pops up
Cause
- The error occurs because the Data Preview functionality relies on the VIEW_AUTHORITY_CHECK function module, which evaluates the S_TABU_NAM/S_TABU_DIS authorizations. If these checks fail, the system verifies the broader S_DEVELOP authorization.
- The object being accessed does not meet the criteria for data preview, as it is not an SAP-released view/table or the user's own view/table in a software component.
Resolution
As you have a Service Binding in the Development tenant. Whenever you create a new CDS please also Publish/Unpublish a Service Binding. This unrelated activity should ensure that the CDS is accessible in the customizing tenant.
See Also
Keywords
No Authorization to view data, Eclipse Data Preview, ABAP Development Tools, S_TABU_NAM, S_TABU_DIS, VIEW_AUTHORITY_CHECK, CDS views, SAP_A4C_BC_DEV_UT_RUN_PC, BR_APPL_SUP_ENG_DEV_SUP, SAP S/4HANA Cloud Public Edition, ABAP ADT, Missing Authorization , KBA , BC-DWB-AIE-DP , Data Preview in ABAP Development Tools in Eclipse , BC-DWB-AIE , Installation and infrastructure for ABAP tools in Eclipse , Problem
SAP Knowledge Base Article - Public