
With the ALV tool, you display table-type structures For this reason, your application's first task is to transfer a suitable data table to ALV. It does not matter whether you transfer an existing database table (thus providing all DDIC information) or whether you define the fields of the data table yourself.
Based on various data models that are the basis for the ALV tools, you transfer different table tables to ALV depending on which ALV tool you are using:
Simple, two-dimensional table The data table has a relational structure.
Hierarchical-sequential list The hierarchy of the list is restricted to two levels. For each of these levels, you transfer an internal data table and link them with up to five foreign key relationships
Tree Structure The table that you transfer to the ALV object model only contains the structure. There is no data in this table. To fill the tree structure, add the required nodes in the form of NODE objects one at a time.
You are able to make the following settings for data table:
First determine data table
Determine Display of Empty Data Table
Setting the Data Table for the First Time with FACTORY
To set the internal data table for the first time, always proceed in the same way no matter which ALV tool you are using: use the FACTORY method.
You can only use the FACTORY method the first time you call a table. To make changes to the table, read the chapter Changing and Updating the Contents of the ALV Output .
|
ALV Tool |
Display type |
Function available |
|
Simple, two-dimensional table |
Classic ABAP List |
Yes |
|
Fullscreen |
Yes |
|
|
In the Container |
Yes |
|
|
Hierarchical-sequential list |
Classic ABAP List |
Yes |
|
Tree Structure |
Fullscreen |
Yes |
|
In the Container |
Yes |
Depending on which ALV tool you are using, the parameters of the FACTORY method are different:
|
ALV Tool |
Parameter |
Comment |
|
Simple, two-dimensional table |
T_TABLE |
Table for structure and contents of the ALV output |
|
Hierarchical-sequential list |
T_TABLE_LEVEL1 |
Table for header level |
|
T_TABLE_LEVEL2 |
Table for position level |
|
|
T_BINDING_LEVEL1_LEVEL2 |
List of up to five foreign-key relationships |
|
|
Tree Structure |
T_TABLE |
Initial table Empty table, only sets the structure |
Determine Display of Empty Data Table
By default, the following elements are displayed when the data table is empty.
The information from the design object for the header area of the list (if available)
The column header of the ALV output
A note that there is no data
You are able to determine that only the information from the design object for the header area of the list be displayed.
|
ALV Tool |
Display type |
Function available |
|
Simple, two-dimensional table |
Classic ABAP List |
Yes |
|
Fullscreen |
No |
|
|
In the Container |
No |
|
|
Hierarchical-sequential list |
Classic ABAP List |
Yes |
|
Tree Structure |
Fullscreen |
No |
|
In the Container |
No |
|
Function |
Class |
Method |
|
Determine Display of Empty Data Table |
CL_SALV_ DISPLAY_SETTINGS |
SET_SUPPRESS_EMPTY_DATA |
|
Get display of empty data table |
GET_SUPPRESS_EMPTY_DATA |