Displaying Page Header and Footer
Use
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 |
|
Full Screen |
Yes |
|
|
In the Container |
Yes |
|
|
Hierarchical-sequential list |
Classic ABAP List |
Only TOP_OF_PAGE |
|
Tree structure |
Full Screen |
No |
|
In the Container |
No |
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 GET_RESERVE_LINES method you determine how many lines are served.