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: 

'END-OF-PAGE' not working in Report Program

Former Member
0 Kudos
1,617

Hi All..

I hve a problem while creating Classical Reports..

i use END-OF-PAGE in my report program, bt it is not working..

while TOP-OF-PAGE is working fine...

how to use this statement END-OF-PAGE...

and what is START-OF-PAGE??

Do ny1 tell???

Thx in advance.

Moderator Message: Read SAP Help. Do not use sms-speak.

Edited by: kishan P on Oct 7, 2010 11:49 AM

6 REPLIES 6

Former Member
0 Kudos
161

Hi Jhings,

Have you used LINE-COUNT at the top of the program. ...


REPORT  zamit_test1  LINE-COUNT 40.

Regards,

Amitava

Former Member
0 Kudos
161

<<Copy-paste from SAP Help removed by moderator>>

Edited by: kishan P on Oct 7, 2010 11:47 AM

Former Member
0 Kudos
161

hi

Top of page and end of page are generally used to display headers and footers. For ex, some of want to display date, page no and customers list on every page, which they can have in top of page. While in end of page we will footers. For ex Continued in next page, next page no etc.. As said above use line count with report.

eg..

REPORT ZVN_EX1 NO STANDARD PAGE HEADING LINE-SIZE 140 LINE-COUNT 60(3)." reserve 3 lines for footer

Now when you put that line count 60, it will have 60 lines per page with a length of 140. 3 in parenthesis will reserve 3 line for the footer. so whatever you have coded in that three lines will be reserved for the footer.

for ex :

END-OF-PAGE.

NPAGE = SY-PAGNO + 1.

Hope this information helps you.

Regards

Vinodh

former_member195402
Active Contributor
0 Kudos
161

Hi Jhings,

END-OF-PAGE will only be processed, if your 1st page is full or you force a NEW-PAGE.

If you have only one page for output, then you will never reach END-OF-PAGE without forcing a new page.

This is also the same for the last page.

Klaus

former_member182040
Active Contributor
0 Kudos
161

Example of START-OF-PAGE


REPORT  zdemo_test LINE-COUNT 58  LINE-SIZE 170 NO STANDARD PAGE HEADING.

TOP-OF-PAGE.
  WRITE: /(30) 'abc (I) Ltd. '.
  SKIP.
  WRITE:/(30) 'Status Report',
         (15) 'Created as on :',
         (17)  sy-datum.

          WRITE: / sy-uline(255).


START-OF-SELECTION.
WRITE / sy-index.

Former Member
0 Kudos
161

Hi,

Use the line count keyword with report statement. it will work fine.

just press F1 on report statement and check.

you will get all the details and will help you get a beter understanding.

regards,

Sakshi