Entering content frameProcedure documentation Changing Headers Locate the document in its SAP Library structure

On the Basic List Header screen, you can define the page header and the page footer for the pages of the basic list.

This graphic is explained in the accompanying text

This screen shows the general structure of the basic list. It contains the header line (page header), the line structure and the footer line (page footer). The header lines include fixed headers and column headers. Column headers are generated for lines for which you selected the column Header on the List Line Output Options screen.

Fixed Headers

Fixed header lines depend 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 which allow you 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 defining a header line or footer line, this means that you must specify a character string of the type &field, where field is the short name of a field.

This functionality allows you (for example) to place a sort criterion in the header line.

You can use the following fields directly as variables:

%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)

They can be used in the short forms N,D,T and P. If these letters also occur as short names for query fields, the field values from the query is used as a replacement.

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.

If you do not want column headers for a column, place the cursor on the relevant line in the Column header area or in the Line structure area and select Edit ® Column header ® Delete line. If you require column headers for a line of your query, place the cursor on the appropriate line in the Line structure area and select Edit ® Column header ® Insert line. Additionally, you can also specify column headers on the List Line Output Options screen.

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 header for each field is changed individually, the area for column headers is not ready for input on the maintenance screens. If you want to change a field header, place the cursor on the relevant field in the Column header area and select Edit ® Column header ® Maintain. You then see a screen where you can maintain the column header for the selected field.

This graphic is explained in the accompanying text

Note

Even with the column header for a field, you can substitute the value of another field using &field in the header. However, please note that the column header may be no wider than the output length of the field. If substitution of the field value results in this length being exceeded, the end of the value will be truncated.

In queries, fields may only have one header. This header is always used if a column header is to be provided in the query for this field.

Footer Lines

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.

Caution

For technical reasons, it is not possible to define a different number of footer lines in the different sublists. If you have defined four footer lines for a basic list and one footer line for a statistic, the statistic is output with five footer lines. The first line of the page footer is always an underscore.

Even within a footer line, you can access the values of fields from the query.

Note

Please note that, although the number of header lines in the page header and footer is unrestricted, the total number of these lines must be smaller than the number of lines per page. You can only check this partially in the query definition, since the number of lines per page may change at processing time (for example, when printing or when processing in the background). If this condition is violated at processing time, the program is terminated.

On the last screen in the sequence for defining a basic list, you can set the graphics parameters.

 

 

Leaving content frame