cancel
Showing results for 
Search instead for 
Did you mean: 

odata error: Parameters are not allowed for entity "calculationView" as it is not a calculation or analytical view

former_member290321
Participant
0 Kudos

I have created scripted calculation view

I can add parameter in aforesaid calculation view

It fetches me right result

But when I am to call aforesaid calculation view from odata service I am getting following error:

ERROR      zcustsearch/services/AutoComplete.xsodata

           Parameters are not allowed for entity "calculationView" as it is not a calculation or analytical view.

Any solutions

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate

Don't reference it via the catalog object. Otherwise only the runtime Column View will be seen. Instead you should specific the view as the repository object.  This means no schema and use package path::view name.  Like this example from the SHINE content:

service namespace "sap.hana.democontent.epmNext"  {

   "sap.hana.democontent.epmNext.models::CV_SALESORDER_YEAR_COMPARISON"

    as "salesYear" 

  keys generate local "ID"

    aggregates always

    parameters via entity "InputParams"; 

}

0 Kudos

Thanks Thomas

former_member807635
Discoverer
0 Kudos

How get a that path my CV is "_SYS_BIC"."BI_COMPANY/NAME_CV"