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

Resizing ALV

Former Member
0 Likes
605

Hi,

How is it possible to resize the ALV grid itself, not just the columns in ALV?

Thanks & Regards,

Reena

Hi,

How is it possible to resize the ALV grid itself, not just the columns in ALV?

Thanks & Regards,

Reena

3 REPLIES 3
Read only

Former Member
0 Likes
551

Increase the container size.

If are using the docking container, the container size can be increased like this.

CREATE OBJECT o_dockingcontainer1

EXPORTING

repid = sy-repid

dynnr = sy-dynnr

side =

cl_gui_docking_container=>dock_at_top

extension = 350

EXCEPTIONS

cntl_error = 1

cntl_system_error = 2

create_error = 3

lifetime_error = 4

lifetime_dynpro_dynpro_link = 5

OTHERS = 6.

Regards,

Prakash.

Read only

0 Likes
551

I want it happen at runtime, i.e when I run the program and when the ALV grid is displayed, I want to resize it.

Read only

0 Likes
551

I don't think the ordinary ALV container can be resized during runtime.

Better option will be going for Docking container, in which we can be specify size at run time.

CREATE OBJECT o_dockingcontainer1

EXPORTING

repid = sy-repid

dynnr = sy-dynnr

side =

cl_gui_docking_container=>dock_at_top

extension = 350

EXCEPTIONS

cntl_error = 1

cntl_system_error = 2

create_error = 3

lifetime_error = 4

lifetime_dynpro_dynpro_link = 5

OTHERS = 6.

Regards,

Prakash.