Skip to Content
0
Jul 02, 2009 at 04:22 PM

How REUSE_ALV_GRID_DISPLAY put ALV full screen

1115 Views

ALV report displayed by function module REUSE_ALV_GRID_DISPLAY (or REUSE_ALV_GRID_DISPLAY_LVC) is always full screen. This is one of the reasons I prefer to use FM method instead of class apart from the reason that it need further object .i.e. screen, PF status, title bar and the respective coding (well, you might disagree with me).

Lately I tried to investigate how this FM manage to put the ALV full screen.

Screen 500 of program SAPLSLVC_FULLSCREEN where the ALV is being placed has dimension 200X240 and it has custom control GRID1 with dimension same dimension, basically filling the whole screen. It seems this FM somehow resizes the custom control object to fit the current screen size and the place ALV grid on that. However I didnu2019t find any code which is doing that.

In test program I tried with similar screen size and customer control with ALV class but no luck. It always shows both scrollbar because of the size of custom control (200x240).

I know I can use docking control and place ALV full screen, but just out of curiosity I would like to know how this FM is putting ALV full screen using custom control.