Hi all,
I have a requirement to customize the partner serach functionality in WEB UI.
The requirement is - I want to allow some of the user profile to search the business partner who is having a particular role say ZABC.
For this we have enhanced a method EH_ONSEARCH of component BP_HEAD_SEARCH in which we are checking the user profile and if one particular profile is allowed to seacrh the business partner then we are calling the standard EH_ONSEARCH method -
CALL METHOD super->eh_onsearch
EXPORTING
htmlb_event = htmlb_event
htmlb_event_ex = htmlb_event_ex.
Otherwise we are trying to filter the seacrh result by adding other parameter as ROLE NE ZABC-
CALL METHOD lr_qs->add_selection_param
EXPORTING
iv_attr_name = 'ROLE'
iv_sign = 'I'
iv_option = 'NE'
iv_low = 'ZABC'
apart from this method we have implemented a badi BADI_CRM_BUPA_IL_SEARCH_EXT in which we have written code to filter the partner based on this role but this badi is not getting triggred everytime when search is being executed.
Hence we are not getting proper search results in partner search.
Kindly advice what we can do for this.
Regards,
Md Soyab Memon