08-28-2007 6:50 AM
Hi,
I would like to print the Page numbers in the Printout of ALV Display.
How can solve this ?
Regards,
Ram.
08-28-2007 9:21 AM
Hi ,
If you are ALV grid or List then
In the eevnt TOP of page check sy-ucomm for print and then increment the pages by using sy-pagno and fill listheader table and reuse_commentary_write
check the code below .
IF sy-ucomm = 'PRIN'.
t_listheader1[] = t_listheader[].
DELETE t_listheader1 WHERE key = c_page.
CLEAR v_htext.
IF v_pagno4 = sy-pagno.
Write top of page
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = t_listheader.
Please reward if useful.