on 07-12-2016 3:33 PM
I have tried the following:
FUNCTION "mySchema"."myFunction" ( )
RETURNS TABLE ( "SAPR3"."TCURR" )
LANGUAGE SQLSCRIPT
SQL SECURITY INVOKER AS
BEGIN
/*****************************
Write your function logic
*****************************/
END;
and various derivations thereof, but activation fails with the syntax error "Syntax error in table function object: incorrect syntax near ".": line 13 col 26 (at pos 475)" and I cannot find anything which works.
Any suggestions out there?
There are different problems in your coding:
Here is an example using the inline type declaration + returning 3 fields of the table:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, ok. I meant a table type created in the catalog via CREATE TYPE. But of course the CDS variant in combination with a .hdbtablefunction is the preferred way because of its advantages (e.g. transportable).
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.