‎2011 Aug 29 7:42 AM
Hi,
I want to display the ALV in full screen using container(OOPs) .
I am using
DATA: lw_container TYPE REF TO cl_gui_custom_container,
lw_grid TYPE REF TO cl_gui_alv_grid,
g_container TYPE scrfname VALUE 'CHANGE'.
IF lw_container IS INITIAL.
CREATE OBJECT lw_container
EXPORTING
container_name = g_container.
CREATE OBJECT lw_grid
EXPORTING
i_parent = lw_container.
PERFORM fieldcat_alv_build.
CALL METHOD lw_grid->set_table_for_first_display
EXPORTING
i_structure_name = 'I_OUTPUT_ALV'
CHANGING
it_outtab = I_OUTPUT_ALV[]
it_fieldcatalog = i_fieldcat[].I Have searched through the SDN but could not get the solution for this problem.
Please let me know how to make th ALV in fullscreen.
Thanks & Regards
Subha
<Added code tags>
Edited by: Suhas Saha on Aug 29, 2011 1:04 PM
‎2011 Aug 29 8:40 AM
Hi,
You can increase the container size in your screen.,
esle,
instead of .,
creating custom container, just create screen and activate it,,
now instead of.,
DATA: lw_container TYPE REF TO cl_gui_custom_container,
> lw_grid TYPE REF TO cl_gui_alv_grid,
> g_container TYPE scrfname VALUE 'CHANGE'.
>
>
> IF lw_container IS INITIAL.
> CREATE OBJECT lw_container
> EXPORTING
> container_name = g_container.
>
> CREATE OBJECT lw_grid
> EXPORTING
> i_parent = lw_container.use.,
DATA: lw_container TYPE REF TO cl_gui_custom_container,
> lw_grid TYPE REF TO cl_gui_alv_grid.
>
> CREATE OBJECT lw_grid
> EXPORTING
> i_parent = cl_gui_custom_container=>screen0. " standard screens hope this helps u.,
Thanks & Regards,
Kiran
‎2011 Aug 29 7:56 AM
The container is adjusted using the screen painter. I think there are restrictions in displaying it in the full screen.
‎2011 Aug 29 8:25 AM
Please check the program :
BCALV_FULLSCREEN_GRID_EDIT.
BCALV_TEST_FULLSCREEN.
use BCALVTESTFULLSCREEN* or BCALVFULLSCREEN --> also give programs related to Fullscreen.
Hope this will be helpful..
Regards
Aravind.
‎2011 Aug 29 8:33 AM
Hello Subha,
If you've built the fieldcatalog in the subroutine fieldcat_alv_build, then you should not pass any value to the EXPORT'ing param i_structure_name.
Remove that param & check. If this doesn't help much, run an ALV consistency check & report your observations here.
BR,
Suhas
‎2011 Aug 29 8:40 AM
Hi,
You can increase the container size in your screen.,
esle,
instead of .,
creating custom container, just create screen and activate it,,
now instead of.,
DATA: lw_container TYPE REF TO cl_gui_custom_container,
> lw_grid TYPE REF TO cl_gui_alv_grid,
> g_container TYPE scrfname VALUE 'CHANGE'.
>
>
> IF lw_container IS INITIAL.
> CREATE OBJECT lw_container
> EXPORTING
> container_name = g_container.
>
> CREATE OBJECT lw_grid
> EXPORTING
> i_parent = lw_container.use.,
DATA: lw_container TYPE REF TO cl_gui_custom_container,
> lw_grid TYPE REF TO cl_gui_alv_grid.
>
> CREATE OBJECT lw_grid
> EXPORTING
> i_parent = cl_gui_custom_container=>screen0. " standard screens hope this helps u.,
Thanks & Regards,
Kiran