Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

CE_AGGRE is getting error

Hi Experts,

Please check below code and suggest to me.

BEGIN

col_tab = CE_COLUMN_TABLE("SAP_ECC"."VBAK");

        out = CE_AGGREGATION(col_tab,sum("NETWR"),["VKORG","VTWEG"]);

       

  

END /********* End Procedure Script ************/

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 "out": line 6 col 9 (at pos 303)nSet Schema DDL statement: set schema "SYSTEM"nType DDL: create type "_SYS_BIC"."VIJAYG/Z_AGGR_SVIEW/proc/tabletype/VAR_OUT" as table ("VKORG" NVARCHAR(30), "VTWEG" NVARCHAR(30), "NETWR" DECIMAL(15,2))nProcedure DDL: create procedure "_SYS_BIC"."VIJAYG/Z_AGGR_SVIEW/proc" ( OUT var_out "_SYS_BIC"."VIJAYG/Z_AGGR_SVIEW/proc/tabletype/VAR_OUT" ) language sqlscript sql security definer reads sql data as  n /********* Begin Procedure Script ************/ n BEGIN n n col_tab = CE_COLUMN_TABLE("SAP_ECC"."VBAK"); n        out = CE_AGGREGATION(col_tab,sum("NETWR"),["VKORG","VTWEG"]);n        n t nEND /********* End Procedure Script ************/n

Thanks.

Br,

Edukondalu

Former Member
replied

Hi Ed,

since col_tab is a variable, you need to use : with the variable name as given below.

And also your out variable is var_out as mentioned in the view definition.

var_out = CE_AGGREGATION(:col_tab,sum("NETWR"),["VKORG","VTWEG"]);

Regards,

Safiyu

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question