Hello Kelly,
I'm sure that you know exceptions are a way of handling errors. This linkhttp://help.sap.com/saphelp_webas620/helpdata/en/a5/3ec9f74ac011d1894e0000e829fbbd/content.htm">link> 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.
BAPIs usually handle exceptions thru the RETURN parameter usually found under the EXPORTING or TABLES parameters.
Regards,
Rich Heilman
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
Add a comment