Hi Madhukar,
what exactly your searching for if the field is display as search element or you want to provide drop down for the search field..
ex:
if you want to add search parameter (black box) first you have to decide weather that is custom field or standard if it is a standard go to config move the field from available to display that will display under search parameter.
or you want to display custom field under that then you can use AET approach that is best you no need to write any coding for this.or another approch is identify the base entity name of the search context node go to bol model browser there is a stricture add your field over there by using append structure. again come to config mode move the field from available to display
if you want to fetch the data based on custom field go through this link
Enhancement of search view with a custom field
check this links too
How to add customizing field as search parameter into search page?
http://www.consultingcy.com/SAP_CRM_General_WebUI_Development_AET_Fields_Enhancement.htm
Enhancing BP Search without using AET
for drop down (red box)
SAP CRM WEB UI : 38. PROVIDING DROPDOWN LIST
or you can implement the method GET_DQUERY_DEFINITIONS in your impl search class.
ex code:
FIELD-SYMBOLS : <fs_wa> TYPE crms_thtmlb_search_field_info.
DATA: wa_ddlb TYPE crms_thtmlb_search_ddlb_nvp,
wa_opr TYPE crm_thtmlb_search_operator,
lv_node TYPE REF TO cl_crm_bol_entity,
lr_value_help TYPE REF TO cl_crm_mktpl_vh_bol_proxy.
READ TABLE rt_result ASSIGNING <fs_wa> WITH KEY field = 'your field name'.
IF sy-subrc = 0.
wa_opr = 'GE'.
APPEND wa_opr TO <fs_wa>-operators.
APPEND INITIAL LINE TO <fs_wa>-ddlb_options.
wa_ddlb-key = '10'.
wa_ddlb-value = 'value1'.
APPEND wa_ddlb TO <fs_wa>-ddlb_options.
wa_ddlb-key = '20'.
wa_ddlb-value = 'value2'.
APPEND wa_ddlb TO <fs_wa>-ddlb_options.
ENDIF.
Thanks & Regards,
Srinivas.