‎2009 May 15 7:29 AM
Hi
Why we can't handle exceptions at BAPI level ?
Regards
Haritha
‎2009 May 15 7:32 AM
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.
‎2009 May 15 8:03 AM
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..
‎2009 May 15 8:10 AM
Hi,
It's but we can find exceptions TAB at RFC level.
Then y it is not possible to write there?
Regards
Haritha
‎2009 May 15 8:32 AM
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..
‎2009 Oct 13 11:10 AM
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