Xavier Salomone
Xavier Salomone

Reputation: 126

Difference between the classes CL_GUI_DOCKING_CONTAINER and CL_GUI_SPLITTER_CONTAINER

In ABAP, what is the difference between the classes CL_GUI_DOCKING_CONTAINER and CL_GUI_SPLITTER_CONTAINER? I need to divide the screen into 3 sections, a header above and an ALV below. I'm not sure which class to use:

* Create main screen
  CREATE OBJECT gr_cnt_main_screen
    EXPORTING
      repid                       = g_repid
      dynnr                       = g_dynnr
      side                        = cl_gui_docking_container=>dock_at_top
      ratio                       = co_ratio_095
    EXCEPTIONS
      cntl_error                  = 1
      cntl_system_error           = 2
      create_error                = 3
      lifetime_error              = 4
      lifetime_dynpro_dynpro_link = 5
      OTHERS                      = 6.

  IF  sy-subrc NE 0.
    RETURN.
  ENDIF.

or use:

* Split main in Header & list
  CREATE OBJECT gr_cnt_splitter_main
    EXPORTING
      parent            = gr_cnt_main_screen
      rows              = 2
      columns           = 1
    EXCEPTIONS
      cntl_error        = 1
      cntl_system_error = 2
      OTHERS            = 3.

  IF  sy-subrc NE 0.
    RETURN.
  ENDIF.

Thanks!

Upvotes: 1

Views: 372

Answers (0)

Related Questions