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

Fiori elements list report: Aggregate functions are not allowed in transactional views?

M-A-R-C
Explorer
0 Likes
2,901

Hey fellow devs,

I am trying to show the total values in a grouped list in my fiori app. Basically something like this:

shokodingdong_0-1709675991639.png

I have created a CDS entity, a projection (provider contract transactional_query) and a behavior. However it seems to be impossible to add a total value for a column. As soon as I add the annotation  @DefaultAggregation: #SUM to my CDS projection my service definition (both OData v2 and v4) will break and raise the following error message: Error related to element '...' of entity '...(CDS)': Aggregate functions are not allowed in transactional views.

So I am a little lost on how to add a total value to my list report. Does anyone know if and how this is possible or if there is a simple workaround?

 

Accepted Solutions (0)

Answers (1)

Answers (1)

inesmartins
Participant
0 Likes

Thanks!

DimeS
Discoverer
0 Likes

Hi @M-A-R-C ,

can you please share some screenshots of the solution that you have found ?

I have similar requirement, I need to group the table by three fields and the calculate the sum for each group.

The problem occurs when to add a custom button in order to post accounting documents then the service does not work.