Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

CL_SALV_TABLE and a fancy heading

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

3 REPLIES 3

former_member565026
Participant
0 Kudos

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( ).

Former Member
0 Kudos

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.

0 Kudos

Thanks abhishek bansal, that was what i was after.

Cheers

Kenneh