3 weeks ago
Hello,
I have a CDS view that selects the data directly from the database table (let's call it CDS-1). CDS-1 contains a virtualElement field which is populated by an ABAP class. When CDS-1 is queried using OData, the virtualElement field correctly displays the values assigned by the ABAP code.
However, I have the second CDS (let's call it CDS-2) which selects the data from the CDS-1. When I query CDS-2 using OData, the virtualElement field from CDS-1 is displayed in the result, but it is completely empty - the methods of the ABAP class are not called at all because the break-point doesn't stop there. CDS-2 is an analytical CDS, so I cannot move the virtualElement field there, because I would get the following error: Transformation @OBJECTMODEL.VIRTUALELEMENTCALCULATEDBY on element X is not allowed in analytical views
The CDS-2 must be an analytical view, as it is supposed to be used in a KPI that requires Aggregation Annotations as described in SAP KBA 2595272.
Is there any solution to populate this field in the CDS-2 as well? Or should I use a different approach?
User | Count |
---|---|
81 | |
11 | |
10 | |
8 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.