on 02-21-2008 2:10 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.