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

Get the Print downloaded separately

Former Member
0 Likes
376

Hi All,

I have a requirement in my report where the whole data should get downloaded with page breaks.(i.e., like

20 records in one page, next 20 records in next something like this,) but ths is not happening in my program it is printing all the records without any breaks..

Can any body tell me how to handle this.

Regards

Rohini.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
355

Try this:

REPORT ZTEST138 NO STANDARD PAGE HEADING LINE-COUNT 21.

data: count type i.

do 40 times.

count = count + 1.

write: / count.

enddo.

top-of-page.

write: / 'page: ', sy-pagno.

Hi All,

I have a requirement in my report where the whole data should get downloaded with page breaks.(i.e., like

20 records in one page, next 20 records in next something like this,) but ths is not happening in my program it is printing all the records without any breaks..

Can any body tell me how to handle this.

Regards

Rohini.

2 REPLIES 2
Read only

Former Member
0 Likes
355

Specify the Line count along with REPORT statement.

REPORT ZTEST_REPORT LINE-COUNT 20.

Read only

Former Member
0 Likes
356

Try this:

REPORT ZTEST138 NO STANDARD PAGE HEADING LINE-COUNT 21.

data: count type i.

do 40 times.

count = count + 1.

write: / count.

enddo.

top-of-page.

write: / 'page: ', sy-pagno.