11-13-2008 11:23 AM
Hi All,
I'm trying to display the header, body and footer for ALV.
Using below code I'm able to view all three i.e Header, Body and footer on my output screen of module pool, but while Printing Footer is NOT coming, Neither in Print Preview.
Can anybody help me out to print all three on the same page.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = gd_repid
i_callback_top_of_page = 'TOP-OF-PAGE'
i_callback_html_end_of_list = 'END_OF_LIST_HTML'
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
i_save = 'X'
tables
t_outtab = it_ekko
exceptions
program_error = 1
others = 2.
Any help in this regard would be appreciated.
Thanks,
Kunal Thakral
11-13-2008 1:27 PM
Try using end_of_list and in the routine:
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = gt_footer
i_end_of_list_grid = 'X'.
It has worked for me .... tht wz some time bac....
Regards,
Narendra.
11-14-2008 6:43 AM
Hi Narendra,
Thanks for your reply.
I'm passing the following in REUSE_ALV_GRID_DISPLAY, Footer is appearing on the screen but not able take print of the footer.
*****
i_callback_html_end_of_list = 'END_OF_LIST_HTML'
****
I commented above while trying your logic. this time Footer didn't come even.
Do you know any settting in REUSE_ALV_GRID_DISPLAY to print the output on single page or any other related stuff.
Regards,
Kunal Thakral
11-28-2011 1:02 PM
Hi...
I also have same problem ..
when o/p all three header,body and footer are showing but in print footer is not coming
pls help me this issue..
Thanks&Regards,
Gopi. M