‎2006 Apr 18 1:30 PM
Hi Experts,
I've seen in the Note 364707 that the field %_ERRCODE is no longer supported since WAS 6.10 for stored procedures like this:
EXEC SQL.
EXECUTE PROCEDURE proc [(parameter list)] %_ERRCODE INTO :rc
ENDEXEC.So an Upgrade to WAS 7.00 gives this programms an error.
Has anybody an idea for an alternative?
Regards,
Stefan
‎2006 Apr 18 3:43 PM
We are using retrieving error information from stored procedure and using sy-subrc. Example:
EXEC SQL.
execute procedure get_account_info@STEALTH
( in :ACCOUNT,
out :CUST_ID,
out :CUST_NAME,
out :ACC_ADDRESS_STREET,
out :ACC_ADDRESS_NUMBER,
out :ACC_SUBURB,
out :ACC_ADDRESS_CITY,
out :ACC_ADDRESS_FLAT,
out :ACC_ADDRESS_FLOOR,
out :ERRNO,
out :ERRMSG )
ENDEXEC.
IF sy-subrc <> 0.
RAISE err.
ENDIF.
‎2006 Apr 18 3:43 PM
We are using retrieving error information from stored procedure and using sy-subrc. Example:
EXEC SQL.
execute procedure get_account_info@STEALTH
( in :ACCOUNT,
out :CUST_ID,
out :CUST_NAME,
out :ACC_ADDRESS_STREET,
out :ACC_ADDRESS_NUMBER,
out :ACC_SUBURB,
out :ACC_ADDRESS_CITY,
out :ACC_ADDRESS_FLAT,
out :ACC_ADDRESS_FLOOR,
out :ERRNO,
out :ERRMSG )
ENDEXEC.
IF sy-subrc <> 0.
RAISE err.
ENDIF.
‎2007 Sep 06 3:53 PM
Hello Peluka,
i have seen you have worked with 'execute procedure'.
I want to execute a procedure with two Parameters and one structure. Example:
EXECUTE PROCEDURE test.p_getdata ( in :i_ls_nr , in :vdatum , out :vtest ).
vtest has the simple structure with field lieferscheinnr (char25).
When i execute the procedure, i get the error <b>wrong number or types of arguments in call</b>.
Do you know, whether execute procedure with structures is not possible?
Thank you in advance.