Ads

Difference between BADI and BAPI

What is the Difference between BADI and BAPI in SAP


In many interviews,we can not expect what they will ask but as my expectation.Some times we can face interview questions on BADI and BAPI and differences between them .So to avoid the complication while facing interview ,learn these main differences. 

BAPI's


A Business Application Programming Interface (BAPI) is a precisely defined interface providing access to processes and data in business application systems such as R/3. BAPIs are defined as API methods of SAP business object types. These business object types and their BAPIs are described and stored in the Business Object Repository (BOR). A BAPI is implemented as a function module, that is stored and described in the Function Builder.

BAPIs can be called within the R/3 System from external application systems and other programs. BAPIs are the communication standard for business applications. BAPI interface technology forms the basis for the following developments:
Connecting:
New R/3 components, for example, Advanced Planner and Optimizer (APO) and Business .Information Warehouse (BW).
Non-SAP software.
Legacy systems.
Isolating components within the R/3 System in the context of Business Framework.
Distributed R/3 scenarios with asynchronous connections using Application Link Enabling (ALE).
Connecting R/3 Systems to the Internet using Internet Application Components (IACs).
PC programs as frontends to the R/3 System, for example, Visual Basic (Microsoft) or Visual Age for Java (IBM).
Workflow applications that extend beyond system boundaries.
Customers' and partners' own developments.

BAPIs are available in the form of  the RFC-enabled function modules, especially designed as Application Programming Interface (API) to the SAP business object, other than this that function modules officially released by SAP to be called from external programs.

BAPI's can't handle the exceptions, the calling program has to handle.

But RFC's are handle the exceptions independently.

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

A RFC is just a function module which you can call in an outside system as a functional call.

Technically BAPI is a remote enabled Funcion module ,created in the BOR that is business object repository and we can test them BAPI transaction but BAPI is basically a method of a business object which is called as a method in an outside system.

All BAPIs are function modules, but they have been enhanced by using object oriented design. BAPIs are designed based on Business objects (in the business object repository SWO1/SWO2). They are created to fill a business need and are a good way of exposing SAP functionality to third party systems. BAPIs are also generally all RFC enabled, whereas not all function modules are.


BADI's

Business Add-Ins are a new SAP enhancement techniques based on ABAP Objects. They can be inserted into the SAP System to accommodate user requirements . Since specific industries often require special functions when the new new enhancement functionality required , SAP allows you to redefine these Hook points in your software.

BADI's are availalable Object Oriented basis
BADI's can be implemented multiple times
BADI's does not require SAP Software Change Registration
No effect on release upgraded on the functioning of BADI's



Other than customer exits, Business Add-Ins no longer assume a two-level infrastructure (SAP and customer solutions), but instead allow for a multi-level system landscape (SAP, partner, and customer solutions, as well as country versions, industry solutions, and the like). Definitions and implementations of Business Add-Ins can be created at each level within such a system infrastructure.

SAP guarantees the upward compatibility of all Business Add-In interfaces. Release upgrades do not affect enhancement calls from within the standard software nor do they affect the validity of call interfaces. You do not have to register Business Add-Ins in SSCR.


SE18 - BADI definition

SE19 - BADI implementation

We have learnt BAPI and BADI differences.

Comments

Popular posts from this blog

BADI Interview Questions in SAP ABAP

Sample SAP ABAP Programming Examples for Practice

Module Pool Programming Interview Questions and Answers in SAP ABAP

Step by Step tutorial on BDC Session Method Program in SAP ABAP

SAP ABAP Interview Questions and Answers for 10 Years Experienced