‎2007 Feb 17 5:04 AM
Hi friends,
Could anybody tell me the system varible to find the last page of the report output.
If not, how can i find the last page no in the report output.
Reward sure if it is helpful.
Thanking you
‎2007 Feb 17 6:41 AM
Hi ,
Two things to consider
1.
See dynamically we cannot decide how many pages are listed /output cause we dont know till the time of runtime that how many records are fetched .
so page numbers can be known only after the write statement of the records .
2
now if i maintain a line count say for lines 10 i want a new page for 11 item .
then we are making the pages as per our way .
so if i dont maintain i line count
default setting for line count is 35 " i think so ..
so last page value will be rounded value of
total records / 35 .
if its line count enabled rounded value of
total record / (line count value) .
regards,
vijay
‎2007 Feb 17 5:09 AM
Hi,
i think you can make use of sy-PAGNO and count the no of pages in the report
regards
Shiva
‎2007 Feb 17 5:19 AM
Hi Senthil kumar,
I think we can't find the last page of the report using system variable. But u can search any system variables are there in SE11 --> SYST. It contains all the SAP ABAP SYSTEM FIELDS man. I thing it is useful for u.
Thanks,
Shankar
‎2007 Feb 17 6:41 AM
Hi ,
Two things to consider
1.
See dynamically we cannot decide how many pages are listed /output cause we dont know till the time of runtime that how many records are fetched .
so page numbers can be known only after the write statement of the records .
2
now if i maintain a line count say for lines 10 i want a new page for 11 item .
then we are making the pages as per our way .
so if i dont maintain i line count
default setting for line count is 35 " i think so ..
so last page value will be rounded value of
total records / 35 .
if its line count enabled rounded value of
total record / (line count value) .
regards,
vijay