Headers and Footers
Use
On the Basic List Header screen, you define the page header and the page footer for the pages in the basic list.
This screen shows the general structure of the basic list.
-
Header lines (page header)
-
Line structure
-
Footer lines (page footer)
The header lines are divided into fixed headers and column headers. Column headers are generated for those lines, for which you selected the Header column on the List Line Output Options screen.
Prerequisites
You are in the Basic List series of screens and have created a new query or want to change an existing query.
Fixed headers (only for ABAP lists)
Fixed header lines are not dependent on the structure of the query. You can define any number of header lines.
On the maintenance screen, the header lines are ready for input and can accept any entries you make. The Edit menu contains functions that you use to insert or delete lines. Blank header lines are not output in the list.
You can define fixed header lines and footer lines so that when you generate the query list, they can receive current values of certain fields. When you define a header line or a footer line, you must specify a character string of the type & field, where field is the short name of a field.
This function allows you (for example) to place a sort criterion in the header line.
You can include the following fields as variables in the headers directly:
|
%NAME |
Name of the user processing the query |
|
%DATE |
Current date |
|
%TIME |
Current time |
|
%PAGE |
Current page number (6 characters) |
|
%P |
Current page number (3 characters) |
These fields can be used in the short forms N,D,T, and P. If you want to use these letters as short names for query fields, the field values from the query are used.
Column Headers
SAP Query proposes standard column headers for all lines. Here, the column header for one line of the basic list can consist of one or two lines, since the column header for a field can cover one or two lines.
Creating/deleting column headers
Proceed as follows to create or delete a column header:
-
Position the cursor over the corresponding line in the Column Header area or the Line Structure area of the list.
-
If you want to add headers to a line in your query, choose the function. If you do not want any column headers to be displayed, choose the function.
You maintain column headers field by field. If you do not want to use the header proposed by the InfoSet, you can define a query-specific header for each field.
The advantage of field by field maintenance is that column headers can always be updated automatically whenever the line structure changes.
The column header for one field can cover one or two lines.
Since the column headers are changed separately for each field, the area for the column headers is not ready for input on the maintenance screens.
Changing column headers
Proceed as follows to change a column header:
-
Position the cursor over the relevant field in the Column Header area.
-
Choose the function. The screen appears, in which you maintain the column header for the selected field.
In queries, fields can have only one header. This header is always used if a column header is to be provided in the query for this field.
Footer lines (only for ABAP lists)
The same rules apply for footer lines as for fixed header lines. These lines are ready for input and can be changed by making entries. You can insert and delete lines using the functions in the Edit menu. Blank lines are not output in the list.
Even within a footer line, you can access the values of fields from the query.
Activities
Continuing with the Flight Connections example, create the headers and footers as described above.
Use the
function to navigate to the Graphic Parameters screen. See Graphical Display.

