2005 Apr 11 9:53 AM
Hi,
Ive been converted to ALVGrid and I now know that I have now the choice between the <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/abap%20faqs.faq#q-10">fast ALVGrid creation</a> and the by the book declaration with container.
The fast creation is pretty much productive as only a very little number of statements is necessary, but side effects exists.
One thing I like with the fast ALVGrid creation is the default full screen mode which is most of the case what we want to face the tremendous number of columns users request.
However and despite some try Ive been unable to <b>trigger the full screen mode with a standard ALVGrid instance declared with container</b> etc. Even playing with the custom container in the Screen painter doesnt work.
<b>So did I miss the trick to full screen ALVGrid with by the book container declaration ?</b>
-Bertrand-
PS : I do not want to REUSE*ALV
2005 Apr 11 10:21 AM
With CL_GUI_ALV_GRID and container you cannot have full screen mode where you have the buttons in the standard application toolbar.
However if you want to maximise the size of the container to the full available size of the screen there is a trick availalbe.
Try the following for your screen which holds the container.
Set the screen with and height to the max. extent possible. (screen attributes)
place the custom controller on the screen and expand it to the full screen width and height.
Set the custom control attributes:
by selecting the check box for resizing vertical, horizontal and set the min lines and min columns to 1.
Try this and let me know.
Regards
Raja
Hi,
Ive been converted to ALVGrid and I now know that I have now the choice between the <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/abap%20faqs.faq#q-10">fast ALVGrid creation</a> and the by the book declaration with container.
The fast creation is pretty much productive as only a very little number of statements is necessary, but side effects exists.
One thing I like with the fast ALVGrid creation is the default full screen mode which is most of the case what we want to face the tremendous number of columns users request.
However and despite some try Ive been unable to <b>trigger the full screen mode with a standard ALVGrid instance declared with container</b> etc. Even playing with the custom container in the Screen painter doesnt work.
<b>So did I miss the trick to full screen ALVGrid with by the book container declaration ?</b>
-Bertrand-
PS : I do not want to REUSE*ALV
2005 Apr 11 10:21 AM
With CL_GUI_ALV_GRID and container you cannot have full screen mode where you have the buttons in the standard application toolbar.
However if you want to maximise the size of the container to the full available size of the screen there is a trick availalbe.
Try the following for your screen which holds the container.
Set the screen with and height to the max. extent possible. (screen attributes)
place the custom controller on the screen and expand it to the full screen width and height.
Set the custom control attributes:
by selecting the check box for resizing vertical, horizontal and set the min lines and min columns to 1.
Try this and let me know.
Regards
Raja
2005 Apr 11 3:39 PM
You trick work, it is not a real full screen but simulate it by pushing the limit to the max. I think that only screen resolution over 1600px can reach the limit of the trick (I've got that one ;).
In fact I did the first 2 steps by misses the last one min line and heigh to 1 (I did put them at 100 each ... don't tell me why). Note that also resolve the bug of the horizontal scrolling bar too short :D.
So double Thanks to you Raja
2005 Apr 11 4:44 PM
Hello,
Using a docking control works just as well - simply create a docking control and dock it to the left side of the GUI. Then set the width to some large number, eg. 2000. Create your ALV grid in this container and you'll have a full size ALV grid.
Regards, Joerg
2005 Jun 29 3:18 PM
Hi Joerg,
Ultimately I found a new dev and time to try your solution using a docking container.
I have to admit that it's even better then the custom container solution that is put in all tutorials.
First of all the full-screen is really full ... no limit I think to the size. It adapt automagically to the screen size.
Secondly it does only need an empty screen, no need to create a custom controler inside (well this is no so long ok).
Now I wonder if there is no drawbacks (compared to the custom control) that I still didn't discover ??? Did you found any ?
<i>I'm a docking container converted</i>