cancel
Showing results for 
Search instead for 
Did you mean: 

F4 search help

Former Member
0 Kudos

Hi Friends,

I'm new to crm and looking for some assistance.

I had to develop search help by passing some constant values in get v method to search help exit in se11.  When search button in search help window is not clicked it works fine.  But when search criteria for date field is changed in search help window, output list is displayed correctly and when I select a row value is highlighted in blue F4 roundtrip is not getting triggered.  Below is the code.

datals_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,

         lv_str_index type string,

         lv_fname_prefix type string.





* Prefix of table view for F4 help

  lv_str_index = iv_index.

  condense lv_str_index.

  concatenate 'TABLE[' lv_str_index ']' into lv_fname_prefix.



* constant value

  ls_map-context_attr = '\''ZD01\'''.

  ls_map-f4_attr = 'DBA_TYPE'.

  append ls_map to lt_inmap.



  ls_map-context_attr = '\''ZRELSTATUS\'''.

  ls_map-f4_attr = 'ENTITY_TYPE'.

  append ls_map to lt_inmap.



* Start Date field value on UI

  concatenate lv_fname_prefix 'ZZRS_STDT' into ls_map-context_attr separated by '.'.

  ls_map-f4_attr = 'START_DATE'.

  append ls_map to lt_inmap.



  concatenate lv_fname_prefix 'ZZRES_STATUS' into ls_map-context_attr separated by '.'.

  ls_map-f4_attr = 'STATUS'.

  append ls_map to lt_outmap.



  create object rv_valuehelp_descriptor type cl_bsp_wd_valuehelp_f4descr

    exporting

      iv_help_id        = 'ZHAS_DECSTATUS'

      iv_help_id_kind   = if_bsp_wd_valuehelp_f4descr=>help_id_kind_name

      iv_input_mapping  = lt_inmap

      iv_output_mapping = lt_outmap

      iv_trigger_submit = abap_true.

Please help me to resolve this issue.

Thanks

Prabha

Accepted Solutions (0)

Answers (1)

Answers (1)

dharmakasi
Active Contributor
0 Kudos

Hi Prabha,

Check all the context node attribute names and search help exit output attribute names correct or not?

Check the search help for output flag checked for status field.

Try using the condense statement after every concetenate statement

condense ls_map-context_attr NO-GAPS.

Best Regards,

Dharmakasi.

Former Member
0 Kudos

Hi Dharmakasi

This code works for simple f4 when selection criteria is not changed.  when selection criteria is change and search button in search help window is clicked, f4 roundtrip is not triggering.

Thanks

Prabha