2005 Feb 14 8:18 PM
Hi all,
I have a doubt regarding BAPI.. Can't we use Exceptions to throw error in BAPI like normal function modules?
Thanks
Kelly
2005 Feb 15 8:05 AM
Hello Kelly,
I'm sure that you know exceptions are a way of handling errors. This <a href="http://help.sap.com/saphelp_webas620/helpdata/en/a5/3ec9f74ac011d1894e0000e829fbbd/content.htm">link</a> in the SAP Documentation explains the Error Handling mechanism for the BAPIs.
I hope you will be able to see why you should not have exceptions in the BAPI interface.
Regards,
Anand Mandalika.
2005 Feb 14 8:24 PM
2005 Feb 14 8:39 PM
By design, BAPIs are supposed to be used by external application that may or may not be able to handle exceptions raised in the calls. That is the reason why all the errors are collected into the messages table and then the calling application can decide how to handle the errors based on its capabilities and limitations.
Hope this helps,
Srinivas
2005 Feb 15 8:05 AM
Hello Kelly,
I'm sure that you know exceptions are a way of handling errors. This <a href="http://help.sap.com/saphelp_webas620/helpdata/en/a5/3ec9f74ac011d1894e0000e829fbbd/content.htm">link</a> in the SAP Documentation explains the Error Handling mechanism for the BAPIs.
I hope you will be able to see why you should not have exceptions in the BAPI interface.
Regards,
Anand Mandalika.
2005 Feb 16 3:32 PM
Hi All,
Thanks to everybody .. And that link was a great help...
Thanks again...
Kelly