Skip to Content
avatar image
Former Member

varying the line count in every page

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Dec 12, 2007 at 03:12 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.