Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

HANA Project Editor vs Studio SQL Editor

$
0
0

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


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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