Show TOC Start of Content Area

Function documentation Displaying Page Headers and Footers  Locate the document in its SAP Library structure

Use

If you have compiled a design object you are able to display it in various places in your ALV output:

·        Before or after ALV Output

·        In ALV outputs with multiple pages at the beginning or end of each page (page header– or footer)

This chapter deals with the latter design object.

Note

The information on page header and footer is only displayed in the output or the print preview of your ALV output.

Display type

ALV Tool

Classic ABAP list

Full screen

In the Container

Simple, two-dimensional table

Yes

Yes

Yes

Hierarchical-sequential list

Only TOP_OF_PAGE

 

 

Tree structure

 

No

No

Note

In contrast to the design object above or below the entire ALV output (TOP_OF_LIST and END_OF_LIST), the page headers and footers are events: If ALV determines that there is a page break when generating the printout, the END_OF_PAGE or TOP_OF_PAGE event is triggered. ALV checks whether a design object is defined for this event and inserts at the correct position.

Features

·        Both in the TOP_OF_PAGE and in the END_OF_PAGE events, you are able to determine the actual number of pages using the PAGE parameter.

·        In the TOP_OF_PAGE event, you are also able to use the TABLE_INDEX parameter to get the table index of the entry. The table index is displayed on the current page.

·        In order to be able to display the desired design object in the END_OF_PAGE event, you have to expressly reserve the required number of lines. To do this, use the method SET_RESERVE_LINES in the CL_SALV_PRINT class. With the SET_RESERVE_LINES method you determine how many lines are served.

 

End of Content Area