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

differnece between bapi and function module

kishorepallapothula
Participant
0 Likes
836

Hi SAP gurus,

Please tell me the difference between function module and bapi. will be rewarded for the answer.

kishore

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
795

Hi Kishore,

BAPI are the subclass of the Function Module.

All BAPI's are nothing but the function modules. but they mostly used for mass data upload or in the ALE for passing data betweeen different systems.

Regards,

Atish

7 REPLIES 7
Read only

Former Member
0 Likes
796

Hi Kishore,

BAPI are the subclass of the Function Module.

All BAPI's are nothing but the function modules. but they mostly used for mass data upload or in the ALE for passing data betweeen different systems.

Regards,

Atish

Read only

0 Likes
795

Atish,

Just for your own knowledge...

BAPI are the subclass of the Function Module.

<b>Not true</b> - BAPIs are tied to the BOR (Business Object Repository). FMs are not bound to Bus Objs.

All BAPI's are nothing but the function modules.

<b>Not true</b> - BAPIs are REMOTE-ENABLED func mods, which are very different from Func Mods.

Read only

0 Likes
795

To be clear, SAP developed BAPIs for external systems. They can and should be used with ABAP coding.

But SAP's intention is to allow external programmers (C coders, VB coders, etc) to use SAP business logic THRU this technology.

Read only

0 Likes
795

Hi John,

Yes I know these things, but when you see technically they are nothing but the FM.

Anyways thanks for updating on this.

Regards,

Atish

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
795

BAPIs are remote enabled function modules, but usually implement some business object. Meaning that a BAPI would do all of the required transactions, data processing associated with the business object, like creating a purchase order. There are a lot of connections which are made when you create purchase order, and all are taken care of by the BAPI. So when you call the BAPI and pass the required parameters, it would be like you have created the PO using the standard transaction(ME21N) but there is no screen processing. Also, BAPIs are well documented in the transaction BAPIs. Just remember that at a technical level, BAPIs are nothing more than an RFC enabled function module.

Regards,

Rich Heilman

Read only

former_member189059
Active Contributor
0 Likes
795

The BAPIs in the R/3 System are currently implemented as <b>function modules</b>, all of which are held in the Function Builder. Each function module underlying a BAPI.

1. Supports the Remote Function Call (RFC) protocol

2. Has been assigned as a method to an SAP Business Object in the BOR

3. Is processes without returning any screen dialogs to the calling application

Read only

Former Member
0 Likes
795

HI Kishore,

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 functionalities

<b>Regards,

Jackie.</b>