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

how to handle exceptions in bapi

Former Member
0 Likes
453

HI,

How to handle exceptions in bapi

can any body help me regarding the above

Thanks & regards

prathap

HI,

How to handle exceptions in bapi

can any body help me regarding the above

Thanks & regards

prathap

2 REPLIES 2
Read only

Former Member
0 Likes
416

Hi !

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.

Read only

shishupalreddy
Active Contributor
0 Likes
416

Hi ,

In BAPI 's you will find BAPIRETURN structure , which is used to handle all messages /exceptions .

regards,