Badi

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 14

BADIS: BUSINESS ADD-INS.

BADIS are advanced version of enhancement technique.


Coming from 4.6 onwards and are implemented using object oriented programming
technique.
Technically a badi is nothing but an interface.
Each badi consists of methods without any implementations called as badi
definitions.
We need to create classes to write the abap code by implementing the methods
called as badi implementations.

Transaction codes:
SE18 is used to analyze the definition of badi.
SE19 is used to implementing the badi.
Advantages of badi:
Main advantage is we can create multiple implementations for a single badi.
Difference between enhancement and badis.
Enhancements
we can create single implementation for a
single enhancement
Types of enhancements
1.user exits
2.customer exits
2.1. function exit
2.2.menu exit
2.3.screen exit
2.4. field exit

Badis
Multiple implementations for a single badi
Types of badis.
1.single implementation badi
2.multiple implementation badi.
3. filter badi
4.custom badi

FIND OUT BADIS:


There are two ways:
1. Use Tcode: SPRO- This is used by functional people.
2. goto particular transaction code debugging the tcode
2.1.
2.2.

in debugging screen in menu bar->breakpoints->breakpoint at->method.


in next screen give class name : CL_EXITHANDLER
method name: GET_INSTANCE.

3. Find out the exit name by clicking f8 ( each exit name is one badi)

Object1:
Requirement:
Find the customer delivery item.
Meaning: There are 10 customers for one vendor, and daliy limit of delivery is for a particular material
8 items.
Step1: find out the badi. Using TCODE: SPRO.

Click on sap reference img tab

Next screen: find the required badi name

Goto logistic execution-> shipping->system modifications->business add-ins->BUSINESS ADD-IN


FOR DELIVERY PROCESSING. (Read the definition of each badi and find the exact badi)
LE_SHP_DELIVERY_PROC- name of the badi.

Now goto SE18 and give badi name click on display.

Give badi name and


click on display

In next screen click on interface tab

Interface tab

In next screen double clik interface name.

Double click
here

Select method name and click on parameters tab to find the required fields.

Check the required fields

Come back to display deifinition screen

Now click goto menu->implementation->create


A small dialog opens there give implementation name and click on ok.

Next give short text and double click on name of implementation class

Double click
here and save it

Here click on create button in window dispayed

After create again a small window opens there give enhancement implementation name and short text
and click on ok.

Next select the implementation name created and click on ok

Next come back and click on method name you analyzed before

Next click on method name , editor will be opened and write your code and save it

You might also like