cancel
Showing results for 
Search instead for 
Did you mean: 

varying the line count in every page

Former Member
0 Kudos

Hi All..

I want to vary the line count in a page in my report.

I have mentioned the line size n line count at the starting of the report, n it prints the same no of lines in every page but in the subsequent pages , I want to increase the line count .

How can I do that ?

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

naimesh_patel
Active Contributor
0 Kudos

You can specify them using the NEW-PAGE.

Like:

LOOP AT ITAB.
  IF SY-TABIX > 10.
    NEW-PAGE LINE COUNT 10.   " <<
  ENDIF.
  WRITE: / ITAB-FIELD1.
ENDLOOP.

Regards,

Naimesh Patel

Former Member
0 Kudos

Hi Naimesh..

thanks for the reply .

well,the code u suggested does not work..NEW-PAGE is jus a standalone command with which the line count cannot be associated.

I actually have some header details that shud only appear on 1st page , n basing on the line count all works fine on 1st page ..but on the 2nd page the header details ned not appear , so only the itab details are getting printed , so the sy-tabix value remains the same but the line count is less than the 1st page leaving some space at the bottom of the page .

And in the subsequent pages the printing takes place but from the begining of the page n also leaving more space at the bottom of the page.

I want that equal no of lines get printed each page , also leaving equal no of lines at the bottom of each page.

Hope I'm sounding clear.

Any answers ?

Thanks.

Sangeet.