Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

New BADI Implementation

Former Member
0 Likes
1,891

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

5 REPLIES 5
Read only

Former Member
0 Likes
861

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

Read only

Former Member
0 Likes
861

is this BADI definition name is correct ?

Read only

0 Likes
861

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

Read only

0 Likes
861

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

Read only

Former Member
0 Likes
861

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