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

Reagarding Bapi exception

Former Member
0 Likes
576

Hi

Why we can't handle exceptions at BAPI level ?

Regards

Haritha

5 REPLIES 5
Read only

Former Member
0 Likes
541

Hi,

Bapi's are RFC function module ..so you shouldn't use the exceptions in Bapi's.

For more please search the SCN and Goolge for this.

Read only

former_member242255
Active Contributor
0 Likes
541

in BAPI'S you will have the RETURN paramtere where you can see the Error and Success messages for the particlular process done by the BAPI..

Read only

0 Likes
541

Hi,

It's but we can find exceptions TAB at RFC level.

Then y it is not possible to write there?

Regards

Haritha

Read only

0 Likes
541

you can check the BAPI;s, the Exceptions tab is not at all used,it is used for the Normal Function modules..

RFC will not be at single system so,the Raising of the Exception and catching will not be possible accross different systems,

so we will use the RETURN table so that we can check the success or failure of the BAPI..

Read only

0 Likes
541

In BAPI since they are RFC enabled you cannot give exceptions as they are supposed to be handled across system hence the need to pass 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.

Thnks

Yerukala Setty