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: 

Spreading the ALV-grid over the whole length of the screen

Former Member
0 Kudos

Hello,

I want, that the ALV-Grid I am displaying fills the whole screen, from left to right. I am using a custom container control but set the width of the dynpro and custom container manually. I want that the ALV-grid and dynpro automatically fill the whole space of the screen, from left to right. Is there a possibility to do this dynamically, e.x. with the splitter control? Thanks.

Regards, Lars.

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos

Change the Default length to 200

visible length to 200

height to 200

in the screen attributes that will make the screen to be filled from left to right..

regards

vijay

6 REPLIES 6

former_member188685
Active Contributor
0 Kudos

Change the Default length to 200

visible length to 200

height to 200

in the screen attributes that will make the screen to be filled from left to right..

regards

vijay

Former Member
0 Kudos

Hi,

If your custom container is on the main screen then no need to set width for the dynpro I guess.

In such case, just go to screen painter, make your custom container size very big (bigger than the screen can accommodate) and then MARK Resizing options, Vertial and Horrizontal for it (you will see them in the properties window for the custom container). You can play with these, as resizing options make custom container adopt to the screen length and width.

No need for splitter I guess, though docking container is the more logical one to use.

Hope this helps..

Sri

Former Member
0 Kudos

Lars,

<b>Do not create a Container!!!</b> Just Use the attribute SCREEN0 while creating the GRID

DATA: myGrid TYPE REF TO cl_gui_alv_grid.

<b>CREATE OBJECT myGrid EXPORTING i_parent = cl_gui_container=>screen0.</b>

And You have to create an EMPTY screen, put NOTHING in the layout.

Just have CALL SCREEN 100.

Thanks

Kam

former_member188685
Active Contributor
0 Kudos

Hi Lars,

Change the Attributes of container that By changing it as mentioned above.

regards

vijay

abdul_hakim
Active Contributor
0 Kudos

Hi,

One idea is delete your custom control from the screen.

Then in the declaration part of your program write

DATA doc TYPE REF TO CL_GUI_DOCKING_CONTAINER.

Then in the PBO.

CREATE OBJECT doc EXPORTING extension = '3000'.

CREATE OBJECT alv EXPORTING i_parent = doc.

Then proceed as usual..

You can change the width from 3000 to any other values also..

Regards,

Abdul

Former Member
0 Kudos

Hello,

thanks for your help.

Regards, Lars.