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

Adjusting Grid Size

Former Member
0 Likes
1,134

Hi Gurus,

I designed an ALV OOABAP report..where I designed the Layout with the size of the container at the maximum. as per my screen size...when I run the Report..It shows fine in my system..

But when the other User runs.(with a bigger screen size). The container shows some unwanted space at right side at end of container...

Is there anyway to handle this issue..To set the size of the container dynamically inaccordance with the screen size of the system..

Thanks

Natasha SS..

1 ACCEPTED SOLUTION
Read only

MarcinPciak
Active Contributor
0 Likes
872

For a container, you can set Resizable checkbox which allows only its resize once GUI window dimension changes. This however doesn't apply to screen resolution.

In my opinion the best approach would be using cl_salv_table w/o providing any container. This way system uses fullscreen form of a grid, so no such issue should occur anymore.

Regards

Marcin

Hi Gurus,

I designed an ALV OOABAP report..where I designed the Layout with the size of the container at the maximum. as per my screen size...when I run the Report..It shows fine in my system..

But when the other User runs.(with a bigger screen size). The container shows some unwanted space at right side at end of container...

Is there anyway to handle this issue..To set the size of the container dynamically inaccordance with the screen size of the system..

Thanks

Natasha SS..

3 REPLIES 3
Read only

MarcinPciak
Active Contributor
0 Likes
873

For a container, you can set Resizable checkbox which allows only its resize once GUI window dimension changes. This however doesn't apply to screen resolution.

In my opinion the best approach would be using cl_salv_table w/o providing any container. This way system uses fullscreen form of a grid, so no such issue should occur anymore.

Regards

Marcin

Read only

0 Likes
872

HI,

Thanks for the Info..

Can the same can be solved using REUSE_ALV_GRID_DISPLAY.

Thanks

Natasha SS.

Read only

huseyindereli
Active Contributor
0 Likes
872

Hi ,

Use container below as a parent while creating object for fullscreen alv.

cl_gui_container=>screen0

CREATE OBJECT go_alv
      EXPORTING
        i_parent          = cl_gui_container=>screen0
*      i_appl_events     = space
      EXCEPTIONS
        error_cntl_create = 1
        error_cntl_init   = 2
        error_cntl_link   = 3
        error_dp_create   = 4
        OTHERS            = 5.

parent = cl_gui_container=>screen0

Regards

Edited by: Hüseyin Dereli on Apr 11, 2011 12:24 PM