‎2007 Jul 19 2:15 PM
Hello,
I need help with implementations for new BADIs. I'm trying to implement BADI PT_ABS_REQ which has about 15 methods. I want my custom logic called for only one of these methods and want SAP standard logic to be called for all other methods. Is this possible? Any help is greatly appreciated.
Thanks
Kishore
‎2007 Jul 19 2:18 PM
Hi Kishore,
YOu can create an implementation for the BADI definition in SE19 transaction.
IN the implementation, you can only code for the method you want and leave the rest untouched. activate the badi and test your transaction.
Regards,
Ravi
‎2007 Jul 19 2:36 PM
‎2007 Jul 19 2:44 PM
Ravi,
Did you mean that I copy the SAP implementation Class and change only the method that needs custom logic. I did do that, but my concern is that in this case, if SAP makes any change to the standard logic in other methods, I would not be using the latest SAP logic. One option I'm considering is to call SAP implementaion class methods in my Z-Class so that if and when SAP adds/changes logic, I'll have the latest. Is there no other option?
Sreedhar,
Yes, it is "PT_ABS_REQ".
Thanks for your replies...
Kishore
‎2007 Jul 20 5:45 AM
Hi,
Steps:
1. Execute Business Add-In(BADI) transaction SE18
2. Enter BADI name i.e. PT_ABS_REQ and press the display
button
3. Select menu option Implementation->Create
4. Give implementation a name such as Z_PT_ABS_REQ
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. PT_ABS_REQ) and double click on the method name
for example within PT_ABS_REQ contract is a method
8. When changes have been made activate the implementation
YOu can go through these links...
http://esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
http://esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
http://esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
http://esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
http://esnips.com/doc/365d4c4d-9fcb-4189-85fd-866b7bf25257/customer-exits--badi.zip
http://esnips.com/doc/3b7bbc09-c095-45a0-9e89-91f2f86ee8e9/BADI-Introduction.ppt
<b>Reward points</b>
Regards
‎2007 Jul 20 6:41 AM
Hi,
Create a similar implementation for that BAPI definition and implement the first method in that as per ur requirement and copy the rest as standard methods of the standard bapi implementation.
Pls reward helpful points.
Regards,
Ameet