How to Find BADI in SAP?

To find whether BADI exist or not for any transaction, first go to class builder i.e tcode SE24.

how-to-find-sap-badi-1

Enter “CL_EXITHANDLER” for the object type and press display.

how-to-find-sap-badi-2

Double click on “GET_INSTANCE” method to display it.

how-to-find-sap-badi-3

Set a break-point in GET_INSTANCE method of CL_EXITHANDLER. Now run the transaction for which we want to find whether BADI exist or not. If any BADI exist the control stops at the break-point set in GET_INSTANCE method.

Let us run the transaction MM02.

how-to-find-sap-badi-4

The control stops at the break-point.

how-to-find-sap-badi-5

The BADI name can be found out from the variable “EXIT_NAME” in GET_INSTANCE method.

The control stops at the break-point set in GET_INSTANCE method for each BADI that exists in the transaction.