TOP-OF-PAGE is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details.
TOP-OF-PAGE
Basic form
TOP-OF-PAGE.
Addition
... DURING LINE-SELECTION
Effect
TOP-OF-PAGE is a list processing event which is executed before the the first data is output on a new page.
Notes
Without
the addition ... DURING LINE-SELECTION , TOP-OF-PAGE is processed only
when generating basic lists, not when creating secondary lists.
TOP-OF-PAGE
allows you to define output which supplements the standard page header
at the beginning of the page or. Alternatively, if the standard page
header is suppressed (with (REPORT ... NO STANDARD PAGE HEADING. ), it
allows you to design your own page header.
TOP-OF-PAGE is only executed before outputting the first line on a new page. It is not triggered by a NEW-PAGE statement
Example
PROGRAM DOCUEXAM NO STANDARD PAGE HEADING.
START-OF-SELECTION.
WRITE: / 'line 1'.
WRITE: / 'line 2'.
WRITE: / 'line 3'.
TOP-OF-PAGE.
WRITE: / 'Heading'.
ULINE.
This program produces the following output:
Heading
-------------------------------
line 1
line 2
line 3
Addition
... DURING LINE-SELECTION
Effect
Ensures that TOP-OF-PAGE is executed when generating secondary lists. (AT LINE-SELECTION , AT USER-COMMAND ).
Note
The
event TOP-OF-PAGE DURING LINE-SELECTION. is executed when generating
each secondary list. If you want to generate different page headers for
different secondary lists, you must specify this in the program (e.g.
by using status variables).
Related 10 ABAP Syntax Tutorials
Most readed SAP Tutorials
- WRITE - Output to a list ( SAP ABAP Keyword)
WRITE ( Output to a list ) is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details. - List of SAP HR TABLES and Infotypes tables
Detailed full list of tables and infotypes used in SAP HR module. - List of SAP MM Transaction codes
This documentation covers the details of SAP MM Transaction codes - SELECT-OPTIONS ( SAP ABAP Keyword)
SELECT-OPTIONS is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details. - FI Accounts Receivable and Accounts Payable | SAP FI PDF manual
The following topics are an introduction to the Accounts Receivable and Accounts Payable application components. - SELECT clause ( SAP ABAP Keyword)
SELECT clause is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details. - SAP MM Process Flow
The typical procurement cycle for a service or material consists of the following phases:
Latest Added SAP documents
- 9KE9 Transaction code
Details about SAP transaction code 9KE9 - 9KE8 Transaction code
Details about SAP transaction code 9KE8 - 9KE7 Transaction code
Details about SAP transaction code 9KE7 - 9KE6 Transaction code
Details about SAP transaction code 9KE6 - 9KE5 Transaction code
Details about SAP transaction code 9KE5 - 9KE4 Transaction code
Details about SAP transaction code 9KE4 - 9KE3 Transaction code
Details about SAP transaction code 9KE3 - 9KE2 Transaction code
Details about SAP transaction code 9KE2 - 9KE1 Transaction code
Details about SAP transaction code 9KE1 - 9KE0 Transaction code
Details about SAP transaction code 9KE0