Share |

Implementing Business Add-Ins (BADI)


The use of object orientated code within SAP has lead to new method of enhancing standard SAP code called Business Add-Ins or BADI's for short. Although the implementation concept is based on classes, methods and inheritance you do not really have to understand this fully to implement a BADI. Simply think of methods as a function module with the same import and export parameters and follow the simple instructions below.

Steps:
  • Execute Business Add-In(BADI) transaction SE18
  • Enter BADI name i.e. HRPBSGB_HESA_NISR and press the display button
  • Select menu option Implementation->Create
  • Give implementation a name such as Z_HRPBSGB_HESA_NISR
  • To access already created implementations simple select menu option Implementation->display or Implementation->change. You can also access existing BADI implementations via transaction SE19
  • You can now make any changes you require to your BADI within the implementation, for example choose the Interface tab
  • Double click on the method you want to change, you can now enter any code you require.
  • Please note to find out what import and export parameters a method has got return the original BADI definition (i.e. HRPBSGB_HESA_NISR) and double click on the method name for example within HRPBSGB_HESA_NISR contract is a method
  • When changes have been made activate the implementation