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: 

differences ...

Former Member
0 Kudos

hi..

plz send differences b/w the rfc and bapi.....

6 REPLIES 6

Former Member
0 Kudos

<b>BAPI methods are RFC enabled function modules. The difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. in this case u only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call.Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs.BAPI is having all Key fields, methods, interfaces etc.

BAPI stands for Business Application Programming Interface.

It is a library of functions that are released to the public

as an interface into an existing SAP system from an external

system.

RFC is the protocol used to call functions in an R/3 system

by a caller external to R/3 or to call programs external to

R/3 from an R/3 system.

Functions can only be called via RFC, if they are tagged as

RFC functions in the SAP development workbench. They are

then called RFC function modules. BAPIs are complete sets of

(BAPI) function modules that model a business application.

When you are familiar with web developments: RFC can be

compared to HTTP and BAPIs are CGI applications.

In other words: A BAPI function is a function module that

can be called remotely using the RFC technology.</b>

former_member784222
Active Participant
0 Kudos

Hi,

Both are RFC calls. When you qualify a RFC function module as a method of BOR then you call it a BAPI. But functionally both are one and the same.

Thanks and regards,

S. Chandra Mouli.

Former Member
0 Kudos

Hi

<b>RFC -</b> This is a Function Module which is Remote Enabled. In other words this is just a function module that you can call from other system as well by specifying the destination.

<b>BADI</b> - This is again a function module which is attached with an object. In other words we can say that any function module attached with an object is BADI.

Former Member
0 Kudos

Hi maam,

come to my room.I'ii explain.

regards.

venkat.

Former Member
0 Kudos

Hi Karthik,

These r the differences between BAPI & RFC

1)Bapi's are nothing but RFC enabled function module and the main difference b/w RFC & BAPI is that BAPI is maintained in BOR(business object repository).

2)RFC can have only one instance whereas BAPI can have many.

3)The difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. in this case u only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call.Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs.BAPI is having all Key fields, methods, interfaces etc.

4)BAPI's are the remote enabled Function modules which are defined in the Business Object Repository (BOR) as the methods of the business objects.

5)I can say BAPI is the subset of RFC. RFC connects to the other system via BAPI and vice versa.

U can find step-by-step creation of BAPI in the following web-sites.

http://www.erpgenie.com/abap/bapi/example.htm#About%20the%20example

http://help.sap.com/saphelp_46c/helpdata/en/dd/5009660aa411d2ad1b080009b0fb56/content.htm

U can find detailed discussion about RFC in the following web-sites :

http://help.sap.com/saphelp_46c/helpdata/en/22/0424ba488911d189490000e829fbbd/frameset.htm

http://help.sap.com/saphelp_46c/helpdata/en/22/0424ce488911d189490000e829fbbd/content.htm

*****Please don't forget to reward points if u find this usefull

Regards,

gyanaraj