Hi,
I'm trying to create a procedure within a HANA Project however it seems that the syntax required for some bits of code is different when compared to creating the procedure in the Studio SQL Editor. I have found two specific cases
1) CE_PROJECTION filter
In Studio SQL Editor this works fine:
t_objk_proj = CE_PROJECTION(:t_objk_sn, ["OBKNR","EQUNR", "TASER"], ' "TASER" = ''SER03''');
However if I try to create the procedure in a Project and Commit and Check to the Repository I get an error "Syntax error, "'SER03'" is incorrect or misplaced."
If I change the code to the following then it works:
t_objk_proj = CE_PROJECTION(:t_objk_sn, ["OBKNR","EQUNR", "TASER", CE_CALC(':ser03', NVARCHAR(5)) AS"SER03"], ' "TASER" = "SER03" ');
Is this by design or is it a bug?
2) ROW_NUMBER()
In Studio SQL Editor this works fine (Note: goods_movement_out is a table variable ):
SELECT *, ROW_NUMBER() over (partition by equnr order by cpudt desc, cputm desc) as row_num
FROM :goods_movement_out
However if I try to create the procedure in a Project and Commit and Check to the Repository I get an error "Syntax error, "(" is incorrect or misplaced."
I haven't been able to fnd a workaround or correct syntax for this in the Project Editor.
I'm on version 51.
Please advise.
Thanks
Peter