cancel
Showing results for 
Search instead for 
Did you mean: 

searchhelp in SelectOPtion even if not requested

Former Member
0 Kudos

Hi Guys,

I have a problem I cannot understand.

I the Componentcontroller I have an attribute named DEBITOR type KUNNR.

Searchhelpmode is deactivated.

In my view the node the attibute DEBITOR is mapped to my ViewContext.

wddoinit contains the following coding:

method wddoinit.

  data: lt_range_table  type ref to data,
        rt_range_table  type ref to data,
        read_only       type abap_bool,
        typename        type string.
  data: l_ref_cmp_usage type ref to if_wd_component_usage.

  l_ref_cmp_usage = wd_this->wd_cpuse_selopt( ).

  if l_ref_cmp_usage->has_active_component( ) is initial.
    l_ref_cmp_usage->create_component( ).
  endif.

  wd_this->m_wd_selopt = wd_this->wd_cpifc_selopt( ).

  wd_this->m_handler = wd_this->m_wd_selopt->init_selection_screen( ).

  wd_this->m_handler->set_global_options(
    i_display_btn_cancel  = abap_false
    i_display_btn_check   = abap_false
    i_display_btn_reset   = abap_false
    i_display_btn_execute = abap_false
  ).

  lt_range_table = wd_this->m_handler->create_range_table(
    i_typename      = 'KUNNR' ).


  wd_this->m_handler->add_selection_field(
    i_id              = 'DEBITOR'
    it_result         = lt_range_table
    i_no_intervals    = abap_true
    i_read_only       = read_only
  ).

endmethod.

The interesting thing is, that the selectoption dispalys a F4-Help for Debitor !

Does anybody have an idea why ?

Edited by: Matthias Drescher on Feb 21, 2008 3:10 PM

Accepted Solutions (1)

Accepted Solutions (1)

former_member189058
Active Contributor
0 Kudos

Hi

Try this:

In the ADD_SELECTION_FIELD method, use the parameter I_VALUE_HELP_TYPE and set its value to IF_WD_VALUE_HELP_HANDLER=>CO_VH_TYPE_NO_HELP

If only that doesnt work, use parameter I_VALUE_HELP_MODE = 1

Regards,

Reema.

Edited by: Reema Shahbazkar on Feb 22, 2008 11:55 AM

Edited by: Reema Shahbazkar on Feb 22, 2008 11:57 AM

Former Member
0 Kudos

Thanks a lot for your support !

don´t know why I did not fond it by myself !

Best regards, Matthias

Answers (1)

Answers (1)

Yashpal
Active Contributor
0 Kudos

Hi ,

The search help is coming by default bcoz there is a search element attached to the data element "KUNNR", u can check through se11.

Regards

Yash