04-21-2010 4:53 AM
Hello All,
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.
Please help.
Thanks,
Anju
04-21-2010 5:52 AM
Hi,
Check the standard program "SALV_DEMO_TABLE_FORM_EVENTS" for reference.
Regards
Vinod
04-21-2010 6:09 AM
[Header in ALV|www.s-a-p-t-e-c-h-n-i-c-a-l.com/Tutorials/ALV/ColumnExcl.htm ]
04-21-2010 6:16 AM
Guys,
The OP said,
"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."
Do your solutions cater to the specific problem?
@OP: Can you share the code of your factory method call ? Are you passing both container instance & the container name while calling the method ?
Edited by: Suhas Saha on Apr 21, 2010 10:46 AM
Anyways you cannot use TOP-OF-PAGE for a container you have to use TOP-OF-LIST for it.
BR,
Suhas
Edited by: Suhas Saha on Apr 21, 2010 10:49 AM
04-21-2010 6:16 AM
Even long back i posted on the same issue and found no no solution on this.
Please refer the help link which shows clearly that header for ALV is not available in container
http://help.sap.com/erp2005_ehp_04/helpdata/EN/f9/1ab54099de3726e10000000a1550b0/frameset.htm
04-21-2010 1:32 PM