Skip to Content
author's profile photo Former Member
Former Member

Expose analytical view to odata service


I want to expose an analytical view to an odata service (using XS and SAPUI5).

When I open the odata service in the browser and access the data I get the following error:

Service exception: feature not supported.

Exposing of standard database tables is working fine.

What could be wrong?


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 26, 2013 at 09:23 PM

    Dear Ben,

    For an analytic view or calculation view you need to specify "aggregates always" and the type of aggregation to be done in the odata service. Please see below example

    service {

    "_SYS_BIC"."package_name/analytic_view_name" as "ENTITY_NAME" keys ("KEY_FIELD_1", "KEY_FIELD_2") aggregates always (SUM of "MEASURE");


    I wasn't able to get it to work with just "aggregates always", I needed to specify (SUM of "MEASURE") in order for it to work.

    I think you can specify different types of aggregations for different measures similar to how you specify different key fields, but I haven't tried with an analytic view that has more than 1 measure yet. Hope this helps.

    Kind Regards,

    Sharan Chama

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Sharan,

      sorry for my late reply, I had to work on another building site the last weeks.

      Thanks a lot for the pointer with the missing aggregations, I've tried as you mentioned and it works perfect now 😉

      Kind regards,


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.