Picture in splitter container

Is it possible to create a picture in a splitter container?

What I have is this in PBO:
DATA splitter3 TYPE REF TO cl_gui_splitter_container.
      CREATE OBJECT container
        EXPORTING
          container_name = 'CONTAINER'.
    CREATE OBJECT splitter1
      EXPORTING
        parent  = container
        rows    = 1
        columns = 2.
    CALL METHOD splitter1->get_container
      EXPORTING
        row       = 1
        column    = 1
      RECEIVING
        container = container_1.
    CREATE OBJECT splitter3
      EXPORTING
        parent  = container_1
        rows    = 3
        columns = 1.
    CALL METHOD splitter3->get_container
      EXPORTING
        row       = 1
        column    = 1
      RECEIVING
        container = container_1_1.
    CALL METHOD splitter3->get_container
      EXPORTING
        row       = 2
        column    = 1
      RECEIVING
        container = container_1_2.
    CALL METHOD splitter3->get_container
      EXPORTING
        row       = 3
        column    = 1
      RECEIVING
        container = container_1_3.
    DATA: o_dd_document TYPE REF TO cl_dd_document.
    CREATE OBJECT o_dd_document.
    CALL METHOD o_dd_document->add_picture
      EXPORTING
        picture_id       = 'ENJOY_SAP'
        width            = '350'.
    CALL METHOD o_dd_document->display_document
          EXPORTING
            reuse_control      = 'X'
            container          = container_1_3.
*        parent             =
*      EXCEPTIONS
*        html_display_error = 1
*        others             = 2
The result is that I get a message with that container "container_1_3" is not of same type like the method display_document.

Similar Messages

  • How splitter container is useful to show multiple lines of heading in ALV

    Hi,
    I have a requirement to develop an ALV grid with below layout:
    Past
    Future
    | F1     | F2   | F3    | F4    | F5  | F6    | F7     | F8      | F9       | F10     | F11     | F12        |  
    I read forum blogs and found that splitter container can be used to develop such layout. Can anybody pleae let me know how to do so? As per my understanding first container will have headings ( Past & Future) and second container will hold headings (F1, F2...) as well as data. Since each container has a grid and for each grid we have to pass a fieldcatlog and an internal table how can we display only headings in First conatiner.
    Rgds
    Sid

    Hi sudhanshu,
    solution may exist in theory (only).
    I do not know a working solution yet. When ALV was first introduced some 12 or more years ago, the column width was specified as a number of characters ignoring that a proportional font will not match this.
    With introduction of the grid, the scaling is free and can be done in the GUI on a (display) pixel base. I tried a lot with dynamic scaling of containers and had to learn that there is still a big optimizing potential for the SAP infrastructure.
    Right now it seems as the architects try to get everything working as well on (old-style) SAP GUI, also WEB GUI, also java-based web services. The downside is that looking at it from the distance it is nice, going into the details, most (or much) is missing, undocumented or not working properly.
    For the time being you may replace detailed functionality by an impressive background picture
    Regards,
    Clemens

  • How to display 3 alv with top-of-page using splitter container

    Hi,
    I want to display 3 different alv in a single container corresponding to the 3 check boxes on selection screen.
    i.e.
    If user selects 1 check box only one alv should be displayed, if 2 checkboxes selected by user 2 alv should be displayed and same for 3.
    I cannot use 3 different containers bcoz if second checkbox is not selected then that place remains blank. So I am using single container and using splitter container dividing it into the no of rows corresponding to the no. of checkboxs selected by user.
    Now I also want to display top-of-page for each alv. Please guide me how to achieve this.
    Thanks & regards,
    Harshada

    create with some IF_ELSE conditions as i have done below. in my case the same things are required. if error table is there only then it will be displayed, else only output will be displayed.
    * First Main Container
      CREATE OBJECT obj_main1
        EXPORTING
          container_name = 'CC_CONTAINER'
          style          = cl_gui_custom_container=>ws_maximizebox.
    * create top-document
      CREATE OBJECT obj_dyndoc_id
        EXPORTING
          style = 'ALV_GRID'.
      IF pr_view EQ c_x OR pr_stat EQ c_x.
    * First Splitter Container
        CREATE OBJECT obj_splitter1
          EXPORTING
            parent  = obj_main1
            rows    = 2
            columns = 1.
    * Place obj_parent_html in First row First column
    * for Top_of_page
        CALL METHOD obj_splitter1->get_container
          EXPORTING
            row       = 1
            column    = 1
          RECEIVING
            container = obj_parent_html.
    * Place obj_container1 in Second row First column
        CALL METHOD obj_splitter1->get_container
          EXPORTING
            row       = 2
            column    = 1
          RECEIVING
            container = obj_container1.
    * Set the height of Top of page
        CALL METHOD obj_splitter1->set_row_height
          EXPORTING
            id     = 1
            height = 24.
      ELSEIF pr_email EQ c_x.
    * First Splitter Container
        CREATE OBJECT obj_splitter1
          EXPORTING
            parent  = obj_main1
            rows    = 3
            columns = 1.
    * Place obj_parent_html in First row First column
    * for Top_of_page
        CALL METHOD obj_splitter1->get_container
          EXPORTING
            row       = 1
            column    = 1
          RECEIVING
            container = obj_parent_html.
    * Place obj_container1 in First row First column
        CALL METHOD obj_splitter1->get_container
          EXPORTING
            row       = 2
            column    = 1
          RECEIVING
            container = obj_container1.
    * Place obj_container2 in Second row First column
        CALL METHOD obj_splitter1->get_container
          EXPORTING
            row       = 3
            column    = 1
          RECEIVING
            container = obj_container2.
    * Set the height of Top of page
        CALL METHOD obj_splitter1->set_row_height
          EXPORTING
            id     = 1
            height = 24.
      ENDIF.
    Please note there is no need to create a hEADER in the container, but create it for the 1st table only which is always displayed
    ags.
    Edited by: ags on Nov 4, 2009 4:49 PM
    Edited by: ags on Nov 4, 2009 4:50 PM

  • ALV with splitter container in background

    Hi all,
    I have an ALV grid in which I am using a splitter container to display top of page and the alv grid.
    I am unaware how to use a docking container in conjunction with a splitter container, so that the ALV list is displayed in the background.
    Request assistance from you all...
    Regards,
    Vidya.

    Hi,
    In background , you can't dispaly the ALV with splitter container , dispaly ALV in foreground with splitter and in background use top-of-page to display header text with docking container.
    Code :
    DATA: o_grid             TYPE REF TO cl_gui_alv_grid,
          o_container TYPE REF TO cl_gui_custom_container,
          o_dockingcontainer TYPE REF TO cl_gui_docking_container .
      IF NOT sy-batch = 'X'.
        CREATE OBJECT o_container
                EXPORTING
                      container_name = 'CONTAINER'.
        CREATE OBJECT o_grid
                EXPORTING
                      i_parent = o_container.
      ELSE.
        CREATE OBJECT o_grid
          EXPORTING
         i_parent = o_dockingcontainer.
        IF sy-subrc NE 0.
        ENDIF.
      ENDIF
    METHOD handle_print_top_of_page.
        prev_linno = sy-linno.
        sy-linno = 64.
        SKIP.
        WRITE:/40 'Page:', sy-pagno .
        SKIP.
        sy-linno = prev_linno.
      ENDMETHOD.                    "handle_print_top_of_page
      METHOD handle_top_of_page.
        WRITE:/40 'Page:', sy-pagno .
      ENDMETHOD.                    "handle_top_of_page
    Regards
    Appana

  • Splitter container: fixed size

    Hello,
    I have a dynpro with a docking container on the top level. Embedded in this are some nested splitter containers (easy splitter containers at the moment). Generally I like the fact that the splitters are resizing automatically when I change the screen size but now I want one of the two containers of a (easy) splitter container to stay fixed in size. Reason is that I embedded a cl_gui_toolbar which is actually fixed in size and looks quite odd when there's a lot of unused space around...
    Looking forward to any suggestions !
    Best regards,
    Patrick Baer

    Hello Patrick,
    I'm not sure I understand you correctly.
    |                         |     
    |       docking container          |
    |---------------------------------------|
    |          |               |
    |  toolbar     |               |
    |---------------|               |
    |         ^     |               |  <----- screen     
    |         |     |               |
    |           |   |               |
    |         |-->|               |
    |         |     |               |
    ------------|----------------------------
             |
            Easy Splitters
    If the above is a correct visualization of the situation, then you will not be able to restrict just the TOOLBAR area from resizing. If the rest of the screen resizes and just one area doesn't, it would certainly look bad. Though in your case it may seem desirable.
    You should probably think about subscreens and resizing attributes...
    Regards,
    Anand Mandalika.

  • ABAP Objects: Problems with controls in splitter container

    Hi community,
    I have problems with the second control in a splitter container.
    In the left container I build up a <u>list tree</u>.
    On double click on a node a <u>column tree</u> in the right container is created.
    This is working fine.
    But if I double click on another node in the left container the right tree remains unchanged.
    What do I have to do to update/refresh the tree in the right splitter container.
    Thanks in advance.
    Regards
    Ferdi

    Thanks for your reply Thomas and Serdar,
    I now destroy the right container and the right tree control if it exists after the event 'double_click' on a node in the left tree.
    The result is now that the container is created (I can see it on screen) but no tree is shown.
    If I just destroy the tree control but not the container the tree from the first double click on the left tree is shown.
    In the debugger I see that the list tree instance is linked to the caontainer (after first and second creation of tree control)
    Maybe you can see in the coding below what's wrong or missing.
    Coding after EVENT DOUBLE_CLICK in left Tree: <pre>
    destroy ‘old’ tree instance and container
      if not g_container_2 is initial.
        call method g_container_2->free.
        clear: g_container_2, g_tree_2.
      endif.
    create right container
      call method g_splitter->get_container
                exporting row      = 1
                          column   = 2
                receiving container = g_container_2.
    setup the hierarchy header
      hierarchy_header-heading = 'Hierarchy Header'.
      hierarchy_header-width = 37.       
    create a column tree model instance
      create object g_tree_2
        exporting
          node_selection_mode = cl_column_tree_model=>node_sel_mode_single
          item_selection = 'X'
          hierarchy_column_name = 'C1'
          hierarchy_header = hierarchy_header.
    create tree control
      call method g_tree_2->create_tree_control
        exporting
          parent = g_container_2.
      perform add_columns.
      perform define_events.
    set registered events
      call method g_tree_2->set_registered_events
        exporting
          events = events.
      perform get_data.
      perform add_nodes_2.
    expand the root node
      call method g_tree_2->expand_node
        exporting
          node_key = 'Root'
          level_count = 3.
    </pre>
    Regards
    Ferdi
    Message was edited by: Ferdi Meyer

  • GUI Status in Splitter Container

    Hi all...
    how can we change the standard GUI status that comes in splitter container?
    Thanks & Regards,
    Vidya.

    That is not GUI status by the toolbar of the ALV grid. You can customize that (Add custom buttons / delete existing buttons) buttons.
    For taking out the buttons, using the IT_EXCLUDING parameter of the SET_TABLE_FOR_FIRST_DISPLAy.
    For adding buttons, activate the HANDLE_TOOLBAR event and add the buttons in that event. Take a look at the sample program BCALV_GRID_07. You will have to do this individually for each grid.
    Regards,
    Ravi
    Note : Please mark all the helpful answers and close the thread if the question is answered.

  • Splitter container columns and rows

    is it possible to have two columns and two rows. the issue is that i want to have in the first column only one row and in the second column two rows. is that possible?

    Yes, it is possible.
    1. Create 2 columns splitter container
    2. In the 2nd Column, again create a 2 Row splitter container.
    DATA: w_container   TYPE REF TO cl_gui_custom_container,
          w_splitter    TYPE REF TO cl_gui_splitter_container,
          w_child1        TYPE REF TO cl_gui_container,
          w_child2        TYPE REF TO cl_gui_container,
          w_splitter2     TYPE REF TO cl_gui_splitter_container,
          w_child21       TYPE REF TO cl_gui_container,
          w_child22       TYPE REF TO cl_gui_container.
    **  create a container for the control
      CREATE OBJECT w_container
        EXPORTING
          container_name = 'CC_ALV'
        EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          lifetime_dynpro_dynpro_link = 5.
      IF sy-subrc <> 0.
        MESSAGE a000(tree_control_msg).
      ENDIF.
    **  Instance of Splitter control - 2 columns
      CREATE OBJECT w_splitter
                    EXPORTING parent = w_container
                              rows    = 1
                              columns = 2.
    **  Assign first column to continer
      CALL METHOD w_splitter->get_container
        EXPORTING
          row       = 1
          column    = 1
        RECEIVING
          container = w_child1.
    **  Assign 2nd child to holding container
      CALL METHOD w_splitter->get_container
        EXPORTING
          row       = 1
          column    = 2
        RECEIVING
          container = w_child2.
    **  Instance of Splitter control - 2 rows
      CREATE OBJECT w_splitter2
                    EXPORTING parent = w_child2
                              rows    = 2
                              columns = 1.
    **  Assign first row of 2nd column to continer
      CALL METHOD w_splitter2->get_container
        EXPORTING
          row       = 1
          column    = 1
        RECEIVING
          container = w_child21.
    **  Assign 2nd row 2nd column to continer
      CALL METHOD w_splitter2->get_container
        EXPORTING
          row       = 2
          column    = 1
        RECEIVING
          container = w_child22.
    Regards,
    Naimesh Patel

  • Docking container in splitter container?

    Hi forum,
    i would like to generate a view (dynpro) with is seperated in 3 vertical (resizable) areas. I have solved this with the splitter container.
    Now i would like to fill the 3 areas with dynamic content, i. e. different table views. These different contents should be nested in containers, so i can push my predefined containers into the splitter areas. (just the contents the user would like to see...)
    In my opinion, the docking container is the right choise, because i have not to carry about positioning the container at all.
    Now theres a problem in adapting the docking container to the splitter container and i am not sure if it is possible at all?!?
    I try to create the docking object with the splitter object as parent, but the debugger calls a run time error?!?
    CREATE OBJECT docking_container
      EXPORTING
        parent                      = splitter_container
    *    repid                       =
    *    dynnr                       =
    *    side                        = docking_container->dock_at_left
    *    extension                   = 50
    *    style                       =
    *    lifetime                    = lifetime_default
        caption                     = 'MyDock'
    *    metric                      = 0
    *    ratio                       =
    *    no_autodef_progid_dynnr     =
    *    name                        =
      EXCEPTIONS
        cntl_error                  = 1
        cntl_system_error           = 2
        create_error                = 3
        lifetime_error              = 4
        lifetime_dynpro_dynpro_link = 5
        others.
    Can anyone help? Different solutions are also welcome...
    Thanks in advance,
    Dennis

    Jose, thank you.
    Here is my complete code and I cannot find any differences to your example...
    DATA: custom_container TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
            splitter_container TYPE REF TO CL_GUI_SPLITTER_CONTAINER,
            splitter_cont1 type ref to cl_gui_container,
            dock_container TYPE REF TO CL_GUI_DOCKING_CONTAINER.
    * custom container
    * the name 'CUSTOM_CONTROL_BASE' references to the
    * custom control on the main dynpro 100!!!
      CREATE OBJECT custom_container
        EXPORTING
          container_name              = 'CUSTOM_CONTROL_BASE'
        EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          lifetime_dynpro_dynpro_link = 5
          others                      = 6
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        exit.
      ENDIF.
    * set splitscreen container
      CREATE OBJECT splitter_container
        EXPORTING
          parent            = custom_container
          rows              = 1
          columns           = 3
        EXCEPTIONS
          cntl_error        = 1
          cntl_system_error = 2
          others            = 3.
      IF sy-subrc <> 0.
    *    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        exit.
      ENDIF.
      CALL METHOD splitter_container->GET_CONTAINER
        EXPORTING
          ROW       = 1
          COLUMN    = 1
        RECEIVING
          CONTAINER = splitter_cont1.
    CREATE OBJECT dock_container
      EXPORTING
        parent                      = splitter_cont1
      EXCEPTIONS
        cntl_error                  = 1
        cntl_system_error           = 2
        create_error                = 3
        lifetime_error              = 4
        lifetime_dynpro_dynpro_link = 5
        others                      = 6
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    In debug - mode I can see, that 'splitter_cont' is initalized... The code only breakes when a parent is set to dock_container.
    The error comes from CL_GUI_CONTAINER->GET_FRAME_CONTAINER where the compiler runs into 'RAISE CNTL_ERROR'...
    METHOD GET_FRAME_CONTAINER.
        DATA: PARENTID TYPE I.
    *    CALL 'DY_GET_MODAL_LEVEL' ID 'MOD_LEV' FIELD PARENTID.
    *    CALL 'DY_GET_MODAL_LEVEL' ID 'MOD_LEV_UI' FIELD PARENTID.
    *    CALL 'DY_GET_MODAL_LEVEL' ID 'ACT_UI_MOD_LEV' FIELD PARENTID.
        IF CONTAINER IS INITIAL.
            CALL 'DY_GET_MODAL_LEVEL' ID 'ACT_UI_MOD_LEV' FIELD PARENTID.
        ELSEIF CONTAINER->H_CONTROL-SHELLID = -1.
            CALL 'DY_GET_MODAL_LEVEL' ID 'ACT_UI_MOD_LEV' FIELD PARENTID.
        ELSE.
            PARENTID = CONTAINER->H_CONTROL-SHELLID.
        ENDIF.
        IF PARENTID BETWEEN 10 AND 19.    " this are the dynpro areas
            PARENTID = PARENTID - 10.     " now its the corresponding frame
        ENDIF.
        data: new_dummy_parent_container type ref to CL_GUI_CONTAINER.
        IF PARENTID BETWEEN 0 AND 9.
        "    CREATE OBJECT DUMMY_PARENT_CONTAINER
        "        EXPORTING CLSID = SPACE.
        "    DUMMY_PARENT_CONTAINER->H_CONTROL-SHELLID = PARENTID.
        "    FRAME_CONTAINER = DUMMY_PARENT_CONTAINER.
            CREATE OBJECT NEW_DUMMY_PARENT_CONTAINER
                EXPORTING CLSID = SPACE.
            NEW_DUMMY_PARENT_CONTAINER->H_CONTROL-SHELLID = PARENTID.
            FRAME_CONTAINER = NEW_DUMMY_PARENT_CONTAINER.
        ELSEIF PARENTID = 99.
            FRAME_CONTAINER = CONTAINER.
        ELSE.
            IF CONTAINER_MUST_BE_TOPLEVEL = 0.
                FRAME_CONTAINER = CONTAINER.
            ELSE.
                RAISE CNTL_ERROR.
            ENDIF.
        ENDIF.
    ENDMETHOD.
    I have found further solutions like yours on the web, so it seems to be right. I cannot understand why the compiler runs into error?!?
    Thanks a lot!

  • Change width of splitter container and single container

    Hi,
    im using a splitter container (abap oo style without dnpro elements) with 2 single containers.
    create object go_splitter
        exporting
          parent            = go_docking
          rows              = 1
          columns         = 2
    Column 1 leftside = Tree (width = 100)
    Column 2 rightside = ALV (width = 100)
    Ratio = 50:50
    Is it possible to change width to ratio 30:70
    Example:
    Column 1 leftside = Tree (width = 30)
    Column 2 rightside = ALV (width = 170)
    Ratio: 30:70
    Thanks,
    Gordon
    Edited by: Gordon Breuer on Feb 19, 2009 10:56 AM
    Edited by: Gordon Breuer on Feb 19, 2009 11:04 AM

    Use Method SET_COLUMN_WIDTH & SET_ROW_HEIGHT of Class CL_GUI_SPLITTER_CONTAINER to adjust Width & Height
    CALL METHOD W_L_SPLITTER->SET_ROW_MODE
          EXPORTING
            MODE = W_L_SPLITTER->MODE_ABSOLUTE.
        CALL METHOD W_L_SPLITTER->SET_ROW_HEIGHT
          EXPORTING
            ID     = 1
            HEIGHT = 80.

  • Dynamically extension of splitter container

    Hello,
    I want to create a splitter container with 1 column and n rows. After the user klicked a button, I need n + m rows. I don´t want to destroy the actual object and create a new one with n + m rows, I want to extend the actually object.
    I used the methods SET_GRID and ADD_CONTROL, but I don´t get the supposed result.
    Can anybody help me?

    Hello,
    I had the same Problem and after a long time's reflection I solved it with the Method Add_control. But its a litle Bit tricky.
    First you have to create an new Splitter ( wiith the same container as the old one). Then you habe to add the references of the old n grids into the new_splitter. Afterwards create the m new grids and fill them.
    Then - very importent free the old splitter. And afterward set the reference of the new one to the old one.
    Here ist some of my conding for m = 1.
        DATA new_splitter TYPE REF TO cl_gui_splitter_container.
        DATA mygrid TYPE REF TO cl_gui_alv_grid.
        DATA mycont TYPE REF TO cl_gui_container.
        row = row + 1.
        CREATE OBJECT new_splitter
        EXPORTING
           link_dynnr        = '0100'
           link_repid        = sy-cprog
        shellstyle        = shellstyle
        left              = left
        top               = top
        width             = width
        height            = height
        metric            = cntl_metric_dynpro
        align             = 15
          parent            = r_container
          rows              = row
          columns           = 1.
        LOOP AT i_grid INTO mygrid.
          new_splitter->add_control( row      = sy-tabix
                                     column   = 1
                                     control = mygrid ).
        ENDLOOP.
        mycont = new_splitter->get_container( row      = row
        column   = 1 ).
        CREATE OBJECT grid
          EXPORTING
            i_parent = mycont.
        APPEND grid TO i_grid.
        r_splitter->free( ).
        r_splitter = new_splitter.
    Greetings Eugen Schelling

  • Diff bw Easy Splitter container and Splitter container..

    hi experts,
       Can anyone plz tell me the diff bw Easy Splitter container and Splitter container in ABAP objetcs..

    Hello Ramesh
    As its description implies it is a reduced (simplified) version of the splitter container.
    You always have only two cells in your easy splitter which can be aligned either top-down or left-right.
    In contrast, using CL_GUI_SPLITTER_CONTAINER you can have as many cells as you want.
    Perhaps there are more differences between these two splitter containers yet this is probably the most important one.
    Regards
      Uwe

  • Dynpro into a Splitter Container

    Hello,
    i have a screen with a splitter container.
    How can i load a dynpro into one of those splitter containers?.
    Best regards,
    TomSd

    Hello,
    i have a screen with a splitter container.
    How can i load a dynpro into one of those splitter containers?.
    Best regards,
    TomSd

  • Docking and splitter container

    Hi,
    I need to create 2 containers as per the attached document, that are resizeable in both x and y axis.
    I have been able to do this, similar to in transaction DWDM, where I have 2 cl_gui_container's inside a customer container.
    But this solution does not allow resizing in the vertical axis, as they are tied inside the "fixed" customer container.
    Is there a way to create the docking and splitters that allow both axis resizing?
    Thanks
    Tony

    Hi Tony,
    of course you can create both types of containers (docking and Splitter).
    Here is an example to create a splitter container :
    Data declarations:
    DATA: lo_gui_container_head     TYPE REF TO cl_gui_container,
             lo_gui_container_costs    TYPE REF TO cl_gui_container,
             lo_gui_splitter_container TYPE REF TO cl_gui_splitter_container,
             lo_event_receiver         TYPE REF TO lcl_event_receiver,
             lo_event_receiver_head    TYPE REF TO lcl_event_receiver_head,
             lo_custom_container_head  TYPE REF TO cl_gui_custom_container.
    part from the source code :
    CREATE OBJECT lo_custom_container_head
           EXPORTING
             container_name = 'ALV_GRID'.
    *Create SPLITTER and SPLITTER panes
    * here we can define if splitters are horizontal or vertical:
         IF rb_hori IS INITIAL.
           lv_rows = 2.
           lv_columns = 1.
         ELSE.
           lv_rows = 1.
           lv_columns = 2.
         ENDIF.
    * create splitter:
         CREATE OBJECT lo_gui_splitter_container
           EXPORTING
             parent  = lo_custom_container_head
             rows    = lv_rows
             columns = lv_columns.
    * Splitter for Header
         CALL METHOD lo_gui_splitter_container->get_container
           EXPORTING
             row       = 1
             column    = 1
           RECEIVING
             container = lo_gui_container_head.
         CALL METHOD lo_gui_splitter_container->set_row_height
           EXPORTING
             id     = 1
             height = 20.
         IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         ENDIF.
    * 2nd Spiltter for details:
         CALL METHOD lo_gui_splitter_container->get_container
           EXPORTING
             row       = lv_rows
             column    = lv_columns
           RECEIVING
             container = lo_gui_container_costs.
    * splitter for header
         CREATE OBJECT alv_head
           EXPORTING
             i_parent = lo_gui_container_head.
    * Objekt ALV grid mit splitter anlegen:
         CREATE OBJECT alv_grid
           EXPORTING
             i_parent = lo_gui_container_costs.
    * create handlers for both spitters :
    CREATE OBJECT lo_event_receiver_head.
         CREATE OBJECT lo_event_receiver.
         SET HANDLER lo_event_receiver->handle_hotspot_click            FOR alv_grid.
         SET HANDLER lo_event_receiver_head->handle_double_click        FOR alv_head.
         SET HANDLER lo_event_receiver_head->handle_toolbar             FOR alv_head.
         SET HANDLER lo_event_receiver_head->handle_before_user_command FOR alv_head.
         SET HANDLER lo_event_receiver_head->handle_hotspot_click_head  FOR alv_head.
    * display both tables in the spitters:
    CALL METHOD alv_head->set_table_for_first_display
           EXPORTING
             is_layout            = ls_layout
             it_toolbar_excluding = lt_toolbar_excluding[]
             i_default            = lv_default
             i_save               = lv_save
             is_variant           = ls_disvarhead
           CHANGING
             it_outtab            = gt_head[]
             it_fieldcatalog      = gt_cathead.
         CALL METHOD alv_grid->set_table_for_first_display
           EXPORTING
             is_layout            = ls_layout
             is_variant           = ls_disvariant
             i_default            = lv_default
             i_save               = lv_save
             it_toolbar_excluding = lt_toolbar_excluding[]
           CHANGING
             it_outtab            = gt_details[]
             it_fieldcatalog      = gt_fieldcatalog[]
             it_filter            = gt_filter[].
    Hope this helps
    Regards
    Fred

  • Splitter-container calling standard transaction

    We want to create a splitter-container with two elements:
    - Left side displays a control tree (this is OK)
    - Right side displays a standard transaction such as VA03 (not sure how to do this bit)
    Any help would be greatfully received
    PeteA

    Hi,
    Here is a sample program which implements a docking container with a splitter.
    data: docking_left     type ref to cl_gui_docking_container,
          dock_sub_cont1   type ref to cl_gui_container,
          dock_sub_cont2   type ref to cl_gui_container,
          alv_bottom       type ref to cl_gui_alv_grid,
          splitter         type ref to cl_gui_splitter_container,
          html_viewer type ref to cl_gui_html_viewer.
    parameters: p_check.
    at selection-screen output.
      data: it001w type table of t001w with header line.
      data: repid type sy-repid.
      data: url(255).
      repid = sy-repid.
      if docking_left is initial.
    Create the docking and splitter containers
        create object:
             docking_left
                    exporting repid     = repid
                              dynnr     = sy-dynnr
                              side      = docking_left->dock_at_left
                              extension = 525,
             splitter
                      exporting parent = docking_left
                                rows    = 2
                                 columns = 1.
    Set the splitters.
        call method:
                    splitter->set_border
                      exporting border = space,
                    splitter->get_container
                      exporting row            = 1
                                column         = 1
                                receiving container = dock_sub_cont1,
                    splitter->set_row_height
                      exporting id             = 1
                                height         = '25',
                    splitter->get_container
                      exporting row            = 2
                                column         = 1
                                receiving container = dock_sub_cont2.
    HTML control in the first container
        create object html_viewer
                exporting  parent              = dock_sub_cont1
                exceptions cntl_error         = 1
                           cntl_install_error = 2
                           dp_install_error   = 3
                           dp_error           = 4.
        call method:
        html_viewer->load_mime_object
                   exporting
                     object_id  = 'HTMLCNTL_TESTHTM2_SAPLOGO'
                     object_url = 'SAPLOGO.GIF'
                   importing
                     assigned_url = url
                   exceptions object_not_found     = 1
                              dp_error_general     = 2
                              dp_invalid_parameter = 3,
         html_viewer->show_data
             exporting url   = url
             exceptions cntl_error = 1.
    ALV grid in second splitter container.
        select * into corresponding fields of table it001w
                    from t001w.
        create object alv_bottom
                      exporting i_parent = dock_sub_cont2.
        call method alv_bottom->set_table_for_first_display
            exporting
                 i_structure_name       = 'T001W'
            changing
                 it_outtab       = it001w[].
      endif.
    *Reward points
    Regards

Maybe you are looking for

  • Oracle 8.1.5 can install on SPARC solaries 8?

    I have a copy of oracle 8.1.5 for sparc solaries 8 , but my colleage told me there is not compatible with solaries 8 and oracle 8.1.5 , only oracle 8.1.7 can be install on solaries 8. is it true?

  • Century Gothic incorrect display

    Not sure if this is an Illustrator or Acrobat question!? I created a document in Illustrator CS6 using the font Century Gothic. I converted the text to outlines then saved the document as a PDF. When the document is viewed in Acrobat Pro or Reader, t

  • Unload Multiple Compositions

    Currently I have a pretty complex project with as many as 5 different compositions. I'm using Edge Commons and some bootstrapping trickery to load the 5 compositions (each one represents a complex screen). It seems like the more compositions I load,

  • Change printer default settings

    I have and HP Officejet Pro 8600.  The print default setting is to print colour.  How do I set the default setting to Black Ink   Regards

  • Phone number limit

    Is there a way to exceed the 40 number phone contact limit. I set up numbers that include a call card number, phone number, pin number, message number and password all together which combined exceeds 40 characters.