cancel
Showing results for 
Search instead for 
Did you mean: 

CE Filter not able execute

Former Member
0 Kudos

Hi,

the small ce script is not executing and getting below error.

please advise.

BEGIN

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

       out = CE_PROJECTION(col_tab, ["VKORG","VTWEG","NETWR"],"VKORG" = "1000");

       

    

     END

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 "out": line 6 col 8 (at pos 313)nSet Schema DDL statement: set schema "SYSTEM"nType DDL: create type "_SYS_BIC"."VIJAYG/Z_VBAK_SCALVIEW/proc/tabletype/VAR_OUT" as table ("VKORG" VARCHAR(15), "VTWEG" VARCHAR(15), "NETWR" DECIMAL(15,2))nProcedure DDL: create procedure "_SYS_BIC"."VIJAYG/Z_VBAK_SCALVIEW/proc" ( OUT var_out "_SYS_BIC"."VIJAYG/Z_VBAK_SCALVIEW/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_PROJECTION(col_tab, ["VKORG","VTWEG","NETWR"], ' "VKORG" = ''1000'' ');n        n      END /********* End Procedure Script ************/n

Thanks.

Best Regards,

Edukondalu

Accepted Solutions (1)

Accepted Solutions (1)

SaiKrishna_V
Advisor
Advisor
0 Kudos

Hi,

above syntax has couple of issues

1. please don't user "out",it is reserved word.

2. ":" is missing before col_tab

3. put filter condition in single quoted

4. remove double quotes for 100

correct syntax:
var_out = CE_PROJECTION(:col_tab, ["VKORG","VTWEG","NETWR"],'"VKORG" = 1000');

I hope it solved your problem.

regards,

sai Krishna.

Answers (1)

Answers (1)

Former Member
0 Kudos

Yes, It worked fine

Former Member
0 Kudos

Hi Edukondalu,


If you got answers for your questions , please close thread by rewarding them with points.


-Siva