2010 Oct 07 5:05 AM
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
2010 Oct 07 5:12 AM
Hi Jhings,
Have you used LINE-COUNT at the top of the program. ...
REPORT zamit_test1 LINE-COUNT 40.
Regards,
Amitava
2010 Oct 07 5:17 AM
<<Copy-paste from SAP Help removed by moderator>>
Edited by: kishan P on Oct 7, 2010 11:47 AM
2010 Oct 07 5:31 AM
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
2010 Oct 07 5:52 AM
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
2010 Oct 07 6:45 AM
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.
2010 Oct 07 7:14 AM
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