Hi,
I am trying to call a procedure with 2 out variables - a table type and a scalar variable. Signature as below
CREATE PROCEDURE _SYS_BIC.<procedurename>(OUT DOC_TABLE DOC_TABLE, OUT FINAL_RESULT INTEGER) LANGUAGE SQLSCRIPT SQL SECURITY DEFINER DEFAULT SCHEMA ABAP AS /********* Begin Procedure Script ************/ BEGIN
I am able to call the procedure and get desired output in SQL console with below statement:
CALL "_SYS_BIC"."<procedurename>" (NULL,?);
However, I am not able to find the right syntax needed to call this procedure within another procedure. I tried
declare outvariable INTEGER;
CALL "_SYS_BIC"."<procedurename>"(NULL, :outvariable);
I also tried
declare outvariable INTEGER;
CALL "_SYS_BIC"."<procedurename>"(NULL, outvariable);
Both above statements give syntax error:
Expression cannot be used as an assignment target: NULL
I understand that I can call this procedure by eliminating the OUT DOC_TABLE parameter as I am passing NULL to it anyway. But is there a way to call the procedure as I am able to call if from console?
Regards,
Anoop Sahu