Skip to Content
0
Apr 14, 2014 at 07:04 AM

Search Help Selected Values not reflected in WebUI

226 Views


Hello All, We have a requirement to create a standard F4 value help for PRODUCT_ID field and the selected value should be reflected in the WebUI field. This field is in a table view context node and the component is a stand alone WebUI component. Everything works fine till the Search help is called and the values is selected. But the selected value is not reflected in the Product_ID field. We have checked many forums and links and tried almost all the alternatives suggested. Here's is the code attached for reference.

DATA:l_wa_map TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
l_i_inmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
l_i_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.

DATA: lv_str_index TYPE string.

* l_wa_map-context_attr = 'product_id'.
* l_wa_map-f4_attr = 'PRODUCT_ID'.
*
* APPEND l_wa_map TO:l_i_inmap,l_i_outmap.

lv_str_index = iv_index.
CONCATENATE 'table[' lv_str_index '].PRODUCT_ID' INTO l_wa_map-context_attr.
l_wa_map-f4_attr = 'KEY'. "'PRODUCT_ID'. "'
APPEND l_wa_map TO: l_i_outmap.

lv_str_index = iv_index.
CONCATENATE 'table[' lv_str_index '].PRODUCT_ID' INTO l_wa_map-context_attr.
l_wa_map-f4_attr = 'VALUE'. "'PRODUCT_ID'. "

APPEND l_wa_map TO: l_i_outmap.

CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_f4descr

EXPORTING
iv_help_id = 'COM_PR_SHTEXT' "#EC NOTEXT
iv_help_id_kind = if_bsp_wd_valuehelp_f4descr=>help_id_kind_name "if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp
iv_input_mapping = l_i_inmap
iv_output_mapping = l_i_outmap
iv_object_ref = me
iv_trigger_submit = abap_true.

Is there any further code or event call required to reflect the value in the WebUI? or what exactly is required to be done here?

Thanks in Advance.

Prasad