04-13-2009 8:15 AM
Hi,
I want to add a footer in output of an ALV Grid and Tree. Pls tell me how this is possible.
04-13-2009 8:20 AM
04-13-2009 8:29 AM
Hi Refer this:
http://help.sap.com/saphelp_nw04/helpdata/en/59/e3eb40c4f8712ae10000000a155106/frameset.htm
Hope it helps
Regards
Mansi
04-13-2009 8:31 AM
hi,
Try using END_OF_LIST event.
refer this link
http://help.sap.com/saphelp_nw04/helpdata/en/d3/6dee408a63732ae10000000a155106/content.htm
04-13-2009 8:39 AM
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.
04-13-2009 9:09 AM
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****
04-13-2009 10:15 AM