Creating an Implementation to the BAdI
RS_BBS_BADI
...
1. In the SAP Easy Access menu, choose Tools ® ABAP Workbench ® Utilities ® Business Add-Ins ® Implementation.
2. Under Create Implementation, choose the option Classic BAdI.
3. Enter RS_BBS_BADI as the name of the BAdI.
4.
Choose
Create Implementation.
5. Enter a name for the implementation (in the example: Z_RS_BBS_BADI_DET).
6. Enter a short description.
7. Choose the Interface tab page.
8. Enter a name for the implementing class and copy the proposal from the system (in the example: ZCL_IM__RS_BBS_BADI_DET).
9. Save your implementation.
10. Double-click the method GET_TYPES.
11. Copy the coding in the example.
12. Activate the implementing ABAP class (in the example: ZCL_IM__RS_BBS_BADI_DET).
13. Activate the implementation (in the example: Z_RS_BBS_BADI_DET).
Note: In this example, two different report types (Details of Productand Details of Customer on the one hand and Search at Google on the other hand) are implemented in one ABAP class. In a real application, we recommend that the two report types be implemented in two different ABAP classes with the interface IF_RS_BBS_BADI_HANDLER. The two ABAP classes must be added in the method IF_EX_RS_BBS_BADIi~GET_TYPES. In the maintenance of the sender-receiver assignment, two entries now appear in the dropdown box under Report.

method if_ex_rs_bbs_badi~get_types.
data: ls_handler type rsbbs_s_badi_handler.
* Technical application name (any customer-defined name)
ls_handler-appl = 'ZDET'.
* ABAP class implementing interface IF_RS_BBS_BADI_HANDLER (see first step)
create object ls_handler-handler type zcl_im_rs_bbs_badi_handler_det.
insert ls_handler into table c_th_handler.
** Add second
entry with other ABAP class
*
ls_handler-appl = 'Zxxx'.
* create object ls_handler-handler type zcl_im_rs_bbs_badi_handler_xxx.
* insert ls_handler into table c_th_handler.
endmethod.