Skip to Content
0
Former Member
Jan 09, 2008 at 04:17 PM

OO ALV in Background - Control Framework Fatal Error GUI not reached

125 Views

Hi

I'm using OO in background via the OFFLINE method but the program still won't run in the background

any idea what's wrong as this IMO should work according to the "sparse" documentation available.

Here's the relevant bit of code



MODULE status_0100 OUTPUT.
data: off type int4.
if sy-batch = 'X'.
 CALL METHOD cl_gui_alv_grid=>offline
RECEIVING
e_offline = off.
endif.



  IF grid_container1 IS INITIAL.
    CREATE OBJECT grid_container1
            EXPORTING
               container_name = 'CCONTAINER1'.
    CREATE OBJECT  grid1
       EXPORTING
          i_parent = grid_container1.
    struct_grid_lset-edit = 'X'.    "To enable editing in ALV

    CALL METHOD grid1->set_table_for_first_display
      EXPORTING is_layout =  struct_grid_lset
      CHANGING
                 it_outtab       = <dyn_table>
                 it_fieldcatalog = it_fldcat.


  ENDIF.
  SET PF-STATUS '001'.
  SET TITLEBAR '000'.

ENDMODULE.


Cheers

jimbo