12-01-2008 12:27 PM
hi all,
whenever we encounter any output statement in abap program, first it will go to top-of-page and execute it, in that sense, when end-of-page will be trigerred?
shweta
12-01-2008 12:30 PM
Hi Shweta,
If you have this routine, the program will print whatever information you specify at the end of the report. For end-of-page routine to work, you have to specify the number of line-count for the end-of-page.
Go through the following link:
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba06935c111d1829f0000e829fbfe/content.htm
Regards,
Nitin.
12-01-2008 12:31 PM
Hi Jus check below info from saphelp!
Defining a Page Footer
To define a page footer, use the END-OF-PAGE event. This event occurs if, while processing a list page, the system reaches the lines reserved for the page footer, or if the RESERVE statement triggers a page break. Fill the lines of the page footer in the processing block following the event keyword END-OF-PAGE:
Syntax
END-OF-PAGE.
WRITE: ....
The system only processes the processing block following END-OF-PAGE if you reserve lines for the footer in the LINE-COUNT option of the REPORT statement (see Determining the Page Length).
Remember to end the processing block following END-OF-PAGE by using an appropriate event keyword, such as START-OF-SELECTION, if you want to start processing the actual list afterwards (see Defining Processing Blocks).
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.
This program consists of three processing blocks. The standard page header is turned off. The page length is set to six lines, where two of them are reserved for the page footer.
Cheers,
Hakim
12-01-2008 12:32 PM
you should give the page size. then as per that end-of-page will be displayed at the end
12-01-2008 12:32 PM
Hi,
END-OF-PAGE Triggered during list processing when a page is ended.
It is used to have a standard footer for all the pages.
Triggered by the program if the number of records exceed the line-count of the program.
thanks
Arjun
12-01-2008 12:32 PM
Hi,
END-OF-PAGE: This event is triggered every time the list data reaches the footer region of the page.
TOP-OF-PAGE: This event is triggered every time a new page is started in the list.
To know more about events visit http://www.abapguide.com/notes/events-in-report/ or http://www.saptechies.com/events-in-an-abap4-report-program/
Regards
Shanthi
12-01-2008 12:49 PM
this event will be triggered whenever it will come to the end of current page in list processing, that is when you define a line-count say 10(2) than at the end of your line count when the count will be 8 as you have given 2 for end-of-page it will be triggered and 2 means you have allocated 2 lines for end-of-page & suppose u have nt allocated any space for EOP say line-count 10 than EOP will be triggered but could not write anything as it has no space to write.
see the code:
REPORT TEST_CASE line-count 10(2).
Start-of-selection.
do 100 times.
Write:/ sy-index.
enddo.
End-of-page.
Write: 'its end'.
With luck,
Pritam.