Application Development 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: 

Badi Implementation on ECC 6.0

Former Member
0 Kudos

Hello SDNers,

I am very new to BADI. I was trying to create a BADI implementation on SE19 and Iam unable to.

I am working ECC 6.0.

On SE19 there are 2 frames one with Edit Implementation and 2nd with create Implementation.

Now under Create Implementation there are 2 radio buttons First New Badi (Enhancement spot)

and second Classic Badi (Badi name).

Now I am giving a name example zcustomer_add_data and trying to create a new implementation.

nothing happens.

Can anybody help me out with the same with some screen shots or examples would appreciate a lot.

Thanks and Regards,

Ranjith N

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Nambiar,

You can try the following steps for implementing your BADI:

1. In the SAP menu, choose ABAP Workbench ® Utilities ® Business Add-Ins (transaction SE19) or double-click the corresponding activity in the Implementation Guide (IMG).

2. Enter a name for the implementation and then click the Create pushbutton.

3. Enter the name of the add-in you want to create an implementation for in the dialog box that appears.

4. Enter a short text describing your implementation on the following screen.

5. Choose the Interface tab.

6. Choose ABAP Code as the implementation type.

Besides ABAP Code, there is also the Formula option. If you choose Formula, the content of a method is determined using the Formula Builder. For more information on this, refer to the section Implementing Methods Using the Formula Builder.

7. Navigate to the Class Builder by double-clicking the method. You must first enter a package before the Class Builder is displayed.

8. Insert the desired source code for the implementation between the method if_ex_businessaddin~method. and endmethod.statements that already exist.

Relating to our example, you could enter the statement translate parameter to upper case.

9. Save your entries and return to the Change Implementation screen.

10. Choose Activate. You may now use this implementation when the application program is executed.

Several implementations may exist for a Business Add-In that is not used on a multiple basis. However, only one implementation can be active at any one time.

What is also important is that you must declare the instance generation of the implementing class (Attributes tab) as public and not as private, protected, or even abstract. If you do this, the system will return short dumps at runtime.

Also, you can refer to the following link for more on BADI implementation. It's a good one:

http://help.sap.com/erp2005_ehp_04/helpdata/EN/5f/071eed117c11d5b37d0050dadef62b/frameset.htm

Hope it helps.

7 REPLIES 7

Former Member
0 Kudos

Hi Nambiar,

You can try the following steps for implementing your BADI:

1. In the SAP menu, choose ABAP Workbench ® Utilities ® Business Add-Ins (transaction SE19) or double-click the corresponding activity in the Implementation Guide (IMG).

2. Enter a name for the implementation and then click the Create pushbutton.

3. Enter the name of the add-in you want to create an implementation for in the dialog box that appears.

4. Enter a short text describing your implementation on the following screen.

5. Choose the Interface tab.

6. Choose ABAP Code as the implementation type.

Besides ABAP Code, there is also the Formula option. If you choose Formula, the content of a method is determined using the Formula Builder. For more information on this, refer to the section Implementing Methods Using the Formula Builder.

7. Navigate to the Class Builder by double-clicking the method. You must first enter a package before the Class Builder is displayed.

8. Insert the desired source code for the implementation between the method if_ex_businessaddin~method. and endmethod.statements that already exist.

Relating to our example, you could enter the statement translate parameter to upper case.

9. Save your entries and return to the Change Implementation screen.

10. Choose Activate. You may now use this implementation when the application program is executed.

Several implementations may exist for a Business Add-In that is not used on a multiple basis. However, only one implementation can be active at any one time.

What is also important is that you must declare the instance generation of the implementing class (Attributes tab) as public and not as private, protected, or even abstract. If you do this, the system will return short dumps at runtime.

Also, you can refer to the following link for more on BADI implementation. It's a good one:

http://help.sap.com/erp2005_ehp_04/helpdata/EN/5f/071eed117c11d5b37d0050dadef62b/frameset.htm

Hope it helps.

Former Member
0 Kudos

Hi Rajeev,

Thanks for your reply.

The step what you have said I have tried the same and that worked.

But I was just trying through SE19 and thats were the problem lies.

Thanks and regards,

Ranjith N

former_member201364
Participant
0 Kudos

Hi Ranjith,

You can create an implementation to an existing badi definition through SE19.

Under create implementation

you need to give the badi definition name, (for example LE_SHP_TAB_CUST_HEAD) for which u want to create implementation and then press create implementation button.

Then it will ask u for the implementation name( eg u can give zle_shp).

Regards,

Poornima

Former Member
0 Kudos

Ho Poornima,

Thanks for your reply.

But under create implementation there is nothing called as badi definiiton on ECC 6.0

We have got 2 options and these are radio buttons, cant make multiple selections

1) New badi (Enhancement spot).

2) Classic badi (Badi name).

Regards,

Ranjith N

0 Kudos

Hi Ranjith,

Under Create Implementation select Classic badi radio button and against

BAdi Name give the badi definition name and then press create implementation.

Then it will ask u for the implementation name.

Regards,

Poornima.

Former Member
0 Kudos

Hi Poornima,

Thanks..

Regards,

Ranjith N

Former Member
0 Kudos

answered