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: 

Problem in Printing Footer in 'REUSE_ALV_GRID_DISPLAY'

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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.

0 Kudos

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

0 Kudos

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