Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Full screen splitter control

Former Member
0 Likes
2,649

I'm using cl_gui_splitter_container to display two ALV grids on one screen. Currently I put the splitter inside a custom container with a fixed size, but what I want to do is use the whole available screen.

When creating a single ALV grid, I can use screen0 as parent to use the full screen:

CREATE OBJECT go_grid EXPORTING i_parent = cl_gui_container=>screen0.

However for a splitter I can't get this to work, not with default_screen instead of screen0 either.

Does anyone have working code where a splitter uses the full screen?

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,461

Try to use a [SAP Docking Container|http://help.sap.com/saphelp_sm32/helpdata/en/f5/4f6e0a9f2511d295cc00a0c930660b/frameset.htm] ([cl_gui_docking_container|http://www.sdn.sap.com/irj/scn/advancedsearch?query=sapdockingcontainer#Code%20Gallery])

Regards,

Raymond

4 REPLIES 4
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,462

Try to use a [SAP Docking Container|http://help.sap.com/saphelp_sm32/helpdata/en/f5/4f6e0a9f2511d295cc00a0c930660b/frameset.htm] ([cl_gui_docking_container|http://www.sdn.sap.com/irj/scn/advancedsearch?query=sapdockingcontainer#Code%20Gallery])

Regards,

Raymond

Read only

0 Likes
1,461

Make the screen as big as you can and place the container on the screen with it`s width and height.

Set the container to auto resize with a minimum of 1.

So the user can use it as fullscreen. The Screen will be compressed until the max. screen size is reached

Regards,

Christian

Read only

Kiran_Valluru
Active Contributor
0 Likes
1,461

Hi Filip.,

Create a custom container., and give what ever width and height u want., refer the below snippet.,

DATA:  ob_custom                   TYPE REF TO cl_gui_custom_container,
             ob_split1                   TYPE REF TO cl_gui_easy_splitter_container,   
             ob_grid1                    TYPE REF TO cl_gui_alv_grid,
             ob_grid2                    TYPE REF TO cl_gui_alv_grid,

* This will create a container
  CREATE OBJECT ob_custom
    EXPORTING
      container_name = 'CONTAINER'.     " this is the custom container name in screen

* This spit the container OB_CUSTOM into two
  CREATE OBJECT ob_split1
    EXPORTING
      parent      = ob_custom
      orientation = cl_gui_easy_splitter_container=>orientation_horizontal.

*Left side ALV Container
  CREATE OBJECT ob_grid1
    EXPORTING
      i_parent = ob_split1->top_left_container.

*Right Side ALV Container
  CREATE OBJECT ob_grid2
    EXPORTING
      i_parent = ob_split1->bottom_right_container.

then call ob_grid1->set_table_for_first_display and ob_grid2->set_table_for_first_display

hope this will help u.,

revert if u need some more clarifications..

Thanks & Regards

Kiran

Read only

0 Likes
1,461

Kiran, thanks but that's what I had already; the question was how to make it full screen.

The other two replies got me there; the dock container gave a thick border, the oversize custom container is perfect - thx guys!