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

Exception in Bapi

Former Member
0 Likes
1,114

Gurus,

Do we use exceptions in bapi if not why?

regards,

sg

4 REPLIES 4
Read only

Former Member
0 Likes
702

chk this

http://help.sap.com/saphelp_webas620/helpdata/en/a5/3ec9f74ac011d1894e0000e829fbbd/content.htm

In BAPI since they are RFC enabled you cannot give exceptions as theya re supposed to be handled across system hence the need to apss the exception as one of the interface parameter .

In SAP for this purpose the BAPI have a table parameter as RETURN . If you see its definition is based on structure 'BAPIRETURN' or BAPIRETURN1 . Its in this table you pass your errors handled in the BAPI processing inside SAP .

In short you pass your exceptions in the RETURN parameter of the BAPI interface.

Message was edited by:

Chandrasekhar Jagarlamudi

Read only

Former Member
0 Likes
702

yes ,we use the exceptions in BAPI.

Return table is there usually we catch that return table .

Thanks

Read only

Former Member
0 Likes
702

Hi,

We do not use the Exceptions in the BAPI, there is a Return table inthe BAPI , in that table we store all the messages.

BAPI is a RFC enabled function module, so it is not having the Exceptions

Regards

Sudheer

Read only

Former Member
0 Likes
702

hi

good

go through this link,hope this would help you to solve your problem

http://help.sap.com/saphelp_nw04/helpdata/en/a5/3ec9f74ac011d1894e0000e829fbbd/content.htm

thanks

mrutyun^