on 01-02-2018 7:07 AM
Hi Experts,
I just want to know, can we use CTE in a Table Functions in HANA?
Hello,
Not CTE expression but you can assing the SELECT statement output to a table variable and then return that variable as follows
cte = select
vbeln
from "SAPABAP1"."VBAK"
where
vbeln between :minV and :maxV;
return :cte;
You can place above code as the body of the table function where CTE select list maps to the columns of the returning table structure
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.