cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Consuming parameterized views in Fiori Elements oData v4

carlonnheim
Participant
0 Kudos
73

Hi,

We need to consume a parameterized view in CAP Node.js (which under the hood is a HANA Calculation View) in a Fiori Elements for oData v4 "AnalyticalTable" application.

We find documentation for how to do this in oData v2: https://sapui5.hana.ondemand.com/sdk/#/topic/8e3b6be7128344e9bdcfceb3219f0de7

XML based annotations here: https://sapui5.hana.ondemand.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6.html#loio4bd7590569c74...

ABAP CDS examples here: https://community.sap.com/t5/technology-blog-posts-by-members/sap-fiori-list-report-utilizing-cds-vi...

But we do not find documentation, guides or examples for how to do that with CAP. The view looks like this

@CDS.persistence.exists
@cds.persistence.calcview
entity MyView(IP_MYPARAM::MY_PARAM) {
    @analytics.Dimension: true
    key MyDimension : String;
    @analytics.Measure: true
    @Aggregation.default: #SUM
    MyMeasure : Decimal;
}

Does anyone have a working sample or other guidance?

Thanks in advance!

//Carl

Accepted Solutions (0)

Answers (0)