Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8807

VAR_OUT inside cursor

$
0
0

Hello,

 

I need to calculate cumulative stocks. I want to do it using SAP HANA analysis process. I created test procedure with cursor and VAR_OUT  inside cursor. When i call this procedure i always get only one value. How i can get more then one value from this procedure?

 

DECLARE CURSOR c_cursor1 FOR

Select "SUPNUM" FROM "_SYS_BIC"."Stocks/STOCKS"

                              WHERE "SUPNUM" IN ('00000028345', '00000039053')

GROUP BY "SUPNUM";

 

FOR cur_row as c_cursor1 DO

 

     VAR_OUT = Select "SUPNUM" FROM "_SYS_BIC"."Stocks/STOCKS"

                           WHERE "SUPNUM" = cur_row.SUPNUM GROUP BY "SUPNUM";

 

END FOR


Viewing all articles
Browse latest Browse all 8807

Trending Articles



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