cancel
Showing results for 
Search instead for 
Did you mean: 

Disable ./Remove "Exclude from selection" option on selection screen

Former Member
0 Kudos

Hi Experts,

As per my requirement i have a selection screen in my webdynpro component,

We dont want to give the "Exculde from selection" tab on my selection screen"

I am trying to find out how this is possible .

I looked into parameter "complex restrictions" but not yet able to catch up with what needs to be done to

disable "exculde from selection" option on my selection screen.

Anu suggestions ? Please let me know about it .

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI ,

To remove the exclude tab, first we will have to disable all options under it and hence the tab will be disabled.

Check out this code..



 DATA :ls_struc TYPE IF_WD_SELECT_OPTIONS=>T_COMPLEX_RESTRICTIONS.

   ls_struc-m_include-BT = 'X'.
   ls_struc-m_include-CP = 'X'.
   ls_struc-m_include-EQ = 'X'.
   ls_struc-m_include-GE = 'X'.
   ls_struc-m_include-GT = 'X'.
   ls_struc-m_include-LE = 'X'.
   ls_struc-m_include-LT = 'X'.
   ls_struc-m_include-NB = 'X'.
   ls_struc-m_include-NE = 'X'.
   ls_struc-m_include-NP = 'X'.


   wd_this->m_handler->UPD_SELECTION_FIELD( I_ID =  'S_CONN_ID'
                                           I_USE_COMPLEX_RESTRICTION = abap_true
                                           I_COMPLEX_RESTRICTIONS = ls_struc ).

Here I am enabling all INCLUDE options(m_include) and not doing anything with EXCLUDE options(m_exclude) hence all exclude options will be disabled.

Write the code in WDDOINIT or place where you are adding selection field.

Thanks.,

Aditya.

Answers (0)