Application Development 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: 

Increasing GRID size while using CL_GUI_ALV_GRID

former_member209920
Active Participant
0 Kudos

Hi,

I have created ALV using CL_GUI_ALV_GRID. ALV grid is contained in a Container and I have kept the size of container to maximum.

Still while viewing this ALV on client's monitor (may be with different resolution), it covers only a part of screen, thus wasting extra screen space and making user to use horizontal and vertical scroll unnecessarily.

Please advise what could be done.

I don't want to create ALV using some other way, say 'function module 'REUSE_ALV_GRID_DISPLAY'.

<< Moderator message - Please do not promise points >>

<< Moderator message - The answers in the forum are provided by volunteers. Please do not ask for help ASAP. >>

Thanks

Edited by: Rob Burbank on Dec 8, 2011 12:34 PM

1 ACCEPTED SOLUTION

mithun_shetty4
Contributor
0 Kudos

Try the below code

DATA: obj_container   TYPE REF TO cl_gui_custom_container,
 
CREATE OBJECT obj_container
    EXPORTING
      container_name = 'CC_CONTAINER'
      style          = cl_gui_custom_container=>ws_maximizebox.

for Screen resizing :

Call SE51 in layout editor; double-click on the container and declare "huge" dimensions (for a 100" screen) and check the resize box giving minimal dimensions

The container will automatically adapt to screen size.

Edited by: Mithun Shetty on Dec 8, 2011 11:19 PM

1 REPLY 1

mithun_shetty4
Contributor
0 Kudos

Try the below code

DATA: obj_container   TYPE REF TO cl_gui_custom_container,
 
CREATE OBJECT obj_container
    EXPORTING
      container_name = 'CC_CONTAINER'
      style          = cl_gui_custom_container=>ws_maximizebox.

for Screen resizing :

Call SE51 in layout editor; double-click on the container and declare "huge" dimensions (for a 100" screen) and check the resize box giving minimal dimensions

The container will automatically adapt to screen size.

Edited by: Mithun Shetty on Dec 8, 2011 11:19 PM