‎2012 Mar 28 10:39 AM
i create report using oops g_custom_container and
call method grid->set_table_for_first_display
i have issue screen resolution when i run program in wide screen its perfect when iam running in small screen its out put size is big how to resolve this issue i want screen resolution should set automatically .
‎2012 Mar 28 11:09 AM
As far as i know there is no way to determine in runtinme the best resolution. There are some threads that threats with the same problem, like this http://scn.sap.com/thread/1954252 or http://scn.sap.com/thread/542761
One aproximattion could be to use a docking container and allocate the size.
Regards.
‎2012 Mar 28 11:16 AM
Determining screen resolution may be not be possible.
But what you can do is to use the docking container instead of customer container. and use cl_gui_container=>screen0 to instantiate it. It will not depenent on the size coustom controller on the screen.
create object go_dock
exporting
parent = cl_gui_container=>screen0
ratio = 90.
Then you can pass this as parent which create the object for ALV grid.
create object ref_alv
exporting
i_parent = go_dock.
Regarding ALV I love one thread
‎2012 Mar 31 10:22 PM
Or shorter way:
create object ref_alv
exporting
i_parent = cl_gui_container=>screen0.
Kr,
Manu.
‎2012 Mar 28 11:16 AM