on 12-15-2008 5:08 AM
Hi Experts,
I am using a select options for one field on my screen with extension which gives me an Arrow right next to the Field , now the issue is when i click on the Arrow a search help opens up for multiple selection.
In this search help there are "FROM" and ''TO" columns , i would like to disable or make that "TO" column invisible i know it is possible in ABAP through function modules but how can it be acheived in webdynpro.
I have gone through the "if_wd_select_options" class but couldnt find a solution for this , please lead me to the
right approach.
Thanks In Advance,
Chaitanya.
Hi Chaitanya,
When using add_selection_field method add_selection_field of IF_WD_SELECT_OPTIONS,
specify the following parameter with value X, this would hide the TO option.
I_NO_INTERVALS = 'X'
wd_this->m_wd_select_options = wd_this->wd_cpifc_selopt( ).
wd_this->m_handler = wd_this->m_wd_select_options->init_selection_screen( ).
lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'S_CARR_ID' ).
wd_this->m_handler->add_selection_field(
i_id = 'S_CARR_ID'
it_result = lt_range_table
I_NO_INTERVALS = 'X'
i_read_only = read_only ).
Thanks.
Chitrali
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Chaitanya Raju,
You must be resusing the Select-option component WDR_SELECT_OPTIONS
Follow below steps to create a select-options without ranges.
I think this is only possible with dynamic handling.
1)Acess the method: remove_all_sel_screen_items to Removes All Elements in Selection Screen.
2)build up new screen by calling the method: ADD_SELECTION_FIELD.
Before calling the 2nd step --> you will have to populate all the information that is required to build a select-option.
*add select options field
CALL METHOD wd_comp_controller->mo_so_handler->add_selection_field
EXPORTING
i_id = is_sel_op-m_id
i_within_block = is_sel_op-m_within_block
i_description = is_sel_op-m_description
it_result = is_sel_op-mt_range_table
i_obligatory = is_sel_op-m_obligatory
i_value_help_id = is_sel_op-m_value_help_id
i_no_extension = is_sel_op-m_no_extension
i_no_intervals = is_sel_op-m_no_intervals
i_no_complex_restrictions = is_sel_op-m_no_complex_restrictions
i_as_checkbox = is_sel_op-m_as_checkbox
i_as_dropdown = is_sel_op-m_as_dropdown
it_value_set = is_sel_op-mt_value_set
i_read_only = is_sel_op-m_read_only
i_tooltip = is_sel_op-m_tooltip .
You can refer to this link for more info.
Thanks,
Bharath.K
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.