Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

difference..

Former Member
0 Likes
639

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 ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
606

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

4 REPLIES 4
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
606

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

.

Read only

Former Member
0 Likes
606

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

Read only

0 Likes
606

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.

Read only

Former Member
0 Likes
607

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