[转]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:
1.Execute Business Add-In(BADI) transaction SE18

2. Enter BADI name i.e. HRPBSGB_HESA_NISR and press the display button

3. Select menu option Implementation->Create

4. Give implementation a name such as Z_HRPBSGB_HESA_NISR

5. You can now make any changes you require to the BADI within this implementation, for example choose the Interface tab

6. Double click on the method you want to change, you can now enter any code you require.

7. 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

8. When changes have been made activate the implementation

posted @ 2013-02-19 14:46  沙茶叶  阅读(377)  评论(0编辑  收藏  举报