Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9285

Re: How to return custom output message in store procedure after performing operation .

$
0
0

Anand,

 

I believe that when SAP HANA ODATA implementation, after getting control back from the modification exit,  finds out that the OUT <error> table is not empty, it treats it as an unhandled exception, and does not commit the transaction. So you cannot use <error> to report success.

 

From "SAP HANA Developer Guide" 7.1.6.9 "Custom Exists for ODATA Write Requests":

 

"If the SQLScript procedure throws an exception or writes an error messages to the OUT parameter table, the OData write operation is aborted. If more than one error message is added, only the content of the first row is returned in the resulting error message. Any scripts registered for the postcommit event must not have an OUT parameter as the write operation cannot be aborted at such a late stage, even in the event of an error."

 

 

 

Best,

-Leo

 

Message was edited by: Leo Epstein


Viewing all articles
Browse latest Browse all 9285

Trending Articles