07-02-2007 7:19 AM
hello everyone,
what is the exact reason for which there are no exceptions mentioned in a bapi function module when compared with normal fm ? in a bapi why the BAPIRET table is maintained to store the exceptions ?
07-02-2007 7:36 AM
Hi,
BAPI's are basically RFC's and RFC Function modules are designed to be called from non-sap system. Non-sap system cannot handle the exceptions and as exceptions cannot be passed to the other non sap systems thus all the RFC's do not have any exceptions defined.
BAPIRET table is maintained to handle exceptions as it is not possible to do it via defining exceptions in the function module itself.
Hope this explaination helps.
Regards,
Kate
07-02-2007 7:22 AM
Hi,
The main reason is they are supposed to be called from NON-SAP systems, so if we raise an exception it cannot be propagated onto to the calling NON-SAP systems.
Normal FM's are supposed to be called within SAP system unless they are marked as Remote-Enabled in which case its not advised to delare Exceptions for them.
SO its a guideline that they should not raise any exception but return the status in BAPIRET.
Regards,
Sesh
.
07-02-2007 7:24 AM
Hi ,
Bapi return help's u to tell which and all record's are updated successfully , which and all are not updated successfully .............
If msgtyp = 'E' the record's are not updated successfully ....
Thanks & Regards
Bhaskar rao.M
07-02-2007 7:30 AM
we use RETURN table to look up the return messages .
if the return table's message type = 'E'.
it means in errors occurs and BAPI not ended successfully.
we we use it 4 return mressages.
07-02-2007 7:36 AM
Hi,
BAPI's are basically RFC's and RFC Function modules are designed to be called from non-sap system. Non-sap system cannot handle the exceptions and as exceptions cannot be passed to the other non sap systems thus all the RFC's do not have any exceptions defined.
BAPIRET table is maintained to handle exceptions as it is not possible to do it via defining exceptions in the function module itself.
Hope this explaination helps.
Regards,
Kate