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

SQLScript Calculation View

$
0
0

Hi friends!

 

I'm trying a simple SQLscript calculation view on HANA but it doesn't work. I'm put in target  marc_MATNR, marc_WERKS, marc_STEUC with same type of DECLARE. How can I use VAR_OUT?

 

BEGIN

 

DECLARE marc_MATNR VARCHAR(18);

DECLARE marc_WERKS VARCHAR(4);

DECLARE marc_STEUC VARCHAR(16);

 

 

DECLARE CURSOR cMARC FOR

  SELECT matnr werks steuc

  FROM "SAPECD"."MARC"

  ORDER BY MATNR WERKS;

 

OPEN cMARC();

FETCH cMARC INTO marc_MATNR, marc_WERKS, marc_STEUC;

 

 

CLOSE cMARC;

 

VAR_OUT = marc_MATNR, marc_WERKS, marc_STEUC;

 

END /********* End Procedure Script ************/

 

Thanks for any help!


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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