Find a BADI

There are some cases where we need to add some functionality when a transaction is called or an action is done in SAP.

In some cases we are not able to know which BADI to change in order to have our customized behaviour for a determined action.

Well, following the following steps we will be able to identify the BADI that we will need to change:

Step 1: SE37 display Function ModuleSXV_GET_CLIF_BY_NAME.

Step 2: Set a BREAKPOINT on call function SXV_ADD_PREFIX .

Step 3: In another SESSION run the desired transaction, parameter ‘name‘ gives the BADI; (parameter ‘clif ‘ gives implementation, e.g. for TCode MIGO name = MB_MIGO_BADI, clif = CL_EX_MB_MIGO_BADI.)

Submitted by an anonymous SAPtricks User – Thank you for contributing to the webs largest database of SAP tricks!


  1. Sundar Raghuraman April 21, 2012 at 11:12 pm · Reply

    A Very useful Tip. Thanks a lot to the contributor.

  2. Pingback: BADI’s in 5 Minutes | SAP Tricks | SAP Tips & Tricks | SAP Basis & Applications | SAP Solutions
  3. ravi chandra May 28, 2012 at 2:13 am · Reply

    very useful really a good job by the contributors..pls go ahead…


  4. baboon October 23, 2012 at 1:42 am · Reply

    There is another way to find a BAdI – set breakpoint at method CL_EXITHANDLER->GET_INSTANCE

    • admin October 23, 2012 at 3:01 am · Reply

      Brilliant – thank you

  5. Shankar December 20, 2012 at 5:46 am · Reply

    During EDI order creation or modification, the postal code is defined in segments E1EDKA1 and E1EDPA1 is 09. The postal code in the SAP System is defined for ten digits. When you create order, EDI incoming orders are terminated with the message: ‘Postal code must have 05 or 10 digits”

    This is caused due an error in function module IDOC_INPUT_ORDERS / IDOC_INPUT_ORDCHG and design of segments E1EDKA1 and E1EDPA1.

    To overcome this issue, SAP released notes 93413,40766 & 40677.


    • admin January 15, 2013 at 8:17 pm · Reply

      Hi Shankar,

      Great catch – thank you.

Leave a Reply