Quantcast
Channel: SCN : Popular Discussions - ABAP for SAP HANA
Viewing all articles
Browse latest Browse all 1246

How to sum the subtracted quantities in CDS view

$
0
0

Hello ,

 

I want to sum the subracted quantities and populate into a field while creating CDS view. Kindly provide me syntax for the same.

 

I want something like,

 

SELECT FROM VBBE

       { lgort,

         sum (omeng - vmeng) as omeng,

         } group by lgort

 

But i am getting syntax error if i use both 'SUM' and '-' in the same query.


Viewing all articles
Browse latest Browse all 1246

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>