End of page Routine

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.   The other problems is at the last page.  If the line count did not hit the specify number, the last page will not be printed.  To overcome this, you have to let the program make a full count for the total number of print lines using the skip command.

report zxxx line-size 190 no standard page heading
           line-count 060(004).    "indicate 4 lines for end-of-page

data: tline like sy-linno.

start-of-selection.
     ..............................
end-of-selection.

tline = 60 - sy-linno.
skip tline.

end-of-page.
    write: / ..........................

More Function Module
Functions / SAP Script / ALV

Tables
Database Table

ABAP Books List
ABAP/4 Certification, Programming, Smartforms, Sapscripts and Object Oriented Programming Books

Smart Forms
SAP Smartforms

ABAP Menu:
ABAP Example Hints and Tips

Return to Index:-
SAP ABAP/4 Programming, Basis Administration, Configuration Hints and Tips

(c) www.gotothings.com All material on this site is Copyright.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
All product names are trademarks of their respective companies.  The site www.gotothings.com is in no way affiliated with SAP AG.
Any unauthorised copying or mirroring is prohibited.