I need to implement a value help for description field in view BP_DATA/MarketingAttributesEOVP. For that i created on custom search help through SE11, now i need to assign this z search help to description field. I implemented the GET_V method for this field and added this code to this method
method GET_V_DESCRIPTION. data: ls_map type IF_BSP_WD_VALUEHELP_F4DESCR=>GTYPE_PARAM_MAPPING, lt_inmap type IF_BSP_WD_VALUEHELP_F4DESCR=>GTYPE_PARAM_MAPPING_TAB, lt_outmap type IF_BSP_WD_VALUEHELP_F4DESCR=>GTYPE_PARAM_MAPPING_TAB. ls_map-context_attr = 'DESCRIPTION'. ls_map-f4_attr = 'ATBEZ'. append ls_map to: lt_inmap, lt_outmap. create object rv_valuehelp_descriptor type CL_BSP_WD_VALUEHELP_F4DESCR exporting iv_help_id = 'ZMKT_ATTR_DESC' iv_help_id_kind = IF_BSP_WD_VALUEHELP_F4DESCR=>HELP_ID_KIND_NAME iv_input_mapping = lt_inmap iv_output_mapping = lt_outmap. endmethod.
I am able to see the search help window in Web UI but when i select any value in search help, its not passing that value to the field.