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 b/w Function Module & Bapi

Former Member
0 Likes
416

HI,

diff b/w Function Module & Bapi pls write down step by step pls

3 REPLIES 3
Read only

Former Member
0 Likes
398

Please check out this link.

Read only

Former Member
0 Likes
398

Function Modules:

Function modules are ABAP routines that are stored in a central function library. They are not application-specific, and available systemwide. The ABAP Workbench comes with a large number of standard function modules.

Some Busniess Logic thats needs repeated execution in System are developed into FM. So Reusibility is the major advantage and no repeated programming.

All related FMs are grouped in Function Groups..Normally used with the SAP system .

Business API(Application Program Interface).

BAPI enable access to SAP functions across formal, stable and dialog-free interfaces. These interfaces can be used by external applications developed by customers and complementary software partners as well as by other SAP applications.

BAPIs are defined as API methods of SAP Business Object Types. These object types are used to enable object-based communication between components. Business objects and their BAPIs enable object orientation to be used in central information processing in companies. For example, you can reuse existing functions and data, achieve trouble-free technical interoperability, and implement non-SAP components.

Applications can use BAPIs to directly access the application layer of the SAP System and, as clients, applications can use the business logic of the SAP System. BAPIs provide the client with an object-oriented view of the application objects, without needing to know the implementation details.

Reusibility is the major advantage

Even non-SAP application can access SAP system using BAPI for executing certain Business Functionality

Basically BAPI are designed for the 3rd Software to communicate with SAP system for accessing,creating or modifying some business data lying on the SAP system !

Read only

Former Member
0 Likes
398

hi,

A BAPI is remotely enabled function module ie it can be invoked from remote programs like standalone JAVA programs, web interface etc..

You can make your function module remotely enabled in attributes of Function module but

A BAPI are standard SAP function modules provided by SAP for remote access. Part of BOR

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

RFC are direct system call Some BAPIs provide basic functions and can be used for most SAP business object types.

hope it is useful.

regards,

sreelakshmi.