Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

system variable for finding last page!!

Former Member
0 Likes
504

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
478

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

3 REPLIES 3
Read only

Former Member
0 Likes
478

Hi,

i think you can make use of sy-PAGNO and count the no of pages in the report

regards

Shiva

Read only

p291102
Active Contributor
0 Likes
478

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

Read only

Former Member
0 Likes
479

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