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

Diff. Between BAPI and RFC

Former Member
0 Likes
1,535

Hi all,

Please tell me the difference between BAPI and RFC.

Thanks.

Selvapandian

4 REPLIES 4
Read only

Former Member
0 Likes
546

Hi all,

In the Call transaction method we are getting the return code values i .e sy-subrc values is more than 1000.

How can we know the description of the return codes?

Is there any table available or Function module available?

Please suggest me.

Thanks,

- Selvapandian

Read only

0 Likes
546

First, RFC is a remote-enabled function module. A BAPI is a RFC that performs some business functionality and is in the BOR.

Second, In your call transaction statement, add the extension MESSAGES INTO ITAB. The messages from the transaction will come back into that internal table. Then you can see the error messages.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
546

Yeah, if no BOR, you can assume a bapi looks like a RFC.

But except the differentiation on interface defination, BAPI do more master check or business check, before run the task. However, many RFC don't do check for the input parameter. I can give you some example for this difference, but maybe not necessary, it is definitely.

Bapi defined following some rule, do much check, and relatively slow.

RFC defined with no rule, do few check, but relatively fast.

Read only

Former Member
0 Likes
546

Hi Selvapandian,

Just an additional statement...

Well RFC (and FM) will normally provide sy-subrc!

0== OK, >0 == Fail

Most of the BAPIS will provide a return-structure. This

structure is filled, whenever a error occurs.

If everthing runs well, it will remian empty.

BR

Michael