You can create a screen-> Create a container object in the screen (Name the container object).
Create objects for global classes ,
DATA : g_container TYPE REF TO cl_gui_custom_container,
g_grid_alv TYPE REF TO cl_gui_alv_grid.
* Create objects for Handler, Container and ALV
CREATE OBJECT g_container
EXPORTING
container_name = 'CONTAINER'.
CREATE OBJECT g_grid_alv
EXPORTING
i_parent = g_container.
Create Field Catalog and O/p table and call method,
CALL METHOD g_grid_alv->set_table_for_first_display
* EXPORTING
* is_layout = gs_layout
CHANGING
it_outtab = gt_final
it_fieldcatalog = gt_fieldcat.
This could solve the issue.
Regards,
Deepan Swamainthan.