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

FM

Former Member
0 Likes
725

Hi,

What is the main differences between Function modules and BAPI's.

Helpful answers will be awarded.

Rgds

venugopal

4 REPLIES 4
Read only

Former Member
0 Likes
699

Bapis have a buiness functionality attached to them(like creation of a PO, sales order change, vendor creation etc) whereas FMs do not necessarily have a business functionality attched to them. All BAPIs are RFC enabled ..all Fms may nnot be RFC enabled.

Technically speaking (Apart from the RFc enabled part) BAPIs and Function modules are almost similar.

Only from business point of view, they are different.

Regards,

Ravi

Read only

Former Member
0 Likes
699

Hi Venu,

BAPIs 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. Whenever possible, a standardized BAPI must be used in preference to an individual BAPI.

Check these links

http://help.sap.com/saphelp_47x200/helpdata/en/e0/9eb2370f9cbe68e10000009b38f8cf/frameset.htm

http://help.sap.com/saphelp_47x200/helpdata/en/3e/ecf226942511d2ad4b080009b0fb56/frameset.htm

Thanks,

Vinay

Read only

Former Member
0 Likes
699
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
699

The main difference is that BAPIs are designed to do some business function, such as 'CReate Purchase Order', The BAPI will do all that is necessary to create this purchase order using one interface. Also, BAPIs are designed to not RAISE any exceptsions, since they could be called from outside the system. We use the RETURN parameter to handle errors.

All BAPIs are register in the BAPI Browser ( tcode = BAPI)

Regards,

Rich Heilman