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 without 'Multiple Use' check

Former Member
0 Kudos

Hi all,

To meet my requirement, i have identified one BADI, where i have to implement.

but, i noticed this BADI is not for 'Multiple Use'. Some one is already done one implemémtation. So, i can not do implementation further.

Is there any technique to use the same BADI......... even though it is not for 'Multiple Use'.

Regards,

Venkat

9 REPLIES 9

SuhaSaha
Advisor
Advisor
0 Kudos

Hello Venkata,

Is the other implementation a custom or a standard one?

In one of my previous project we used a "Strategy" (design pattern) to have different implementations running for the "Single-use" BAdI based on some custom filter.

I'm planning to write a blog on this topic sometime soon.

BR,

Suhas

Former Member
0 Kudos

Hi Suhas,

It is custom implementation.... any tehnique to add one more custom implementation.

Regards,

Venkat

0 Kudos

Hello Venkat,

Only straight forward way will be to de-activate the previous implementation & activate yours. As you must be aware that "Single-Use" BAdIs can have only-one active  implementation.

Otherwise you've to implement the user-exit "strategy" i have mentioned in my previous post. You can refer to my blogs on Strategy pattern:

Hope this helps.

BR,

Suhas

PS: There might be some way of changing the back-end table which stores the BAdI information. But i generally don't approve these kind of workarounds

Former Member
0 Kudos

Hi,

I got the answer. If it is 'Filter-Dependent' we can create & use multiple implementations... eventhough the BADI is not checked for 'Multiple Use'.... ??

Pls correct me if it is wrong...

Regards,

Venkat

0 Kudos

Hello Venkat,

Which BAdI are you planning to implement? It doesn't make sense for a single-use BAdI to have filters

You must understand, "Single-Use BAdI can have only one active implementation"!

BR,

Suhas

Former Member
0 Kudos

Hi Suhas,

I have a BADI called NOTIF_EVENT_SAVE, which is 'Filter-Dependent', but not 'Multiple Use'.

I have implemented multiple BADI's, then i have checked in the program both are calling.

Is this fine, or will it create any problem...... bcz i dont know much, i am new to BADI's.

Regards,

Venkat

0 Kudos

Hi,

As long as both the implementations are independent it is fine to have 2 implementations. If not, let say first implementation is inserting and second implementation is deleting then it would be a problem. Please check the logic of both implementations and proceed.

Regards,

Kiran.

Former Member
0 Kudos

Hi,

If i dont want to implement multiple implementations, instead of that i want to go for Enhancement concept. (Enhancement spot....)

can u pls explain how can do using enhancement spot...

Regards,

Venkat

0 Kudos

Hi,

Check the below links :

http://scn.sap.com/people/thomas.weiss/blog/2006/05/03/source-code-enhancements--part-5-of-the-serie...

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/bb54c452-0801-0010-0e84-a653307fc...

And if you dont want the badi implementation to be executed, de-activate it.

Hope this helps u.,

Thanks & Regards,

Kiran.