02-29-2008 10:36 AM
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
02-29-2008 10:40 AM
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
02-29-2008 10:41 AM
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
02-29-2008 10:59 AM
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
02-29-2008 11:19 AM
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
02-29-2008 11:24 AM
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.