Tuesday, July 18, 2017

BADI Searching Techniques

Badi Searching Techniques

Definition: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. 

Now we will see different ways of identifying BADI's.

1st Searching technique using package name: 
   Go to transaction code se93 give tcode for which we need to find Badis.
   Suppose if we want to know Badi’s in customer master transaction (XD01).
  Click on display and get the package name 


     Now go to SE84 Tcode and in below path give package name and execute the transaction
 



    It gives the list of BADI’s available for the particular transaction




     2nd searching technique using cl_exithandler:


     Identify the main program of transaction(XD03) using below path or as mentioned in 1st searching technique 

   
 Go to Report transaction and give program name SAPMF02D and click on Display                                                                                                                                                           


Go to main program and search for string CL_EXITHANDLER and it gives BADI’s existed  in program.


3rd searching technique using debugging:
  • ·    Go to required transaction (in our scenario XD03),· 
  •       Start debugger option using /H, and put a break point at all the instances of a method GET_INSTANCE of a class CL_EXITHANDLER and then execute/save the transaction.
  • ·     Then the program will stops at all BADI’s. Check the BADI name and go to documentation for appropriate  BADI.


4th Searching technique using function modules:
  • Go to SE37 transaction and give function module name “SXV_GET_CLIF_BY_NAME”
  • Click on display
  • Put a break point at ‘ end function ‘ statement.

 

  • ·         Now execute required transaction to find BADI’s(In our scenario XD03-Customer master)


 

  • ·     Using NAME and CLIF, we will get the exit/BADI name.
  • ·     By using this technique we can get both exits and Badis. So to identify we can check the PREFIX  parameter.
  • ·      If Prefix = CL_EX then it is BADI otherwise it is an exit.

1 comment:

Custom routine creation in SAP

                              Sales order pricing   Requirement : In sales order, for one of the condition type, value is populating ...