Saturday, September 10, 2011

BC427: Classic BAdI


The following figure shows how a program exit that is implemented using the classic BAdI technology works.


A BAdI definition is called and a BAdI interface is specified in TCODE SE18.This automatically generates a BAdI adapter class and the corresponding bridging method, which SAP application calls to branch to the relevent program.The only task for this bridging method is to call existing active implementation methods of industry solutions , partners and customers one after the other. The sequence in which they are called is not specified.
The following figure shows the syntax that is used to prepare and call the bridging method in the SAP program.


in the SAP program, after you define the BAdI and generate the adapter class including the bridging method, a type is assigned to a reference variable using the BAdI interface.
when the static method GET_INSTANCE of the standard class CL_EXITHANDLER is called , an instance of the adapter class (BAdI instance) is created.
The briding method in the BAdI instance is then called and it branches to the relevant program.

The following figures show how to find the classic BAdI in SAP programs and how to use them for enhancements.

No comments:

Post a Comment