I have created a ALV using the class CL_SALV_TABLE. I have created the top of page using the following statements.
g_table->set_top_of_list( EXPORTING value = go_grid ).
g_table->set_top_of_list_print( go_grid ).
where go_grid is TYPE REF TO cl_salv_form_layout_grid and g_table is TYPE REF TO cl_salv_table.
My problem is if I do not provide a container in the method Factory() the header is displayed on top of the ALV but if I provide a container then the header is not shown.