Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Exception Handling in Stored Procedure

$
0
0

Hi Experts,

 

I am writing a stored procedure to fetch data. I have a scenario where the data based on the where clause does not exist in the table. In such a case, the stored procedure throws an exception : "No Data Found -1299".

I have used exception handling to complete the processing of the procedure properly. However, once the exception is handled, I am not able to continue with the processing of further statements in the procedure. I can only do it if i write the further logic within "BEGIN" and "END" of the exception handling. However, due to this I need to write the same code for exception as well as normal scenario twice in the same procedure.

Please guide how to continue processing of further logic once exception has been handled.

 

 

Any help will be highly appreciated.


Viewing all articles
Browse latest Browse all 9165

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>