Quantcast
Channel: SCN : All Content - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 4552

F4 help doesn't work

$
0
0

Hello Experts,

 

My code for search help on field "ZTZONE" goes like this(which does not work)

 

method GET_V_ZTZONE.

   DATA:

        valuehelp_descr TYPE REF TO cl_bsp_wd_valuehelp_f4descr,

        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 = 'ZTZONE'.                    "#EC NOTEXT

   CONDENSE ls_map-context_attr NO-GAPS.

 

   ls_map-f4_attr      = 'KEY'.                              "#EC NOTEXT

   APPEND ls_map TO lt_outmap.

 

   CREATE OBJECT valuehelp_descr

     EXPORTING

       iv_help_id        = 'SC_ZONEDEF'                      "#EC NOTEXT

       iv_help_id_kind   = if_bsp_wd_valuehelp_f4descr=>help_id_kind_callback

       iv_input_mapping  = lt_inmap

       iv_output_mapping = lt_outmap

       iv_trigger_submit = abap_true.

 

   rv_valuehelp_descriptor ?= valuehelp_descr.

 

 

endmethod.


The values come up on the screen to choose. but when I choose one, the same is not reflecting on the screen.

I changed    ls_map-context_attr = Z'TZONE'to    ls_map-context_attr = 'STRUCT.ZTZONE' but no improvement

APPENDed ls_map to lt_inmap too but no improvement


SC_ZONEDEF is actually a data element which points to search help SCSEAR_TZ which has a selection method of TTZZ. Not sure what should iv_help_id be!


Thanks for your valuable suggestions.




Viewing all articles
Browse latest Browse all 4552

Trending Articles