‎2007 Jul 14 7:56 AM
to write total page number in interactive report what is the system variable..
‎2007 Jul 14 8:16 AM
HI,
CHECK THIS ONE
In TOP-OF-PAGE you can write:
WRITE: SY-PAGNO, '/', '-----'.
When the program has finished to print all data, run a routine like this:
Declare a variable
DATA: L_PAGE_COUNT(5) TYPE C,
V_LINE TYPE I. "The line where page number is written
In my example I suppose the page number is always
written in the first row of the page.
V_LINE = 1.
Copy this code to the end of program
Page count will be printed on each page here
WRITE sy-pagno TO l_page_count LEFT-JUSTIFIED.
DO sy-pagno TIMES.
READ LINE V_LINE OF PAGE sy-index.
REPLACE '-----' WITH l_page_count INTO sy-lisel.
MODIFY CURRENT LINE.
ADD 1 TO sy-index.
ENDDO.
REG
ASHOK KUMAR
‎2007 Jul 14 7:57 AM
Hi,
CPAGE --- Current page number
LINCT --- Page length of list
SY-PAGNO -
-
Current page during the list creation.
· WRITE, ULINE, SKIPraise SY-PAGNO by 1 in the case of a line break.
· NEW-PAGE raises SY-PAGNO by 1, but only if at least one output follows both on the current page and after the NEW-PAGE statement.
· NEW-SECTION of the NEW-PAGE PRINT ON statement sets SY-PAGNO to 1.
FOR MORE INFORMATION PLEASE CHECK OUT THE FOLLOWING LINK IT MIGHT HELP YOU
http://help.sap.com/saphelp_nw2004s/helpdata/en/7b/fb96c8882811d295a90000e8353423/content.htm
***********please reward points if theinformation is helpful to you*************
‎2007 Jul 14 8:00 AM
HI,
use event
END-OF-PAGE.
Current number of pages is
sy-pagno
sy-lilli
(current list line) to determine the number of pages!for example : first end of page lilli contains 50 means that you can display 50 lines on one page! If the entries you display are about 213 you can determine there will be 5 pages ! Bingo!
Thanks for any rewardè!s
ASHOK KUMAR
‎2007 Jul 14 8:12 AM
‎2007 Jul 14 8:02 AM
‎2007 Jul 14 8:16 AM
HI,
CHECK THIS ONE
In TOP-OF-PAGE you can write:
WRITE: SY-PAGNO, '/', '-----'.
When the program has finished to print all data, run a routine like this:
Declare a variable
DATA: L_PAGE_COUNT(5) TYPE C,
V_LINE TYPE I. "The line where page number is written
In my example I suppose the page number is always
written in the first row of the page.
V_LINE = 1.
Copy this code to the end of program
Page count will be printed on each page here
WRITE sy-pagno TO l_page_count LEFT-JUSTIFIED.
DO sy-pagno TIMES.
READ LINE V_LINE OF PAGE sy-index.
REPLACE '-----' WITH l_page_count INTO sy-lisel.
MODIFY CURRENT LINE.
ADD 1 TO sy-index.
ENDDO.
REG
ASHOK KUMAR