Skip to Content

Increasing GRID size while using CL_GUI_ALV_GRID

Hi,

I have created ALV using CL_GUI_ALV_GRID. ALV grid is contained in a Container and I have kept the size of container to maximum.

Still while viewing this ALV on client's monitor (may be with different resolution), it covers only a part of screen, thus wasting extra screen space and making user to use horizontal and vertical scroll unnecessarily.

Please advise what could be done.

I don't want to create ALV using some other way, say 'function module 'REUSE_ALV_GRID_DISPLAY'.

<< Moderator message - Please do not promise points >>

<< Moderator message - The answers in the forum are provided by volunteers. Please do not ask for help ASAP. >>

Thanks

Edited by: Rob Burbank on Dec 8, 2011 12:34 PM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Dec 08, 2011 at 05:45 PM

    Try the below code

    DATA: obj_container   TYPE REF TO cl_gui_custom_container,
     
    CREATE OBJECT obj_container
        EXPORTING
          container_name = 'CC_CONTAINER'
          style          = cl_gui_custom_container=>ws_maximizebox.

    for Screen resizing :

    Call SE51 in layout editor; double-click on the container and declare "huge" dimensions (for a 100" screen) and check the resize box giving minimal dimensions

    The container will automatically adapt to screen size.

    Edited by: Mithun Shetty on Dec 8, 2011 11:19 PM

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.