Quantcast
Channel: SCN : All Content - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6745

How to access aggregates values from SAP HANA xS oData

$
0
0

Hi,

 

I have created one xs oData, below is the snippet of the aggregates of measure.

 

aggregates always (SUM of "ZQTY",

    SUM of "ZCOST"     ,

    SUM of "ZREV"     ,

    AVG of "ZRATE"   ,

    );

 

 

for example, 3 records have ZQTY as 100 , 50 , 150 respectively. I want one result field in which i can retrieve 300 as result (SUM as shown above).

 

I want to retrieve these result values(aggregated) into some of field on oData run, so that i can bind it to my UI elements.

 

Please suggest how to do it.

 

Right now i can not see anything in which i am getting aggregated data on run of xs ODATA (URL execution).

 

Regards,

Rohit


Viewing all articles
Browse latest Browse all 6745

Trending Articles



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