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: 

cl_gui_alv_grid Full Screen

Former Member
0 Kudos

Hi,

How can display the ALV grid with full screen in the report?

Regards,

Kit

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos

you can also get that using the screen properties.

Copy the screen 500 of the program

SAPLSLVC_FULLSCREEN

or else set the properites of the screen

Lines/Columns   Occupied 200   240
                Mainten. 200   240

and in the screen layout

For custom Controll you make the Height 240, Vis.length 240 , Height 200

then it will be a fullscreen.

5 REPLIES 5

former_member598013
Active Contributor
0 Kudos

Hi Kit,

Create a Container with full screen and assign the ALV parent to the Container.. It will automatically display it on the full screen.

Cheers,

Chidanand

uwe_schieferstein
Active Contributor
0 Kudos

Hello Kit

For fullscreen mode I usually link a docking container (parent of the grid control) to the target dynpro ( ).

The docking control has a parameter EXTENSION (e.g. a value of 90 means fill 90% of the screen with the container).

After having created the docking container I set this extension value to a very high value, e.g.:


* Create docking container
  CREATE OBJECT go_docking
    EXPORTING
      parent = cl_gui_container=>screen0
      ratio  = 90  " 90% yet not full-screen size
    EXCEPTIONS
      OTHERS = 6.
  IF sy-subrc <> 0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

  CALL METHOD go_docking->set_extension
    EXPORTING
      extension  = 99999  " full-screen size !!!
    EXCEPTIONS
      cntl_error = 1
      OTHERS     = 2.
  IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

Regards

Uwe

former_member188685
Active Contributor
0 Kudos

you can also get that using the screen properties.

Copy the screen 500 of the program

SAPLSLVC_FULLSCREEN

or else set the properites of the screen

Lines/Columns   Occupied 200   240
                Mainten. 200   240

and in the screen layout

For custom Controll you make the Height 240, Vis.length 240 , Height 200

then it will be a fullscreen.

former_member728528
Discoverer

Is posible..

When you created the object ALV you must indicate the attribute cl_gui_custom_container=>default_screen.

Something like that:

CREATE OBJECT gc_alv

     EXPORTING

       i_parent = cl_gui_custom_container=>default_screen.

regards

0 Kudos

This one is very good.

You can create the screen but must not create the container.
It makes a friendlier user ALV screen.