Entering content frame

Background documentation Methods of Class CL_GUI_ALV_GRID Locate the document in its SAP Library structure

This class contains both control-specific methods and methods inherited from the Control Framework. This section describes only the control-specific methods. The methods inherited from the Control Framework are described in Methods of the OO Control Framework.

All methods specified below can be used in the SAP GUI for the Windowsä Environment and the SAP GUI for the JAVA ä Environment. The HTML column tells you if the method works in the SAP GUI for HTML:

Note

See also: Display in the SAP GUI for HTML.

The ALV Grid Control uses caching mechanisms to ensure that the values for methods requiring information from the frontend are available without calling the Control Framework method CL_GUI_CFW=>FLUSH .

Basic Methods

Method

Application

HTML

CONSTRUCTOR

Generate an instance of the ALV Grid Control

ü

set_table_for_first_display

Display an output table in the control

ü

refresh_table_display

Refresh the data displayed in the control

ü

 

Elements of the Grid Control

Method

Application

HTML

get_current_cell

Get indexes and properties of a selected cell

(ü)

set_current_cell_via_id

Set cursor on a specific cell

X

get_scroll_info_via_id

Get current scroll position

X

set_scroll_info_via_id

Set scroll position

X

get_selected_cells

Get content and position of selected cells from frontend

ü

set_selected_cells

Select cells in the ALV Grid Control

ü

get_selected_cells_id

Get indexes of currently selected cells

ü

set_selected_cells_id

Select cells using index table

ü

get_selected_columns

Get field names of selected columns from frontend

ü

get_selected_rows

Get indexes of selected rows from frontend

ü

set_selected_rows

Select rows

ü

 

Layout and Structure Informationen

Method

Application

HTML

get_frontend_fieldcatalog

Get current field catalog from frontend

ü

set_frontend_fieldcatalog

Set field catalog at frontend

ü

get_frontend_layout

Get layout structure at frontend

ü

set_frontend_layout

Set layout structure at frontend

ü

set_3d_border

Enable/disable 3D format of ALV Grid Control border

ü

 

Generic Functions

Method

Application

HTML

get_filtered_entries

Get indexes of rows that are not displayed due to a filter set

ü

get_filter_criteria

Get filter properties for all columns that have a filter set currently

ü

get_subtotals

Get values of current subtotals lines

ü

set_filter_criteria

Set filter properties for columns

ü

get_sort_criteria

Get sort criteria for sorted columns

ü

set_sort_criteria

Set sort criteria for columns

ü

get_variant

Get current layout

ü

save_variant_dark

Disallow users to assign their own layout name

ü

set_graphics_container

Use another container control for diagram display

ü

set_user_command

Change function code to be executed currently

ü

 

Event Handling

Method

Application

HTML

register_delayed_event

Register event DELAYED_CALLBACK or DELAYED_SEL_CHANGED_CALLBACK

X

set_toolbar_interactive

Trigger event toolbar.

ü

 

Interfaces

Method

Application

HTML

activate_reprep_interface

Enable report/report interface

ü

offline

Check if the ALV Grid Control runs without frontend handling

ü

 

 

Leaving content frame