Here’s the complete solution for CDS view authorization in consolidation scenarios:
1. CDS View Authorization Check:
First, verify the CDS view definition and its access controls. In transaction SE11, display view I_GLACCOUNTLINEITEMRAWDATA and check the ‘Access Control’ tab. You’ll see if DCL (Data Control Language) is defined:
@AccessControl.authorizationCheck: #CHECK
DEFINE VIEW I_GLACCOUNTLINEITEMRAWDATA AS SELECT FROM acdoca
WHERE CompanyCode IN (SELECT CompanyCode FROM I_CompanyCodeVH)
This indicates that access control is active and requires specific authorization.
2. SU24 Role Check and Enhancement:
In SU24, check transaction SEM_BCS (your consolidation transaction) and verify these authorization objects are maintained:
- S_TABU_NAM: Authorization for CDS views (add I_GLACCOUNTLINEITEMRAWDATA with activity 03)
- F_BKPF_BUK: Company code authorization for financial documents
- F_BKPF_GSB: Business area authorization
Critical step: In SU24, set these objects to ‘Check’ status (not ‘Do not check’). Then regenerate your consolidation role in PFCG.
3. HANA Privilege Assignment:
The error indicates missing HANA-level privileges. In HANA Studio:
a) Navigate to Security → Users → find your technical user (check with SM04 what database user is mapped to CONS_USER)
b) Grant analytical privilege:
GRANT SELECT ON SCHEMA SAPSR3 TO CONS_USER;
GRANT EXECUTE ON _SYS_REPO.GRANT_ACTIVATED_ANALYTICAL_PRIVILEGE
TO CONS_USER WITH GRANT OPTION;
CALL _SYS_REPO.GRANT_ACTIVATED_ANALYTICAL_PRIVILEGE(
'sap.fin.central.gl/AP_GLACCOUNTLINEITEM',
'CONS_USER'
);
This grants the analytical privilege specifically designed for GL account line item CDS views.
c) Verify privilege assignment:
SELECT * FROM EFFECTIVE_PRIVILEGES
WHERE USER_NAME = 'CONS_USER'
AND OBJECT_TYPE = 'ANALYTICALPRIVILEGE';
Additional Configuration:
For consolidation-specific requirements:
- Apply SAP Note 2638453 which addresses CDS authorization issues in SEM-BCS for S/4HANA 1809
- In transaction RSECADMIN, activate the authorization trace, run your consolidation load, and review which specific CDS access controls failed
- Ensure the CONS_USER has authorization object S_RFC for remote-enabled function modules used by consolidation (F_BKPF_BUK with activity 03)
Testing and Validation:
After implementing these changes:
- Clear the user’s authorization buffer (SU01 → Utilities → Reset buffers)
- Test CDS view access directly: Use transaction SE16 to display I_GLACCOUNTLINEITEMRAWDATA with your CONS_USER
- If direct access works but consolidation still fails, check the RFC connection (SM59) and ensure the destination user has the same privileges
We resolved this exact issue for a client after S/4HANA 1809 upgrade. The root cause was that consolidation loads use both dialog and RFC users, and HANA privileges were only assigned to the dialog user. Both users need identical HANA analytical privileges for the consolidation data load to succeed.