MODULE STATUS_0300 OUTPUT.
  SET PF-STATUS '300'.
  SET TITLEBAR '300'.
  CLEAR ok_code.

  IF my_container IS INITIAL.
    CREATE OBJECT my_container
      EXPORTING
        container_name = 'MY_CC'.
    CREATE OBJECT my_alv
      EXPORTING
        i_parent = my_container.
    CREATE OBJECT event_receiver.
    SET HANDLER event_receiver->handle_user_command FOR my_alv.
    SET HANDLER event_receiver->handle_toolbar FOR my_alv.
    SET HANDLER event_receiver->handle_double_click FOR my_alv.
    gs_layout-grid_title = 'Flugverbindungen'.
    gs_layout-sel_mode = 'B'.
    CALL METHOD my_alv->set_table_for_first_display
      EXPORTING
        i_structure_name = 'zz00_spfli'
        is_layout        = gs_layout
      CHANGING
        it_outtab        = itab.
    CALL METHOD my_alv->set_toolbar_interactive.
  ELSE.
    CALL METHOD my_alv->refresh_table_display.
  ENDIF.

ENDMODULE.