on 11-02-2014 8:40 AM
Hi,
I am getting below error while executing an query below.
Can someone please help?
Query:
BEGIN
select1 = CE_COLUMN_TABLE ("ZTEST_SUMEET","TEST1", [NAME,AMOUNT]);
select2 = CE_COLUMN_TABLE ("ZTEST_SUMEET","TEST2", [NAME,AMOUNT]);
var_out = CE_UNION_ALL (:select1, :select2);
END
Error:
Message :
Internal deployment of object failed;Repository: Encountered an error in repository runtime extension;Internal Error:Deploy Calculation View: SQL: sql syntax error: incorrect syntax near "TEST1": line 5 col 43 (at pos 239)nSet Schema DDL statement: set schema "SYSTEM"nType DDL: create type "_SYS_BIC"."ztest_sumeet/ZTEST/proc/tabletype/VAR_OUT" as table ("name" VARCHAR(6), "amount" DECIMAL(5,1))nProcedure DDL: create procedure "_SYS_BIC"."ztest_sumeet/ZTEST/proc" ( OUT var_out "_SYS_BIC"."ztest_sumeet/ZTEST/proc/tabletype/VAR_OUT" ) language sqlscript sql security definer reads sql data as nn BEGIN n nselect1 = CE_COLUMN_TABLE ("ZTEST_SUMEET","TEST1", [NAME,AMOUNT]);nselect2 = CE_COLUMN_TABLE ("ZTEST_SUMEET","TEST2", [NAME,AMOUNT]);nvar_out = CE_UNION_ALL (:select1, :select2);nnEND nn
BR
Sumeet
First, don't use CE functions, use SQL. They are slower these days.
Second - simple syntax error, check this guide: http://help.sap.com/openSAP/HANA1/openSAP_HANA1_Week_03_Unit_03_Procedure_CE_Functions_Presentation....
You have specified two table names instead of one in CE_COLUMN_TABLE
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.