Anda di halaman 1dari 15

BAdi Business Add Ins

Overview
Introduction
Using Business Add-Ins, you can change the SAP
standard programs without carrying out any system
modifications
Architecture

.
BADI
Business Add-Ins are a new SAP enhancement technique based
on ABAP Objects

They can be inserted into the SAP System to accommodate user


requirements too specific to be included in the standard delivery

Specific industries often require special functions, SAP allows you


to predefine these points in your software
BADI
In the definition view, an application programmer predefines exit
points in a source that allow specific industry sectors, partners, and
customers to attach additional software to standard SAP source
code without having to modify the original object.

In the implementation view, the users of Business Add-Ins can


customize the logic they need or use a standard logic if one is
available.
Finding BADI

Go To IMG( Implementation guide)


Find the BADI in implementation Guide (IMG)

TCODE: SPRO (IMG)

Search for BADI

Check the Documentation For BADI for functionality

Data Populated as Parameters in the BADI .

Functionality will be implemented in the Method.


Call in custom program

Calling determine_account Badi through the program

Call method cl_exithandler=>get_instance


changing instance = exit1.
* call customer function
call method exit1->determine_account
exporting
item_data = item_data
changing
acct_data = acct_data[ ].
* end customer function
Definition Name

To create BAdi follow the steps

1. Go to Tcode: SE18
2. Enter definition name
3. Click create
Implementation Name

Go to Tcode: SE19
Enter the implementation name
Click create
Enter definition name
Methods
Parameters
Call in custom program

Calling determine_account Badi through the program

Call method cl_exithandler=>get_instance


changing instance = exit1.
* call customer function
call method exit1->determine_account
exporting
item_data = item_data
changing
acct_data = acct_data[ ].
* end customer function
Method
Diff Between Enhancement and BAdi

The Business Add-In enhancement technique differentiates


between enhancements that can only be implemented once and
enhancements that can be used actively by any number of
customers at the same time. In addition,
Business Add-Ins can be defined according to filter values. This
allows you to control add-in implementation and make it dependent
on specific criteria (on a specific Country value, for example).
Exits
Enhancements in Transactions SMOD/CMOD

Making enhancements using the transactions SMOD/CMOD has


the following disadvantages:

This enhancement technique assumes a two-tiered system


infrastructure (SAP customers).
The naming conventions in effect do not tolerate name extension.