‎2010 May 27 7:15 PM
Hi all,
I am some doubts regarding Filter BADIs, if anyone please clear off the doubts then it will good for me.
- Suppose any standard BADI definition is not having 'Filter Dependent' option, then can we make it Filter dependent ?
- Does a custom BADI definition has to be created for it to change the standard BADI definition or is there any other way to make a standard BADI filter dependent ?
- If suppose for a standard tcode there is standard BADI with filters then how does the filter value is passed from the standard program ?
- Can filter value can be any field (like material number or tax code) as per the requirement or it has to be some specific set of values like country, language etc ?
‎2010 May 28 6:28 AM
Hi Amit,
> - Suppose any standard BADI definition is not having 'Filter Dependent' option, then can we make it Filter dependent ?
No. That will be a modification.
> - Does a custom BADI definition has to be created for it to change the standard BADI definition or is there any other way to make a standard BADI filter dependent ?
If you create custom BADI defination by copying standard, it will not be triggered as standard BADI. No other way to add filter dependant option to standard BADI. You can use IF- condition in side the BADI Method implemetation, so that the code will be executed only for some values.
> - If suppose for a standard tcode there is standard BADI with filters then how does the filter value is passed from the standard program ?
When the system calls the filter dependant BADI implementation it passes the filter value.Check on example by debugging the tcode.
> - Can filter value can be any field (like material number or tax code) as per the requirement or it has to be some specific set of values like country, language etc ?
If your creating custom BADI defination, it can be any field. But It must be a data element, of the character type, with a maximum length of 30, which has a search help, a domain with fixed values, or a domain with a value table.
--
Reddy