‎2007 Sep 06 3:24 PM
Hi Guys,
Help in this ....pls
The system variable for the Total No of pages of a report to display on header.
‎2007 Sep 06 3:29 PM
Hi,
We do not have the system field for the total number of pages in report ..
Here is the formula for the total number of pages
REPORT YPAGECOUNT NO STANDARD PAGE HEADING LINE-COUNT 65.
DATA L_PAGE_COUNT(5) TYPE C.
TOP-OF-PAGE.
WRITE: /(70) 'Heading' CENTERED, 70 SY-PAGNO,'of ', '-----'.
ULINE.
START-OF-SELECTION.
* Real list output takes place here
DO 300 TIMES.
WRITE: / 'Line #', SY-LINNO.
ENDDO.
* Page count will be printed on each page here
WRITE SY-PAGNO TO L_PAGE_COUNT LEFT-JUSTIFIED.
DO SY-PAGNO TIMES.
READ LINE 1 OF PAGE SY-INDEX.
REPLACE '-----' WITH L_PAGE_COUNT INTO SY-LISEL.
MODIFY CURRENT LINE.
ENDDO.Regards
Sudheer
‎2007 Sep 06 3:28 PM
‎2007 Sep 06 3:29 PM
Hi,
We do not have the system field for the total number of pages in report ..
Here is the formula for the total number of pages
REPORT YPAGECOUNT NO STANDARD PAGE HEADING LINE-COUNT 65.
DATA L_PAGE_COUNT(5) TYPE C.
TOP-OF-PAGE.
WRITE: /(70) 'Heading' CENTERED, 70 SY-PAGNO,'of ', '-----'.
ULINE.
START-OF-SELECTION.
* Real list output takes place here
DO 300 TIMES.
WRITE: / 'Line #', SY-LINNO.
ENDDO.
* Page count will be printed on each page here
WRITE SY-PAGNO TO L_PAGE_COUNT LEFT-JUSTIFIED.
DO SY-PAGNO TIMES.
READ LINE 1 OF PAGE SY-INDEX.
REPLACE '-----' WITH L_PAGE_COUNT INTO SY-LISEL.
MODIFY CURRENT LINE.
ENDDO.Regards
Sudheer
‎2007 Sep 06 3:37 PM
Are u trying to find out total no. pages ur smartform would generate ?