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.
Table of Contents
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.
Go to SE24: CL_EXITHANDLER
And then navigate to method and select GET_INSTANCE
check also
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
And the list for SAP SD Customer Transaction Save is:
Tips: Activate only the Break-point only before the action you want to find BADI for.
Tcode | Description |
---|---|
SE18 | Business Add-Ins: Definitions |
SE19 | Business Add-Ins: Implementations. |
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.
SAP ISU Tables for Technical master data, for Billing Master Data, Billing and invoicing Tables?…
SAP Fiori 3 UX and Design of SAP Fiori Apps for SAP S/4HANA, SAP TechEd…
Dunning is the business practice of informing a customer of past due payment. Dunning letters…
SAP AP Tcodes & SAP AR Tcodes: House Banks Tcodes, Advance Payments or Down Payments,…
What are the main SAP Payment Terms Tables ? What are the related Tables in…
Work center consists of master data related to routing of products. It contains data related…