Application Development 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: 

RFC Function module

former_member671224
Participant
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

ferry_lianto
Active Contributor
0 Kudos

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

0 Kudos

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