Categories: ABAP Tutorials

How To find SAP BADI and User exit for any SAP transaction

SAP BADI: Enhancement of a SAP Standard Program/Class/function are a daily routine for ABAP-er ( at least for me ).
The most harsh part is to find the right place to put the custom code.

This article will give two different step-by-step guides to find the BADI or User-Exit for a transaction or program. It is up to you to choose the most relevant for your case.

  • Debugging the CL_EXITHANDLER Class
  • Analyse SQL Trace

Find BADI with CL_EXITHANDLER

How To Find BADI and User Exit for any SAP Transaction ?

The simplest way is debugging a method of exit handler class. You will go through all the existing BADI and Exit one by one.

The class CL_EXITHANDLER: Class for Ext. Services Within Framework of Exit Technique

Then put a break-point in the method GET_CLASS_NAME_BY_INTERFACE.

For each Standard Transaction, the framework calls the class CL_EXISTHANDLER to retrieve the list of BADI.

Let take an exemple and try to find all the exit for Customer transaction ( XD02 ) in SAP SD.

Method CL_EXITHANDLER-GET_INSTANCE

Go to SE24: CL_EXITHANDLER
And then navigate to method and select GET_INSTANCE

Related Post

check also

Put the Break Point

Place a BREAK-POINT after the call of method GET_CLASS_NAME_BY_INTERFACE.

The Name of SAP BADI will be in variable EXIT_NAME

Execute your Transaction

?In Our Case, we want to list all the SAP BADI called for Customer Save.

And the list for SAP SD Customer Transaction Save is:

  • ADDRESS_CHECK
  • GOS_SRV_SELECT
  • CVI_CALL_BTE
  • CUSTOMER_ADD_DATA
  • CUSTOMER_ADDRSCR_CHG
  • UKM_R3_ACTIVATE
  • UKM_FILL

Tips: Activate only the Break-point only before the action you want to find BADI for.

SAP BADI Tcodes

Tcode Description
SE18 Business Add-Ins: Definitions
SE19 Business Add-Ins: Implementations.

 

Other Ways to find BADI in SAP

Use the performance Trace ( SQL trace ) with Tcode ST05. Don’t forget to set field “Buffer trace” as flagged.
Actually, the BADI Database are buffered.

In the Trace result, filter on Object Name: V_EXT_IMP and V_EXT_ACT.

Share
Published by
John

Recent Posts

The Most Important SAP ISU Tables

SAP ISU Tables for Technical master data, for Billing Master Data, Billing and invoicing Tables?…

December 22, 2020

SAP Fiori 3 UX and Design of SAP Fiori Apps for SAP S/4HANA, SAP TechEd Lecture

SAP Fiori 3 UX and Design of SAP Fiori Apps for SAP S/4HANA, SAP TechEd…

November 18, 2020

The Main SAP Dunning Transaction Codes

Dunning is the business practice of informing a customer of past due payment. Dunning letters…

November 28, 2019

SAP Accounts Payable Tcodes & Accounts Receivable Tcodes ( SAP AP Tcodes & SAP AR Tcodes)

SAP AP Tcodes & SAP AR Tcodes: House Banks Tcodes, Advance Payments or Down Payments,…

August 1, 2019

The Most Important SAP Payment Terms Tables (ZTERM, Text…)

What are the main SAP Payment Terms Tables ? What are the related Tables in…

October 21, 2018

The most Important SAP Work Center Tables in SAP PP

Work center consists of master data related to routing of products. It contains data related…

October 21, 2018