Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

function add_seconds in procedure

$
0
0

Hi,

 

I want to use the function add_seconds(time, seconds) in my procedure but don't have a fix value for seconds.

My code in HANA is:

Select TO_VARCHAR(ADD_SECONDS(TO_TIME(max(endtime)),:sec),'HH24MISS') into max_begintime_1 from "OPR_VB1"."/BPPALS/PIPE_SAL"

:sec is a scalar variable.

I get the error:

Could not execute 'call "OPR_VB1"."INSERT_10_SEC_PROMO_PIPE_SAL"' in 433 ms 396 µs .

SAP DBTech JDBC: [2048]: column store error:  [2048] "OPR_VB1"."INSERT_10_SEC_PROMO_PIPE_SAL": line 38 col 1 (at pos 1466): [2048] (range 3): column store error: search table error:  [6900] Error executing physical plan: exception 6900:

AttributeEngine/Parallel/Evaluator.cpp:94

Attribute engine failed; $function$=createEvaluator; $message$=input $$place_holder_0$$ unknown; $message$=input $$place_holder_0$$ unknown

,in executor::Executor in cube: OPR_VB1:0x7f1b530b0200:0

 

Can't I use a scalar variable in the function??

 

Thanks in advance.


Viewing all articles
Browse latest Browse all 5653

Trending Articles



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