on 2022 May 19 11:43 AM
Dear Experts,
I am analyzing CDS views for creating Sales Reports I found, I_BillingDocumentItemCube and C_RevenueFromInvoiceQry. When I execute first view in Eclipse ( I_BillingDocumentItemCube ) this view is fetching data.
But when I am executing C_RevenueFromInvoiceQry in Eclipse it is displaying blank records for same input parameter.
Please guide.
Thanks and Regards,
Narayansingh Bhandari
Request clarification before answering.
This is an old question, but maybe someone else comes across the same problem.
When running a SELECT statement from Eclipse or ABAP, the following condition will be appended to the WHERE clause:
AND N'CDS_Access_Control' != N'PRIVILEGED_ONLY'
This will trigger the access control for this view, wich is defined as:
define role C_RevenueFromInvoiceQry{
grant select on C_RevenueFromInvoiceQry where
BillingDocument is null and BillingDocument is not null;
}
This basically means you can't select any rows. Apparently SAP does not intent for this view to be querried directly and this is their way to block direct access.
The solution would be to modify the view or update all developments that use this view directly to use the underlying Cube View I_BillingDocumentItemCube instead.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
8 | |
7 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.