Application Development 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: 

resize container of an alv_grid

Former Member
0 Kudos

Hi experts,

simple question for resize the container of an alv_grid.

Im using a normal dialog Dynpro witch includes an container and inside an alv-grid.

Now we have different settings of our users resolutions of their workstations.

My question: can I read the settings of the resolution before creating the container ? or do the same action after create the container?u2026

-simply i want to show the grid in fullscreen - and use the complete with.... (not the height..)

thankzzzz

Bertram

codingu2026.

CREATE OBJECT CONT

EXPORTING

CONTAINER_NAME = 'ALV'

EXCEPTIONS

OTHERS = 6.

IF ALV IS NOT INITIAL.

FREE ALV .

ENDIF.

CREATE OBJECT ALV

EXPORTING

I_PARENT = CONT

EXCEPTIONS

OTHERS = 5.

CALL METHOD ALV->SET_TABLE_FOR_FIRST_DISPLAY

EXPORTING

  • I_BUFFER_ACTIVE =

  • I_BYPASSING_BUFFER =

  • I_CONSISTENCY_CHECK =

  • I_STRUCTURE_NAME = 'BAPIRET2'

IS_VARIANT = MY_VARIANT

I_SAVE = 'A'

  • I_DEFAULT = 'X'

IS_LAYOUT = WA_LAYOUT

  • IS_PRINT =

  • IT_SPECIAL_GROUPS =

IT_TOOLBAR_EXCLUDING = IT_EXCLUDED_FUNCTIONS

IT_HYPERLINK = GT_HYPETAB

  • IT_ALV_GRAPHICS =

  • IT_EXCEPT_QINFO =

CHANGING

IT_OUTTAB = LT_XXXX

IT_FIELDCATALOG = LT_FIELDCAT

  • IT_SORT =

  • IT_FILTER =

EXCEPTIONS

  • INVALID_PARAMETER_COMBINATION = 1

  • PROGRAM_ERROR = 2

  • TOO_MANY_LINES = 3

OTHERS = 4

1 ACCEPTED SOLUTION

uwe_schieferstein
Active Contributor
0 Kudos

Hello Bertram

If the ALV grid is the only screen element then I always recommend to avoid any custom control on the screen but use the docking container. After creating the docking container instance call its method SET_EXTENSION with a very high value (99999).

The ALV grid will fill the entire screen and resize automatically.

Regards

Uwe

2 REPLIES 2

naimesh_patel
Active Contributor
0 Kudos

Create Custom Container as big as possible on the your Dynpro.

Next, set the Resizing options of the custom container.

You will find it in the property of the custom container. Check both Vertical and Horizontal checkboxes.

Regards,

Naimesh Patel

uwe_schieferstein
Active Contributor
0 Kudos

Hello Bertram

If the ALV grid is the only screen element then I always recommend to avoid any custom control on the screen but use the docking container. After creating the docking container instance call its method SET_EXTENSION with a very high value (99999).

The ALV grid will fill the entire screen and resize automatically.

Regards

Uwe