08-28-2012 10:41 AM
Hello experts,
I am working with an ALV using this class CL_SALV_TABLE.
Long time ago i used "reuse_Alv_display..." And here i had the oppotunity to make a HTML header at the top of my ALV.
Is something similar possible with this class CL_SALV_TABLE ?
Cheers,
Kenneth
08-28-2012 11:09 AM
check this link.
http://wiki.sdn.sap.com/wiki/display/Snippets/TOP+OF+PAGE+AND+END+OF+PAGE+IN+CLASS+cl_salv_table
in this wiki header and footer is been created by making use of the class cl_salv_table.
08-28-2012 10:47 AM
Hi,
report zalvom_demo1.
data: ispfli type table of spfli.
data: gr_table type ref to cl_salv_table.
data: gr_functions type ref to cl_salv_functions.
data: gr_display type ref to cl_salv_display_settings.
start-of-selection.
select * into table ispfli from spfli.
cl_salv_table=>factory( importing r_salv_table = gr_table
changing t_table = ispfli ).
gr_functions = gr_table->get_functions( ).
gr_functions->set_all( abap_true ).
gr_display = gr_table->get_display_settings( ).
gr_display->set_list_header( 'This is the title' ).
gr_table->display( ).
08-28-2012 11:09 AM
check this link.
http://wiki.sdn.sap.com/wiki/display/Snippets/TOP+OF+PAGE+AND+END+OF+PAGE+IN+CLASS+cl_salv_table
in this wiki header and footer is been created by making use of the class cl_salv_table.
08-28-2012 11:50 AM