Skip to Content
0
Former Member
Nov 02, 2012 at 05:16 PM

ES_CRM_RF_Q1O_SEARCH:

155 Views

Hi ,

I want to add a standard field in Lead Search View. I have added in the structure and now field is part of search selection screen. But I want to write the logic to filter based on this.

I have implemented the badi - but system is not filtering based on the newly added field. I can see my newly added filed in the badi query. But its not filtering the data based on the selection.

This is the badi which i'm using

ES_CRM_RF_Q1O_SEARCH

Below is the code which I have written on Search...

DATA: lt_selection_parameters TYPE genilt_selection_parameter_tab.
DATA: ls_selection_parameters LIKE LINE OF lt_selection_parameters.
DATA: lt_return TYPE bapiret2_ta.
DATA: ls_multivalues TYPE CRMT_BSP_SEARCH_MULTI_VAL.
DATA: LIT_multivalues TYPE CRMT_BSP_SEARCH_MULTI_VAL_TAB.


LOOP AT it_multivalues INTO ls_multivalues.

if ls_multivalues-fieldname = 'ZSTATUS_SINCE'.
ls_multivalues-fieldname = 'STATUS_SINCE'.
ELSEIF ls_multivalues-fieldname = 'ZQUAL_LEVEL_AUTO'.
ls_multivalues-fieldname = 'QUAL_LEVEL_AUTO'.
ENDIF.
APPEND ls_multivalues TO Lit_multivalues.
ENDLOOP.

CALL FUNCTION 'CRM_BSP_OIC_1O_SEARCH_FROM_RF'

EXPORTING

it_search_tab = it_search_tab
it_multivalues = Lit_multivalues
iv_number = iv_number
iv_extern_call = 'X'
iv_select_for_headerlevel = 'X'

IMPORTING

et_guidlist = et_guidlist
et_return = et_return

EXCEPTIONS

date_not_correct = 1
no_card_type = 2
no_card_no = 3
no_program_id = 4.

I can see the 'staus_since' and 'QUAL_LEVEL_AUTO' in it_multivalues, but system is not filtering results based on these.

Thanks,