Controlling Visibility and Activation
Status
You can specify whether self-defined functions are used in various ways:
● 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 want to prevent the user from executing its function, you can deactivate the UI element.
To activate or deactivate the UI element for a standard ALV function, you use methods from class CL_SALV_WD_FUNCTION_STD.
To activate or deactivate the UI element for a self-defined function, you use methods from the class of your UI element (see Specifying User Interface Elements).
Methods for the Activation Status of Function Objects
Function |
Method |
Enable/disable function object |
SET_ENABLED |
Get activation status |
GET_ENABLED |
The following two constants are available for showing and hiding functions:
● VISIBILITY-VISIBLE
The system displays the function.
● VISIBILITY-NONE
The system hides the function.
To show or hide a UI element for a standard ALV function, you use the methods of class CL_SALV_WD_FUNCTION_STD.
To show or hide a UI element for a self-defined function, you use the methods of class CL_SALV_WD_FUNCTION.
Methods for Showing and Hiding Function Objects
Function |
Method |
Show/hide function object |
SET_VISIBILITY |
Get visibility |
GET_VISIBILITY |
To control the activation status or visibility of the whole toolbar, you use the methods of interface class IF_SALV_WD_FUNCTION_SETTINGS (implementing class CL_SALV_WD_CONFIG_TABLE).
Methods for 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 |