Wednesday 2 April 2014

BADI - What is BADI and how to find BADI


      What is BADI:
·         BADIs are used to add some additional functionality to the standard functionality without disturbing the standard functionality.
·         BADIs are introduced from 4.6c version onwards
·         BADI contains two sections
o       BADI definition
o       BADI implementation
·         Each BADI definition contains one interface and one adapter class
·         Interface is the collection of methods which are defined not implemented
·         This methods are implementing through BADI implementation
·         The adopter class takes care of version change management that is wherever the version is changed those changes will be taking care by adopter class
·         The transaction code for BADI definition is SE18
·         BADI implementation is nothing but to implement the required method which is defined in the BADI definition.
·         The transaction code for BADI implementation is SE19


STEPS TO IDENTIFY THE BADI:
1ST METHOD:
Step 1: Execute SPRO
Step 2: Click on sap reference img
Step 3: Click on find function key
Step 4: Provide search term as BADI and press enter
Step 5: And identify all the BADIs

2nd METHOD:
Step 1: Execute SPRO
Step 2: Click on sap reference img
Step 3: Expand logistics general
Step 4: Expand business partners
Step 5: Expand vendors or customers
Step 6: Expand control
Step 7: Expand adoption of customers own master data fields
Step 8: Identify the BADIs

3rd METHOD:
Step1: Execute SE93, Provide the related transaction code xk01 and click on Display
Step 2: Click on display object list in app tool bar.
Step 3: Expand package.
Step 4: Expand enhancements
Step 5: expand classic BADIs(def)
Step 6: Identify the all the BADIs

4th METHOD:
Step 1: Execute SE24
Step 2: Provide class name (Object type) as CL_EXITHANDLER and click on display
Step 3: Double click on GET_INSTANCE method.
Step 4: Select the first call method
Step 5: And click on stop button(Break Point)
Step 6: Execute our required transaction in a new session for which transaction we want to identify the BADI (/OXK01)
Step 7: Identify the exit name as a BADI name
Step 8: Continuously click on F8
Step 9: Identify the all the BADI’s related to the  transaction
Step 10: And maintain all the transaction in excel sheet
Step 11: And open each and every BADI in SE18
Step 12: Double click on the method and read the documentation.
Step 13: If our requirement satisfies any method then we implement the method through SE19 transaction.

5th METHOD:
Step 1: Go to SE37 Provide Function module name as SXV_GET_CLIF_BY_NAME and click on Display button.
Step 2: Place the Break Point (Stop button) at CALL FUNCTION ‘SXV_ADD_PREFIX’ .
Step 4: Execute the required transaction in a new session for which transaction we want to identify the BADI (/OXK01).
Step 5:  Identify name as BADI name and continuously click on F8 to find next BADI.
Step 6: Identify the all the BADI’s related to the  transaction
Step 7: And maintain all the transaction in excel sheet
Step 8: And open each and every BADI in SE18
Step 9: Double click on the method and read the documentation.
Step 10: If our requirement satisfies any method then we implement the method through SE19 transaction.

No comments:

Post a Comment