Use
You use this method to determine if the ALV Grid Control runs without frontend handling.
The ALV Grid Control runs without frontend handling in batch mode (
In these cases, you should not create frontend objects (see below).
Features
CALL METHOD
CL_GUI_ALV_GRID=>offlineParameter |
Meaning |
E_OFFLINE |
If this parameter is set to 1 , no frontend handling takes place. |
For an overview, see
Methods of Class CL_GUI_ALV_GRID
Activities
You can use this method, for example, to create the control container for the ALV Grid Control only for online processing:
DATA: g_dock TYPE REF TO cl_gui_docking_container,
g_grid TYPE REF TO cl_gui_alv_grid.
IF cl_gui_alv_grid=>offline( ) is initial.
CREATE OBJECT g_dock.
ENDIF.
CREATE OBJECT g_grid
EXPORTING I_PARENT = g_dock.
The constructor of the ALV Grid Control checks if the instance runs offline. If this is the case, the constructor does not create frontend objects. You then work only with the instance at the backend.