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: 

ALV Blocked List

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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.