Quantcast
Channel: SCN : Unanswered Discussions - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 5115

how to call procedure having input parameter from calculation view

$
0
0

Hi All,

 

I have a procedure having 4 parameters. Below are the details of same.

 

1) Ist parameter having IN mode -- datatype -- varchar

2) 2nd parameter having OUT mode -- datatype -- varchar

3) 3rd parameter having OUT mode -- datatype -- varchar

4) 4th parameter having OUT mode -- datatype -- integer

 

How to call this procedure in calculation view. calculation view should return data based on input parameter of procedure. Below are the steps which i tried but it does not work.

 

BEGIN

 

  declare var_out1 VARCHAR(100):='';

  declare var_out2 VARCHAR(5000);

  declare var_out3 VARCHAR(5000);

  declare var_out4 integer;

 

  CALL "ENERGY"."amit.models/get_view_column"(var_out1 ,var_out2,var_out3,var_out4);

 

var_out = select :var_out1 as v_view_name,:var_out2 as "Measures_value",:var_out3 as "Attributes_value",:var_out4 as "value" from dummy;

 

END

 

 

Please help.

 

Regards,

Amit


Viewing all articles
Browse latest Browse all 5115

Trending Articles



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