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

sizeable alv grid using set_table_for_first_display

Former Member
0 Likes
433

I would like to be able to resize the alv grid.

The abap program is executing in a MS-Windows environment

MS-window, with SAP session, can be re-sized yet alv grid stays same size

I would like to be able to re-size (make bigger or smaller) once the MS-window has been maximized

Using

CALL METHOD grid->set_table_for_first_display

EXPORTING

is_variant = w_hr_data_grid_layout_variants

i_save = w_hr_data_save_layout_option

is_layout = gs_layout

CHANGING

it_fieldcatalog = gt_fieldcat[]

it_outtab = t_reported_pos_std_table

it_sort = it_sort.

1 REPLY 1
Read only

sharat_chandra
Product and Topic Expert
Product and Topic Expert
0 Likes
347

Hi,

It may not be possible to resize the ALV grid using the methods of the CL_GUI_ALV_GRID. It would be possible through the methods of the custom container class CL_GUI_CUSTOM_CONTAINER because the grid id attached to the container. There is an event SIZE_CONTROL in the CL_GUI_CUSTOM_CONTAINER class which may be useful for you.

regards,

Sharat.