on 04-12-2011 5:39 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.