‎2009 May 07 9:29 AM
Hello,
when you use a container to display an alv you can set the size in the layout of the dynpro. As several user have different settings for the computer screen, how can I assure that the container is displayed as a fullscreen never mind which settings the user have for their computer screens.
‎2009 May 08 11:52 AM
Hi,
If your ALV is going to occupy the whole screen, dont create a custom control on screen. Instead code like below.The complete screen will be used as CONTAINER.
CREATE OBJECT go_grid
EXPORTING
i_parent = cl_gui_container=>default_screen.~Jose
‎2009 May 07 11:20 AM
Use docking container instead of Custom container ( nothing need to be placed on the screen like custom container)
For docking container you can refer RSDEMO_DOCKING_CONTROL
Use this instead of custom container to get ALV display
Pseudo Code :
w_adhe_cn : This ref to docking container
W_ADHB_GD : This ref of alv grid
create the docking container
CREATE OBJECT w_adhe_cn
EXPORTING repid = repid
dynnr = dynnr
side = docking->dock_at_left
extension = 2000. "(A high valuewhich will cover the screen)
Create the using the container
CREATE OBJECT W_ADHB_GD
EXPORTING
I_PARENT = W_ADHB_CN
EXCEPTIONS
ERROR_CNTL_CREATE = 1
ERROR_CNTL_INIT = 2
ERROR_CNTL_LINK = 3
ERROR_DP_CREATE = 4
others = 5.
Get the display using following method 'SET_TABLE_FOR_FIRST_DISPLAY'
CALL METHOD W_ADHB_GD->SET_TABLE_FOR_FIRST_DISPLAY
‎2009 May 07 1:01 PM
‎2009 May 08 11:52 AM
Hi,
If your ALV is going to occupy the whole screen, dont create a custom control on screen. Instead code like below.The complete screen will be used as CONTAINER.
CREATE OBJECT go_grid
EXPORTING
i_parent = cl_gui_container=>default_screen.~Jose