10-08-2007 6:37 AM
Hi,
I have developed a report by blocked ALV.In this report i have created two blocks.
But when i give print out the two blocks are not printing continuously.It is displaying one block in one page and another block in anther page.
And i need page number at end of each page.
Please provide me solution for this.
Thanks & Regards
Venkatrami Reddy B
10-08-2007 6:40 AM
Hi,
For printing page numbers :
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
Thanks,
Reward If Helpful.