Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how could i find new badi ?

Former Member
0 Kudos

ME_CHANGE_OUTTAB_CUS : is a new badi that triggered when i execute me55 , me5a and me28 alv report .

but i couldn't find this badi using cl_exithandler or using 'call badi' key word in those t-codes programs

the question is : which is the most suitable way to find a new badi like this one ?

thanks in advance .

7 REPLIES 7

Sandra_Rossi
Active Contributor

You "couldn't find", but how did you search?

CL_EXITHANDLER was the class for instantiating "old" BAdIs.

GET BADI is for instantiating "new" BAdIs (CALL BADI being for calling a method after the instantiation).

But if the logic of the program doesn't need to call the BAdI, then it won't need to instantiate the BAdI.

0 Kudos

Hi,

Most of the BADI has to trigger in cl_exithandler , but some are not . Im not sure how to find it . If you need more information please read BC425 new version .

Regard

Nawa

hmm GET BADI maybe... Did I say it already...

p244500
Active Contributor
0 Kudos

HI,

You can try using package ,

get the package for relevant Tcode

Go to SE84, expand enhancements, expand Business Add-ins and select definition.

Provide package name and execute, you will find list of BADI`s.

Regards,

Nawa

Former Member
0 Kudos

thanks Nawanandana Edirisinghe for your reply but i think this way just list all new badi , is there any way to know where does new badi trigger ? ... a way that similar to cl_exithandler way

raymond_giuseppi
Active Contributor

You could perform a where-used search on the BAdI ME_CHANGE_OUTTAB_CUS (EnhS ES_BADI_ME_REPORTING) interface methods. You should find a FM which is called in many includes.

NB: This BAdI is only available if Business Function Set LOG_MMFI_P2P 'BF MM, Integration of Materials Management and Financial Accounting' was activated with SFW5.

Extract of the FM source (you should have find it?)

(...)
  data: l_instance  type ref to if_ex_me_change_outtab,
        l_badi_cust type ref to me_change_outtab_cus.
(...)
* call the customer specific BAdI
  get badi l_badi_cust.
  try.
      call badi l_badi_cust->fill_outtab
        exporting
          im_struct_name = im_struct_name
          im_id          = im_id
          im_handle      = im_handle
          im_loggroup    = im_loggroup
        changing
          ch_outtab      = ch_outtab.
    catch cx_badi_not_implemented.
  endtry.


Jelena
Active Contributor

"New BADIs" seem to be placed in the enhancement spots. Google -> "how to find enhancement spot BADI site:sap.com" -> one of the top posts (from 2008).