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.