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: 

Issue with new-page in classical report.

senthil_kumar29
Participant
0 Kudos

Hello Friends,

I want to introduce page break in a classical report.

But when I use new-page statement, its not triggering page break.

Thank U for Ur time.

Cheers,

Senthil

5 REPLIES 5

Former Member
0 Kudos

please look it ,

REPORT NO STANDARD PAGE HEADING LINE-COUNT 0(2).

TOP-OF-PAGE.

WRITE sy-pagno.

ULINE.

END-OF-PAGE.

ULINE.

WRITE 'Footer'.

START-OF-SELECTION.

NEW-PAGE LINE-COUNT 6.

DO 10 TIMES.

WRITE / sy-index.

ENDDO.

<REMOVED BY MODERATOR>

venkat.

Edited by: Alvaro Tejada Galindo on Feb 29, 2008 5:51 PM

Former Member
0 Kudos

when u run the report in backgroung then u can able to see the new page event, and use line count at report heading level

Former Member
0 Kudos

To determine the page length of an output list, use the LINE-COUNT option of the REPORT statement.

Syntax:-

REPORT lines of the page length for the page footer.

REPORT demo_list_end_of_page LINE-SIZE 40 LINE-COUNT 6(2)                             NO STANDARD PAGE HEADING.

TOP-OF-PAGE.

  WRITE: 'Page with Header and Footer'.

  ULINE AT /(27).

END-OF-PAGE.

  ULINE.

  WRITE: /30 'Page', sy-pagno.

START-OF-SELECTION.

  DO 6 TIMES.

    WRITE / sy-index.

  ENDDO.

if the line size exceeds 40 it will automatically go to the next page

Former Member
0 Kudos

Hi Senthil ,

Use the line-count addition with the report statement

example : report zsd_r_sales line-count 20 no standard page heading.

Regards,

Charumathi.B

Former Member
0 Kudos

Hi,

Please refer the code below:


REPORT demo_list_reserve LINE-SIZE 40 LINE-COUNT 8(2).

END-OF-PAGE.

  ULINE.

START-OF-SELECTION.

  DO 4 TIMES.
    WRITE / sy-index.
  ENDDO.

  DO 2 TIMES.
    WRITE / sy-index.
  ENDDO.

  RESERVE 3 LINES.
  WRITE: / 'LINE 1',
         / 'LINE 2',
         / 'LINE 3'.

Thanks,

Sriram Ponna.