Skip to Content
0
Former Member
May 05, 2009 at 11:01 AM

resize container of an alv_grid

871 Views

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