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 Top of page during line selection

Former Member
0 Kudos
75

Hi All,

I am generating an interactive report.

I want to display the same header at each page break.

How to restrict the page size in At line-selection?

I want to display page in format Page X of Y for each page break?How to handle it?

Thanks in advance.

Regards,

Sandy

1 REPLY 1

0 Kudos
49

Hi,

Try the code:

REPORT ZPAGETEST NO STANDARD PAGE HEADING LINE-SIZE 40

LINE-COUNT 20.

DATA:COUNT(6) TYPE N.

DATA: LAST_PAGE_NO LIKE SY-PAGNO.

DATA: TOTPAGE(6) TYPE C .

TOP-OF-PAGE.

WRITE:20 SY-PAGNO ,'of', '££££££'.

START-OF-SELECTION.

DO 100 TIMES.

WRITE: / COUNT.

COUNT = COUNT + 1.

ENDDO.

LAST_PAGE_NO = SY-PAGNO.

TOTPAGE = SY-PAGNO.

DO LAST_PAGE_NO TIMES.

READ LINE 1 OF PAGE SY-INDEX .

REPLACE '££££££' WITH TOTPAGE INTO SY-LISEL.

MODIFY CURRENT LINE.

ENDDO.

Regards,

Sesh