on 01-07-2016 3:41 PM
Hi all,
I call another store procedure B in the store procedure A. When I active the store procedure A , the error is the following:
Could not create catalog object: feature not supported; Only table variable is allowed in input parameter in a nested call: line 37 col 26 (at pos 1435)
The line 37 is "CALL SYSTEM.PAL_DBSCAN(_SYS_BIC.PAL_DBSCAN_DATA_TBL, _SYS_BIC.PAL_CONTROL_TBL, BASE.PAL_CHAINSTORE_DBSCAN_RESULTS_TBL) with overview; "
The SQL Script is performed successfully in the SQL console. The SQL Script is wrong in a procedure.
Could you help me?
Thanks.
Candy Zhang
Hello Candy Zhang,
If you are calling Procedure B in procedure A and Procedure B has IN params then these parameters must be first stored in a variable and then that variable must be referred. In your case,
TBL1 := _SYS_BIC.PAL_DBSCAN_DATA_TBL
TBL2 := _SYS_BIC.PAL_CONTROL_TBL
TBL3 := BASE.PAL_CHAINSTORE_DBSCAN_RESULTS_TBL
and then call the procedure as :
CALL SYSTEM.PAL_DBSCAN(:TBL1, :TBL2, :TBL3);
Also ensure that these tables passed as IN params are tabletype
Regards,
Archana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try this post http://scn.sap.com/thread/3384326
Hi Sergio,
I use the following way :
TBL1 := _SYS_BIC.PAL_DBSCAN_DATA_TBL
TBL2 := _SYS_BIC.PAL_CONTROL_TBL
TBL3 := BASE.PAL_CHAINSTORE_DBSCAN_RESULTS_TBL
CALL SYSTEM.PAL_DBSCAN(:TBL1, :TBL2, :TBL3);
INSERT INTO BASE.PAL_CHAINSTORE_DBSCAN_RESULTS_TBL SELECT * FROM :TBL3;
"with overview" is not work In a stored procedure, It is only work in the SQL console. Right?
Brs,
Candy Zhang
Hello Candy Zhang,
Please ensure that your procedure in not READ ONLY. In that case you are not allowed to do CRUD operations. For example, you procedure definition should look like the follow :
PROCEDURE "<SCHEMA-NAME>"."<PACKAGE-NAME>::<PROC-NAME>"
( <IN/OUT PARAMS> )
LANGUAGE SQLSCRIPT
SQL SECURITY <INVOKER/DEFINER> AS
BEGIN
..............
END;
Regards,
Archana
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.