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

Single Use Badi Issue

Former Member
0 Likes
5,449

Dear Friends,

I am working on of the standard BADI's which is for PO BADI Name : ME_PROCESS_PO_CUST , In the Attributes of this BADI i can see that it is for single use as Multiple use is not Checked , and as far as i know that for a single use BADI we can only have a Single Implementation and Not a Multiple Implementation.  I Have browsed but couldn't find  concrete solution for Single use having multiple implementations. I am Infact  i am not writing any code in those methods of those Implementations but when i am activating them there are getting activated .  Please suggest why is it or anything wrong in the process explained.

Apart from this when I  try to implement a BADI definition the  BADI Interface section gets copied , but where as Fcodes and Screen enhancement are not copied to my newly created enhancement implementation why is it so.

Thanks In Advance.

Thanks & regards

hashim Khan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,609

Hello Hashim

Single use BADIs can have multiple implementations in the system but only one implementation can be active at the same time.

If you want to create a new implementation of the standard BADI but the BADI is Single Use and already has an active implementation here are your options:

1. Create new implementation, the class of the new implementation should inherit from the class of the original implementation, redefine the methods you need to change and place the SUPER->METHOD_NAME call if needed. This is the best approach.

2. Create new implementation and copy the original coding from the original implementation to the newly create one.

regards

6 REPLIES 6
Read only

former_member201275
Active Contributor
0 Likes
3,609

If you go to SE18 and enter your badi name, then click Display, there is a button on the top right of your menu "documentation" maybe this will help you. Also, if you from here also click goto -> sample code -> display, you can find sap sample code for this badi.

Read only

0 Likes
3,609

I dont see any 'Sample code' display in the 'Goto' menu. Which netweaver version are you on? I dont see it in NW 7.02

Read only

Former Member
0 Likes
3,610

Hello Hashim

Single use BADIs can have multiple implementations in the system but only one implementation can be active at the same time.

If you want to create a new implementation of the standard BADI but the BADI is Single Use and already has an active implementation here are your options:

1. Create new implementation, the class of the new implementation should inherit from the class of the original implementation, redefine the methods you need to change and place the SUPER->METHOD_NAME call if needed. This is the best approach.

2. Create new implementation and copy the original coding from the original implementation to the newly create one.

regards

Read only

0 Likes
3,609

Hi Adamus,

Thanks for your response,

As per my Understanding , if there is already an Active Impl then System will not allow you to create another Implementation, here in my case there is already a Active Impl , and upon which i am creating another Implementation which is getting created successfully or is it so that that only the 1st active Implementation gets executed and rest are ignored.

Please correct me if i am wrong .

Thanks & Regards

Hasim

Read only

0 Likes
3,609

Hello Hasim

Single use BADI means that you can have multiple implementations in the system but that only one of these implementations can be active at a time.

regards

Read only

former_member201275
Active Contributor
0 Likes
3,609

Hi Hashim,

Is your question answered?