!--a11y-->
Controlling Visibility and Activation
Status 
You can affect the way self-defined functions operate:
· You can deactivate an individual UI element for a function
· You can hide an individual UI element for a function
· You can deactivate the entire toolbar
· You can hide the entire toolbar
If you do not want to hide a UI element, but you want to prevent the user from performing this function, you can deactivate the UI element.
To deactivate or activate a UI element for a function object, you use the methods belonging to the class of your UI element.
Methods Relating to the Activation Status of Function Objects
Function |
Method |
Enable/disable function object |
SET_ENABLED |
Get activation status |
GET_ENABLED |
You can hide the UI element for a function in two ways:
· VISIBILITY-NONE
The UI element is invisible. The elements in the toolbar that are placed next to the function simply move up and there are no gaps in the toolbar.
· VISIBILITY-BLANK
The UI element is invisible but the space it occupied remains empty. Elements in the toolbar that were next to the function keep their former positions.
To show or hide a UI element for a function object, use the methods of the class CL_SALV_WD_FUNCTION.
Methods for Hiding/Showing Function Objects
Function |
Method |
Show/hide function object |
SET_VISIBILITY |
Get visibility |
GET_VISIBILITY |
To determine the activation status or visibility of the entire toolbar, you use the methods of the interface class IF_SALV_WD_FUNCTION_SETTINGS (implementing class CL_SALV_WD_CONFIG_TABLE).
Methods Relating to the Activation Status and Visibility of the Toolbar
Function |
Method |
Activate/deactivate toolbar |
SET_ENABLED |
Get activation status |
GET_ENABLED |
Show/hide toolbar |
SET_VISIBILITY |
Get visibility |
GET_VISIBILITY |