Sie sind auf Seite 1von 2

Def:

BADI (Business Add-In) is a new SAP Object Oriented enhancement technique which
is used to add our own business functionality to the existing SAP standard funct
ionality.
BADI's are available in SAP R/3 from the system release 4.6c
Transaction code for BADI Definition:
SE18
When you create a BAdI definition, a class interface will be automatically creat
ed and you can define your methods in the interface. The implementation of the m
ethods can be done in SE19 transaction.
When a BAdi is created following are automatically generated:
An
he
An
of

interface with 'IF_EX_' inserted between the first and second characters of t
BAdi name
adapter class with 'CL_EX_' inserted between the first and second characters
the BAdi name.

Transaction code to Implement BADI:


SE19
Types of BADI's: There are two types of BADI's.
1) Multi use BADI:
With this option, any number of active implementations can be assigned to the sa
me definition BADI. By default this option is checked.
If we want the BADI for multiple use
If you have multiple-use BADI definitions, the sequence must not play any role.
The drawback in Multiple use BADI is, it is not possible to know which BADI is a
ctive especially in country specific version.
2) Filter dependent BADI:
Using this option we can define the BADI's according to the filter values to con
trol the add-in implementation on specific criteria.
Ex: Specific country value.
How to Find BADI's in SAP system:
Method 1:
Steps to find BADI:
1. Go to SE 24 transaction, type CL_EXITHANDLER and then click on display.
2. Double click on GET_INSTANCE method.
3. Put a break-point on class method CL_EXITHANDLER=>GET_CLASS_NAME_BY_INTERFACE
.
4.Run any transaction on which we want find the BADI's say VA01.
5. Give the transaction name VA01 and press enter.
6. It will automatically take you to the break-point which we have set the in th
e SE24 transaction. Each time if you press F8 a list BADI names will be displa
yed.
7. You can find the BADI name in field EXIT_NAME and if you double click on it,
we can get the corresponding BADI name before hit the corresponding screen. Base
d on the requirement find the BADI name and accordingly implement your functiona

lity using the transaction se19.


Method 2:
Go to transaction SE84 and click on Enhancements. Then double click on Business
Add-Ins.
For example if you want to find the BADI's for the standard transaction ME22n, t
he procedure is as follows. This example shows, finding the way of BADI names by
providing the Package of ME22n.
1) Go to transaction ME22n. Select the System option from the menu and then clic
k on Status. It displays the following information.
2) Double click on the program name i.e. SAPLMEGUI. It will take you into the pr
ogram and click on Go to tab from the Menu. There we can find the package name o
f the standard transaction ME22n.Copy and paste it in the package filed.
3)Now Press F8, a list of BADI names will be displayed as shown below. Select th
e appropriate BADI name and implement it based on the business requirement using
the transaction SE19.

Das könnte Ihnen auch gefallen