Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Create a filter BUKRS in the BADI definition

former_member295881
Contributor
0 Kudos

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,

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello

What is the purpose of using BADI...??? For which area you are looking it ??

Thanks

Amol Lohade

2 REPLIES 2

Former Member
0 Kudos

Hello

What is the purpose of using BADI...??? For which area you are looking it ??

Thanks

Amol Lohade

uwe_schieferstein
Active Contributor
0 Kudos

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