Providing Functions
Use
By default, there are no functions available to users for working with the ALV output. Even the basic functions, such as sorting, filtering, printing and so on are not available with the simplest call of an ALV output. In order to allow the user to make use of a function, you have to expressly make it available.
Functions are divided into two groups:
-
Generic ALV Functions
 You are able to enables these functions independent of the objectives of your application. Generic ALV functions are sorting, filtering, managing layouts, printing, and so on.
-
Custom Application-Specific Functions
 You use your application to provide functions that are specially customized to the requirements of this application. In the ALV output, you make pushbuttons available with which users can trigger the function.
Screen Status
When you display a tree structure or a simple, two-dimensional table in a container, simply specify your desired functions with the appropriate setter method.
In the following display types, on the other hand, ALV controls the entire screen:
-
Simple, two-dimensional table in full screen
-
Hierarchical-sequential list
-
Tree structure in the full screen
Here you can decide which screen status will be used and also which functions will be offered to the user as menu entries and which ones will be offered as pushbuttons. In these display types, you are only able to display those functions that you have also entered into the screen status.
Key Features
Setting Screen Status
You make the following settings with screen status in the full-screen display of the ALV output:
-
Which generic ALV functions and which self-defined functions the user can use
-
Which functions are offered as pushbuttons and which are offered as a menu entry
-
In which order the pushbuttons or menu are displayed
By default, the following screen statuses will be used:
-
For the simple, two-dimensional table and the hierarchical-sequential list of the screen status SALV_TABLE_STANDARD in the function group SALV_METADATA_STATUS
-
For the tree structure of the screen status STANDARD_TREE in the function group SLVC_FULLSCREEN
You are able to set another screen status.
|
ALV Tool |
Display Type |
Function available |
|
Simple, Two-Dimensional Table |
Classic ABAP List |
Yes |
|
Full Screen |
Yes |
|
|
In the Container |
Yes |
|
|
Hierarchical-sequential list |
Classic ABAP List |
Yes |
|
Tree Structure |
Full Screen |
Yes |
|
In the Container |
No |
|
Function |
Class |
Method |
|
Set screen status |
CL_SALV_TABLE CL_SALV_HIERSEQ_TABLE CL_SALV_TREE |
SET_SCREEN_STATUS |
|
Get screen status |
GET_SCREEN_STATUS |