2007 Oct 08 11:22 PM
Hi,
I need some clarifications regarding RFC.
1). Can we use Exceptions in RFC ?
2).Can we use commit work in RFC ?
3) How to handle errors in RFC ?
4).Can we use Messages in RFC ?.
Regards,
Amal.
2007 Oct 08 11:29 PM
You cannot use exceptions in RFC.
You can use commit in BAPI.
Instead you can populate messages in an internal table and pass the same.
2007 Oct 08 11:29 PM
You cannot use exceptions in RFC.
You can use commit in BAPI.
Instead you can populate messages in an internal table and pass the same.
2007 Oct 08 11:35 PM
Hi!
You can't use exceptions, in RFC, you can add a table of type BAPIRET (BAPIRET2) to the function interface, fill the table with errors, and handle this errors in the calling system.
Hope it helps,
Regards,
John.
2007 Oct 08 11:50 PM
Hi,
1). Can we use Exceptions in RFC ?
No
2). Can we use commit work in RFC ?
No
3). How to handle errors in RFC ?
All errors need to be populated an internal table and the calling RFC system will be handle the error based on the passing internal table.
4).Can we use Messages in RFC ?
No. You need to pass to an error internal table.
Regards,
Ferry Lianto
2011 Apr 12 3:33 PM
Hi Ferry,
Can you please explain,why exceptions are not possible in RFC.Please check the link below.
http://help.sap.com/saphelp_nw04/helpdata/en/22/0425e0488911d189490000e829fbbd/frameset.htm
Regards,
Jinesh