
If you have compiled a design object you are able to display it in various places in your 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.
The following applies to the header and footer:
|
ALV Tool |
Display type |
Function available |
|
Simple, two-dimensional table |
Classic ABAP List |
Yes |
|
Fullscreen |
Yes |
|
|
In the Container |
Yes |
|
|
Hierarchical-sequential list |
Classic ABAP List |
Only TOP_OF_PAGE |
|
Tree Structure |
Fullscreen |
No |
|
In the Container |
No |
The information on the footer is only displayed in the output or the print preview of your ALV output. The information on the header is also displayed on the screen:
Hierarchical-sequential list
simple, two-dimensional table, display type classisc ABAP list
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.
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 GET_RESERVE_LINES method you determine how many lines are served.