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: 

Footer in ALV Grid and Tree

Former Member
0 Kudos

Hi,

I want to add a footer in output of an ALV Grid and Tree. Pls tell me how this is possible.

6 REPLIES 6

former_member242255
Active Contributor
0 Kudos

this link should be helpful..

Former Member

Former Member
0 Kudos

Former Member
0 Kudos

Hi,

This is the function module that is being used (customised version)- BSPL_GRID_CREATE.

If u check this you will find that I_CALLBACK_HTML_END_OF_LIST is commented out.

Former Member
0 Kudos

Hi,

In case of ALV Grid display the end of page works only if you use slis_print_alv1 end in this event you pass a parameter for reserving lines for end of page.then you call the END_OF_PAGE event and it will be shown in print preview.

But in normal ALV Grid display the report is shown with a screen scroll so the the event END_OF_PAGE doesnt work.If you want to see a screen footer in normal ALV Grid display use the event END_OF_LIST.

A SAMPLE CODE :-

******coding****

wa_evnt-name = 'END_OF_LIST'.

wa_evnt-form = 'FOOTER'.

APPEND wa_evnt TO i_evnt.

CLEAR wa_evnt.

********coding*****

FORM footer.

DATA : wa_footer TYPE slis_listheader,

i_footer TYPE slis_t_listheader.

wa_footer-typ = 'H'.

wa_footer-info = 'THIS IS A SAMPLE FOOTER'.

APPEND wa_footer TO i_footer.

CLEAR wa_foooter.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

it_list_commentary = i_footer

i_logo = 'PIC001'

  • I_END_OF_LIST_GRID =

  • I_ALV_FORM =

.

ENDFORM. "FOOTER

********coding****

Former Member
0 Kudos