09-04-2008 2:56 PM
Hello Experts,
Iu2019ve a requirement and according to it I need to Create a filter BUKRS in the BADI definition which makes the BADI call acceptable only when Company Code is XXXX and XXXX.
Can somebody tell me which BADI I should use?
Thanks,
09-05-2008 6:05 AM
Hello
What is the purpose of using BADI...??? For which area you are looking it ??
Thanks
Amol Lohade
09-05-2008 6:05 AM
Hello
What is the purpose of using BADI...??? For which area you are looking it ??
Thanks
Amol Lohade
09-05-2008 6:34 AM
Hello
Either your BAdI is already filter-dependent or you have to use a little trick to achieve filtering without this BAdI property.
" Create a macros within the implementing class which does the validation of the company code, e.g.:
DEFINE mac_validate_companycode.
CHECK ( &1 = 'XXXX' or
&1 = 'YYYY' ).
END-OF-DEFINITION.
Within each BAdI method the first statement is to call this macro:
METHOD if_ex...~name_of_method.
mac_validate_companycode.
" Put in your coding here...
ENDMETHOD.
Regards
Uwe