Main ALV Classes
Definition
You are using the ALV object model with one of the following main ALV classes:
-
CL_SALV_TABLE
for the simple, two-dimensional table
-
CL_SALV_HIERSEQ_TABLE
for the hierarchical-sequential list
-
CL_SALV_TREE
for the tree structure
If you have decided on one of the ALV tools, you use the corresponding main ALV class to make all the settings that you need for the ALV output.
Structure
In the ALV main classes, you will find somewhat uniform methods that you use to provide the required specifications:
Minimum Information
In each of the three main ALV classes, you must call at least the following methods to obtain your desired ALV output:
-
You instantiate the main ALV class:
-
You define the internal data table that provides the structure and content of the ALV output, as needed.
-
You define which display type you want to use for the ALV output.
-
-
You display the ALV output on your screen.
Optional Methods in All Main ALV Classes
You can also make a variety of settings to control the ALV output.
Optional, Class-Specific Methods
The three main ALV class are based on various data models. This means you can also make various settings, depending on which ALV tool you are using.
The following list includes some examples for methods that you are able to use only in specific main ALV classes:
-
GET_LEVEL
This method can only be found in the main ALV class CL_SALV_HIERSEQ_TABLE. There you get a reference to the objects in the two hierarchy levels.
-
GET_NODES
This method can only be found in the main ALV class CL_SALV_TREE. There you get a reference to the node objects (rows) of the tree structure.
-
GET_SORTS
You are only able to sort in the simple, two-dimensional table or in the hierarchical-sequential list. This method is not available in the tree structure.
NoteThe Retrieving and Modifiying Subobjects for a Main Class chapter includes the class diagrams for the three main ALV classes, along with information on the getter methods that you use to retrieve the respective objects.