what is badi

Download What is Badi

If you can't read please download the document

Upload: arpan-mahajan

Post on 12-Nov-2015

221 views

Category:

Documents


4 download

DESCRIPTION

hi

TRANSCRIPT

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 functionality. BADI's are available in SAP R/3 from the system release 4.6cTransaction code for BADI Definition: SE18 When you create a BAdI definition, a class interface will be automatically created and you can define your methods in the interface. The implementation of the methods can be done in SE19 transaction. When a BAdi is created following are automatically generated:An interface with 'IF_EX_' inserted between the first and second characters of the BAdi nameAn adapter class with 'CL_EX_' inserted between the first and second characters of the BAdi name. Transaction code to Implement BADI:SE19Types 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 same definition BADI. By default this option is checked. If we want the BADI for multiple useIf 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 active especially in country specific version.2) Filter dependent BADI: Using this option we can define the BADI's according to the filter values to control 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 the SE24 transaction. Each time if you press F8 a list BADI names will be displayed.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. Based on the requirement find the BADI name and accordingly implement your functionality 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, the 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 click on Status. It displays the following information. 2) Double click on the program name i.e. SAPLMEGUI. It will take you into the program and click on Go to tab from the Menu. There we can find the package name of 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 the appropriate BADI name and implement it based on the business requirement using the transaction SE19.