Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to use SUM in cds?

Former Member
0 Kudos

Hello Guys,

I need to get the total sum of all rows of a column but when I try to use SUM function I get error:

Could anyone can helpme?

1 ACCEPTED SOLUTION

Lokes
Participant
0 Kudos

hey,

you should use group by along with sum key word.

please refer to the link:

https://sapcodes.com/2016/09/26/abap-cds-on-hana-7/

Thanks,

Lokeswar.

1 REPLY 1

Lokes
Participant
0 Kudos

hey,

you should use group by along with sum key word.

please refer to the link:

https://sapcodes.com/2016/09/26/abap-cds-on-hana-7/

Thanks,

Lokeswar.