35 - Enhancements & Modifications - Customized New BADI - Using Filters Part1
Vložit
- čas přidán 10. 09. 2024
- -Checking the Execution of Various Implementations in Debugging Mode.
-Creation of Filter Using SE18 Transaction Code.
-Assign the Filter Values to First and Second Implementation.
Rahul each video is very good
keep it up
Thank you very much for your encouragement.
Hello Rahul. Thanks for the great tutorial video series across entire ABAP domain.
I have a very basic question regarding the concept of multiple implementation BADI.
So when a BADI has multiple implementations , the customer do not have control over the sequence of its execution. In different implementations we write different logic to populate different value in exporting/changing parameters and then control its calling through some parameter in Filter Value.
So the question is why can't this be done using simple CASE or IF condition within 1 implementation over the Filter parameter and write the logic in respective IF condition based on the FILTER value. Why did SAP create the Multiple implementation provision and we need to implement same BADI multiple times for different Values of Filter parameter. Just for Example , in 1st implementation itself - IF country = 'USA' --> PVALUE = 'X' ELSEIF country = 'JAPAN' --> PVALUE = 'Y". Is there Business Scenario exists where we need to do multiple implementation.
Thanks in advance.
Hello Vikrant - Thank you very much for your feedback. We can also use IF and ELSE conditions, but there are lots of disadvantages. Suppose there is a customer which has offices in India and US and there is a single implementation and we received the changes for India and US both. In that case one has to wait for the another to get the changes done. If there are separate implementations, there is no dependency and respective changes can be done independently that's why we prefer to do separate implementation.
@@sapabapbyrahulmehta Thank you so much for the response. It makes sense.
sir instead of creating new implementation for value y can we edit the first enchancement implementation and we can give new Badi implementation and class under first new badi implementation and class.
Yes You can , as enhancement implementation is the container for BADI implementations.
hello sir in case of filter concept what answer interviewer expect from our side.
You Can call the specific implementation using FILTER.
Bcz here we are using same Badi def and same method.if u see plz rply sir.i waiting