04-10-2012 12:37 PM
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
04-10-2012 12:51 PM
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
04-10-2012 12:57 PM
Hi Suhas,
It is custom implementation.... any tehnique to add one more custom implementation.
Regards,
Venkat
04-10-2012 1:32 PM
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
04-10-2012 3:09 PM
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
04-10-2012 4:00 PM
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
04-10-2012 4:24 PM
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
04-11-2012 6:38 AM
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.
04-11-2012 12:40 PM
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
04-11-2012 1:02 PM
Hi,
Check the below links :
And if you dont want the badi implementation to be executed, de-activate it.
Hope this helps u.,
Thanks & Regards,
Kiran.