Hi All,
I am trying to Call an AFL Procedure and i am getting the following error
Could not execute 'call SYSTEM.afl_wrapper_generator('PAL_ANOMALY_DETECTION', 'AFLPAL', 'ANOMALYDETECTION', ...' in 267 ms 10 µs .
SAP DBTech JDBC: [423]: AFL error: [423] "SYSTEM"."AFL_WRAPPER_GENERATOR": line 61 col 5 (at pos 1844): [423] (range 3) AFL error exception: AFL error: [423] "SYSTEM"."AFLPM_CREATOR": line 10 col 5 (at pos 193): [423] (range 3) AFL error exception: AFL error: registration finished with errors, see indexserver trace
Here's the code
SET SCHEMA i311482;
DROP TYPE PAL_AD_RESULT_T;
CREATE TYPE PAL_AD_RESULT_T AS TABLE( "ProductId" VARCHAR (10),
"Quantity" Double, "GrossAmount" Double);
DROP TYPE PAL_AD_DATA_T;
CREATE TYPE PAL_AD_DATA_T AS TABLE( "ProductId" VARCHAR (10), "Quantity"
Double, "GrossAmount" Double);
DROP TYPE PAL_AD_CONTROL_T;
CREATE TYPE PAL_AD_CONTROL_T AS TABLE( "NAME" VARCHAR (50),
"INTARGS" INTEGER, "DOUBLEARGS" DOUBLE, "STRINGARGS" VARCHAR (100));
DROP TABLE PAL_AD_PDATA_TBL;
CREATE COLUMN TABLE PAL_AD_PDATA_TBL( "ID" INT, "TYPENAME" VARCHAR(100), "DIRECTION" VARCHAR(100) );
INSERT INTO PAL_AD_PDATA_TBL VALUES (1, 'i311482.PAL_AD_DATA_T', 'in');
INSERT INTO PAL_AD_PDATA_TBL VALUES (2, 'i311482.PAL_AD_CONTROL_T', 'in');
INSERT INTO PAL_AD_PDATA_TBL VALUES (3, 'i311482.PAL_AD_RESULT_T', 'out');
call SYSTEM.afl_wrapper_eraser('PAL_ANOMALY_DETECTION');
call SYSTEM.afl_wrapper_generator('PAL_ANOMALY_DETECTION', 'AFLPAL', 'ANOMALYDETECTION', PAL_AD_PDATA_TBL);