Start of Content Area

Function documentation offline  Locate the document in its SAP Library structure

Use

You use this method to determine if the ALV Grid Control runs without frontend handling.

Note

The ALV Grid Control runs without frontend handling in batch mode ( sy-batch has the value ' X '), in print mode, in combination with CATT and during Web Reporting.

In these cases, you should not create frontend objects (see below).

Features

CALL METHOD CL_GUI_ALV_GRID=>offline
   RECEIVING
      E_OFFLINE  =  
<variable of type INT4 > .

Parameter

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.

Note

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.