The procedure has to be a stored procedure. I wanted to create an exception handler for the exception raise, in case the product number is not in the PRODUCTS table.