Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Finding the MAX of the column

$
0
0


Hi

 

I want to read a calc view and find a MAX of the column

 

For this I am writing a calc view of type "script" and using the below code. Which is not working. Any hints on this?

 

Or is there any other way of doing it , where the performance is better?

 

 

BEGIN

 

 

var_tab = CE_CALC_VIEW("_SYS_BIC"."pksample.productmanagement/CV_REVENUW_RECOG_CUTOFF_PVP_1",["SDS_VBELN","SDS_POSNR","TRAN_TIME"]);

 

 

 

var_out = CE_AGGREGATION(:var_tab,[MAX("TRAN_TIME")],["SDS_VBELN","SDS_POSNR"]);

 

 

END

 

Thanks.


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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