06-10-2007 3:23 PM
What is a BADI and how does it is different from an USER EXIT? How does a BADI is better than User Exit?
06-10-2007 3:25 PM
I have gone thru the Sudheer's answer, still I am looking for a much more detailed answer please.
There are three generations of user-exits in SAP ABAP now.
First generation: there had been empty subroutines in place in the coding where you could add your code. However, this required to modify code of SAP standard programs.
Example: search for forms starting USEREXIT.. in SAPMV45A
Second generation: CUSTOMER-FUNCTION. In certain places of SAP standard code there are calls CALL CUSTOMER-FUNCTION ‚001' . These routines can be defined with SMOD edited with transaction CMOD.
Third generation:
using ABAP objects instances, they are called BADI. They are call with CALL METHOD (instance) .... they are created with transactions SE18/SE19. To find BADI search for the word EXIT_HANDLER in the coding.
BADI Example :
http://www.sap-img.com/abap/business-add-in-you-need-to-understand-abap-oo-interface-concept.htm
Look at the below link, it will explain you very clrear difference between BADI & User Exit
http://www.sap-img.com/abap/difference-between-badi-and-user-exits.htm