on 05-07-2008 10:30 PM
Hi,
IN select options, if we click on 'OPTION' there are two option -
"Exclude From Selection " and "Select" .
I would like to disable "Exclude from Selection", as user do not want to see this option.
Can anyone hekp me on this.
Regards,
Vishal
Hi Vishal,
Use the following code in WDDOINIT of the view on which you have implemented select options.
DATA : i_complex_restrictions TYPE if_wd_select_options=>t_complex_restrictions.
DATA : wa_rsoptions TYPE rsoptions.
DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
DATA : lt_range_table TYPE REF TO data,
rt_range_table TYPE REF TO data,
read_only TYPE abap_bool,
typename TYPE string.
MOVE 'X' TO wa_rsoptions-bt.
MOVE 'X' TO wa_rsoptions-cp.
MOVE 'X' TO wa_rsoptions-eq.
MOVE 'X' TO wa_rsoptions-ge.
MOVE 'X' TO wa_rsoptions-gt.
MOVE 'X' TO wa_rsoptions-le.
MOVE 'X' TO wa_rsoptions-lt.
MOVE 'X' TO wa_rsoptions-nb.
MOVE 'X' TO wa_rsoptions-ne.
MOVE 'X' TO wa_rsoptions-np.
i_complex_restrictions-m_include = wa_rsoptions.
lo_cmp_usage = wd_this->wd_cpuse_selopt( ).
IF lo_cmp_usage->has_active_component( ) IS INITIAL.
lo_cmp_usage->create_component( ).
ENDIF.
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
***************************************************************
*" Implementing select options with no "Exclude options"
***************************************************************
i_complex_restrictions = i_complex_restrictions
i_use_complex_restriction = 'X'
**************************************************************
i_read_only = read_only ).
Regards,
Chitrali
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check this link,
[SAP Online Help - IF_WD_SELECT_OPTIONS|http://help.sap.com/saphelp_nw70/helpdata/EN/45/bf07361248003de10000000a11466f/content.htm]
-
Achyut
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vishal,
Try using UPD_SELECTION_FIELD of IF_WD_SELECT_OPTIONS and set parameter I_READ_ONLY to ABAP_TRUE.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vishal,
try using this.. in the add_selection_field method of if_wd_seelct-options....
pass this parameter I_NO_COMPLEX_RESTRICTIONS = X
Regards,
Reema
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.