Show TOC

ALV Grid ControlLocate this document in the navigation structure

Use
Caution

It is no longer recommended that you use the ALV Grid Control.

Instead, you should use the SAP List Viewer (ALV) object model. All functions of the ALV Grid Control are available in the object-oriented SAP List Viewer (ALV). You should only use the ALV Grid Control if it is not possible to use the object-oriented SAP List Viewer (ALV) for technical reasons.

Display of the ALV Grid Control

The following graphic shows the display of a list with the ALV Grid Control in a dialog box.

From the user view the ALV Grid Control consists of a toolbar, a title, and the output table that is shown in a Grid Control. The use can hide the title and the standard functions of the toolbar.

Implementation Considerations

The ALV Grid Control uses control technology for the screen display. Like all control wrappings, it offers methods for controlling the control using a global class in the system.

Caution

SAP cannot garantee that methods, results, and attributes of this class that are not public will not be changed or will still exist in the future. You should therefore not derive this class in order to access protected areas of the class. Using this object makes it difficult to ugrade to successor releases.

Integration

Controls are software components that are installed on the local PC. All control wrappings use methods of the Control Framework to communicate with these components. In this context, the ALV Grid Control is a special case as it uses a control that is already wrapped: the grid control. The programmer can be relieved of certain steps in the results administration of controls.

The ALV Grid Control uses the SAP context menu in order to integrate standard functions. This menu can be adapted to your own requirements.

This documentation focuses on using the ALV Grid Control in the SAP GUI for the Windows (TM) Environment or the SAP GUI for the Java (TM) Environment.

Features

In summary, the ALV Grid Control offers the functions below. These include:

  • Consistent display of non-hierarchical lists in a modern design

  • Provides typical list functions, for example sorting and filtering, without additional programming requirements.

  • Customization of predefined list functions as well their enhancement

  • Reaction to user actions (for example, double-clicking on a row) can be programmed individually

  • Connection to the report interface

    Note

    For practical examples of the ALV Grid Control, see development class SLIS in your system.

Constraints

It is not possible to display block or hierarchical lists with the ALV Grid Control. The ALV Grid Control can currently only display simple lists in one line. The user can define and print the list in multiple lines using the print preview.

It is currently not possible to use tables that have object references. In the same way you can only use those deep structures that are described in the documentation about the extended functionality of the ALV Grid Control (structures such as Drag&Drop).

Note

The ALV Grid Control is used as a tool for changing and creating tables In SAP developments. This function is only used in pilot projects at the moment and is not generally released.