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

RFC Function module

former_member671224
Participant
0 Likes
773

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
Read only

Former Member
0 Likes
718

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
Read only

Former Member
0 Likes
719

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.

Read only

Former Member
0 Likes
718

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.

Read only

ferry_lianto
Active Contributor
0 Likes
718

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

Read only

0 Likes
718

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