Skip to Content
avatar image
Former Member

How to use SUM in cds?

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?

suma.png (12.0 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Dec 05, 2017 at 06:08 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded