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: 

Page Number in ALV Output (print out)

Former Member
0 Kudos

Hi,

I would like to print the Page numbers in the Printout of ALV Display.

How can solve this ?

Regards,

Ram.

1 REPLY 1

Former Member
0 Kudos

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.