‎2008 Jun 20 5:03 AM
Hi Gurus,
In BADIs, we can set a filter value and trigger our respective implementations based on that filter values ( this is handled by the system itself ....... )
But, can we have MORE than ONE filter values DEFINED in our CUSTOM BADI DEFENITION ( 'Z' BADI ) ?
For example..... the corresponding implementation of a BADI would only be triggered for a 'combination' of filter values ( say a particular material number AND company code ..... )
Eagerly waiting for your suggestions ....
Regards
Anshul
‎2008 Jun 20 6:41 AM
Hi Anshul,
BADI is for transaction not for filtering purpose.
You cannot stop BADI from trigggering on perticular combination.
But you can do one thing that, Put you logic on the basis of your condition.
i.e.
IF <matnr> = 'xyz' AND <bukrs> = '123'.
Your code.
endif.
Regards,
Swarup
‎2008 Jun 20 6:51 AM
hi Anshul,
In badis the main advantage is that reusability i.e we can defiene one tiem and we can implement it many times so if we whie defining we will give filter type so , we have to give filter type only once for a particular badi,
but implementaion can be done many times,
hope its clear to you,
reward points if usefull,
Thanks,
Kalyan.