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

Container fullscreen

Former Member
0 Likes
9,574

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.

1 ACCEPTED SOLUTION
Read only

Former Member
3,297

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

3 REPLIES 3
Read only

Former Member
0 Likes
3,297

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

Read only

uwe_schieferstein
Active Contributor
0 Likes
3,297

Hello

Please refer to thread

Regards

Uwe

Read only

Former Member
3,298

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