12-24-2007 4:54 AM
12-24-2007 4:56 AM
12-24-2007 4:57 AM
12-24-2007 4:58 AM
Use Syatem variable SY-PAGNO in the write statement.
or
data x_text(100) type c.
data x_page(10) type c.
concatenate 'pageno' sy-pagno into x_text separated by space.
change this to
x_page = sy-pagno.
concatenate 'pageno' x_page into x_text separated by space.
Kanagaraja L
12-24-2007 5:01 AM
Hi Rakesh,
Check this code.
Declare a variable
DATA L_PAGE_COUNT(5) TYPE C.
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 1 OF PAGE SY-INDEX.
WRITE 😕 'H'.
REPLACE '-----' WITH L_PAGE_COUNT INTO SY-LISEL.
MODIFY CURRENT LINE.
ENDDO.
WRITE 😕 'HELLO' .
TOP-OF-PAGE.
WRITE: /(70) 'Heading' CENTERED, 70 SY-PAGNO,'of ', '-----'.
Reward Points, if useful.
Regards,
Manoj Kumar
12-24-2007 5:03 AM
hai,
use this,
top-of-page.
Current Page No : sy-pagno.
reward points if helpful.
regards,
jai.m