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: 

Page Number Display

Former Member
0 Kudos

Hi Gurus,

How can i print page numbers in standard report ( FAGLL03 ) which is not available now?

I can use sy-pagno , but where exactly i need to add that , i tested the report by adding the code in end-of-page but i didnt get the output correctly . Can u kindly tell me the solution .

Waiting for ur reply ....

Regards

Srinath

4 REPLIES 4

Former Member
0 Kudos

hiii

you can write in TOP-OF-PAGE EVENT ..

example is given in below link..just use that code given in following link..(of TOP-OF-PAGE EVENT)

regards

twinkal

bpawanchand
Active Contributor
0 Kudos

Former Member
0 Kudos

Hi,

Since it is standard program you can find the user or customer exit for it and then place ur code in the exact place then it may trigger.

Former Member
0 Kudos

Hi,

END-OF-PAGE

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.

Try like this:

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.

The list consists of three pages of six lines each. Each page is made up of the self-defined two-line page header, of two lines of actual list, and of a two-line page footer. The current page number displayed in the page footer comes from the SY-PAGNO system field.

Regards,

Bhaskar

Edited by: Bhaskar Chikine on Aug 4, 2008 9:00 PM