Start of Content Area

Function documentation Set Internal Data Table  Locate the document in its SAP Library structure

Use

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.

Features

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.

Note

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.

Display type

ALV Tool

Classic ABAP list

Full screen

In the Container

Simple, two-dimensional table

Yes

Yes

Yes

Hierarchical-sequential list

Yes

 

 

Tree structure

 

Yes

Yes

Depending on which ALV tool you are using, the parameters of the FACTORY method are different:

Setting the Data Table with the FACTORY method

ALV Tool

Parameter

Remarks

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.

Display type

ALV Tool

Classic ABAP list

Full screen

In the Container

Simple, two-dimensional table

Yes

No

No

Hierarchical-sequential list

Yes

 

 

Tree structure

 

No

No

Methods

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

 

 

 

End of Content Area