03-03-2018 10:41 AM
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 .
03-03-2018 4:36 PM
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.
03-04-2018 4:53 PM
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
03-04-2018 5:59 PM
03-03-2018 4:46 PM
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
03-03-2018 9:17 PM
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
03-05-2018 7:12 AM
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.
03-05-2018 7:50 PM
"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).