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

BAPI & RFC

Former Member
0 Likes
728

Hi Friends,

Can any one explain me what is the main difference between and ordinary function module, RFC & BAPI .

And can any one explain me in which kind of scenarios we are using RFC and BAPI in detail.

Regards,

NIKI

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
703

Hi niki,

1) The main difference between BAPI and RFC is BUSINESS OBJECT.

2) BAPI is the defined interface it holds business data and process, it is the point of entry to the external apllications( JAVA, VB,...) for aceesing and processing SAP data directly.

3) BAPI has it's corresponding RFC function module where as viceversa is not possible.

4) We can call BAPI as Remote Enabled Function Module and Call as the method of Business Object in the BOR, where as RFC can be called as Remote Enabled Function Module only.

5) BAPI has no User dialog and Exceptions

Thanks

Nayan

5 REPLIES 5
Read only

Former Member
0 Likes
704

Hi niki,

1) The main difference between BAPI and RFC is BUSINESS OBJECT.

2) BAPI is the defined interface it holds business data and process, it is the point of entry to the external apllications( JAVA, VB,...) for aceesing and processing SAP data directly.

3) BAPI has it's corresponding RFC function module where as viceversa is not possible.

4) We can call BAPI as Remote Enabled Function Module and Call as the method of Business Object in the BOR, where as RFC can be called as Remote Enabled Function Module only.

5) BAPI has no User dialog and Exceptions

Thanks

Nayan

Read only

Former Member
0 Likes
703

Hi Niki,

Please check this link

http://help.sap.com/saphelp_45b/helpdata/en/cf/8ccab761ea11d2804a00c04fada2a1/content.htm

BAPI vs RFC

https://forums.sdn.sap.com/click.jspa?searchID=253866&messageID=2558225

BAPI vs FM

RFC is the protocol used by SAP for remote communication, that is, for communications between remote (independent) systems.

RFC is used for communications between two independent SAP systems, or for communications between an SAP system and a non-SAP system, such as an external application. It can also be used for communications between modules on the same system.

Using the RFC interfaces you can extend the functionality of R/3 applications from an external program.

Compared to using the GUI interfaces, using RFC interfaces requires more knowledge of the business logic of the R/3 applications with which you are integrating the external application.

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)

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

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.

Best regards,

raam

Edited by: Kodandarami Reddy.S on Jun 5, 2008 8:29 AM

Read only

Former Member
0 Likes
703

Reward points..

Read only

Former Member
0 Likes
703

hi,

BAPI 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 .

No it is not possible to connect SAP to Non-SAP systems to retrieve data using RFC alone. RFC can acces the SAP from outside only through BAPI and same is for vice versa access.

Each Bapi Object has Interface, Key Fields, Attributes,Methods and Events.

Bapi Function Modules can be attached to these Bapi objects .Function module has a single bound functionality while a BAPI object can contain many functionalitie.

pls reward if helpful.

rgds,

Rajyalakshmi.

Read only

Former Member
0 Likes
703

I got the solution