PRINT PAGE NUMBER

Question:
HI ANYONE CAN HELP ME HOW TO PRINT
CURRENT PAGE NUMBER OF TOTAL PAGE NUMBER
HOW TO GET TOTAL PAGE NUMBER
Answer:
Its been said before and it will no doubt be said again but here goes:
Why not make use of the wonderful search facility on this forum. This can very often get you your answer without the need to post your question
That said, a search on Total Pages Number brings up this handy link
http://www.ciudadfutura.com/sap/sap/reports/pagecount.htm

_________________
Regards,
Angelis.
Answer:
Try this
REPORT ZPAGETEST  NO STANDARD PAGE HEADING LINE-SIZE 40
                                            LINE-COUNT 20.
DATA:COUNT(6) TYPE I.
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.
KRK

More Articles:

Downloading data in CSV file format from SAP?
Table control page down problem?
spool output wrong?
SELECTION-SCREEN EVENTS?
User Exit for FB70 (FI-AR)?
ws_download and gui_download?