Application Development 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: 

Encountering Dynamic Page Numbers in report

Former Member
0 Kudos

Hi all,

i am having total 25 records to display in report

i had reserved 2 lines for footer now the count is 18 records

for first 18 records it is displaying page 1, now for diplaying next 7 records in next

page it should reach the line count to 18 instead we have to display rest of the 7 records in second page

can any one help me in doing this???

Urgent

2 REPLIES 2

Former Member
0 Kudos

ANSWERED

0 Kudos

&----


*& Report ZTESTPAGNO *

*& *

&----


*& *

*& *

&----


report ztestpagno no standard page heading line-count 20(2) line-size 60.

tables : mara.

data : itab type standard table of mara,

wa type mara.

select-options: s_matnr for mara-matnr.

select * from mara

into

table itab

where matnr in s_matnr.

loop at itab into wa.

write 😕 wa-matnr..

endloop.

write : / 'Page No :', sy-pagno.

end-of-page.

write : / 'Page No :', sy-pagno.