Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3523

consume variable and input parameter in stored procedure

$
0
0

Hi,

 

I have created one calculation view and used variable and input parameter in the same.

 

Now what I am doing here is using variable to filter data at selection screen and created one input parameter as discount

and calculating net price.

 

Now what i want to do here, in procedure user will give discount value and it will create net price based on discount as it was creating in calculation view.

 

Can someone please help me with the syntax.

 

 

 

below code i have written but its not working.

 

create procedure add_values10 ( in im_disc int,

   out ex_result "HANA"."TT_SALES11")

   language sqlscript

   sql security invoker

   as

begin

 

 

ex_result = select "REGIO_TEMP_NAME",

     "net_amount",

     "PRODUCT_TEMP_NAME",

     "SUB_REGIO_TEMP_NAME",

     "SALES_TEMP_AMOUNT"

  FROM "_SYS_BIC"."HANA/CALC_VIEW_IPAR"

  ('PLACEHOLDER' = ('$$IM_DISC$$', '10'))

  WHERE ("REGION_NAME" IN ('Asia') )

  GROUP BY "PRODUCT_TEMP_NAME", "REGIO_TEMP_NAME", "SUB_REGIO_TEMP_NAME", "NET_AMOUNT" ; 

 

end;

 

BR

Sumeet


Viewing all articles
Browse latest Browse all 3523

Trending Articles



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