
If you have compiled a design object you are able to display it in various places in your ALV output:
Before or after the ALV output as a list header or footer (Top of List, End of List)
In ALV outputs with multiple pages at the beginning or end of each page as a page header or footer (Top of Page, End of Page)
This section deals with the first of these types of design object.
Choosing the Output Medium
If you want to design the list header or footer, you need to decide on the output medium for which you want to use your design object.
For display on a screen (online)
On a printout (print)
Depending on which output medium you choose, the design object has a different appearance.
If you only insert a design object for display on the screen, it appears both on the screen and on the printout.
If you insert a design object for display on the screen and another one for the printout, one appears on the screen and the other appears on the printout.
If you only insert a design object for the printout, the design object only appears on the printout.
If Top of List Does Not Fit on One Page
As with all other design objects, the Top of List design object is limited to one page in length, which is predefined by the print format. You can however specify for the ALV output that Top of List can be longer than one page. This setting has the following effects:
On the screen output, the column titles of the ALV output are no longer frozen. When the user scrolls vertically, the column titles also roll with the list.
You can choose the order in which the design objects for Top of List and Top of Page are arranged.
|
Function |
Class |
Method |
|
Allow Top of List with more than maximum permitted number of lines |
CL_SALV_TABLE CL_SALV_HIERSEQ_TABLE |
SET_MODUS |
|
with the following constants: |
||
|
Sequencing: Top of List, Top of Page |
CL_SALV_FORM_CONTENT=> C_MODUS_EXCEED_TOL_TOP |
|
|
Sequencing: Top of Page, Top of List |
CL_SALV_FORM_CONTENT=> C_MODUS_EXCEED_TOP_TOL_EOP |
You must call method SET_MODUS in your application after you call method FACTORY .
Before you delete the instance of CL_SALV_TABLE or CL_SALV_HIERSEQ_TABLE or leave the program, reset method SET_MODUS back to C_MODUS_STANDARD.
What Goes Where?
You are not able to insert all variants of the design object in every ALV tool and in every display type. The following tables show which functions are possible in which environments:
Display on the screen, both above and below the ALV output
|
ALV Tool |
Display type |
Function available |
|
Simple, two-dimensional table |
Classic ABAP List |
Yes |
|
Fullscreen |
Yes |
|
|
In the Container |
No |
|
|
Hierarchical-sequential list |
Classic ABAP List |
Yes |
|
Tree Structure |
Fullscreen |
Yes |
|
In the Container |
No |
On the printout, both above and below the ALV output
|
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 |
Yes |
|
Tree Structure |
Fullscreen |
No |
|
In the Container |
No |
Methods
To display the design object on the screen or on the printout, use the following methods:
|
Function |
Class |
Method |
|
Before output, on screen |
CL_SALV_TABLE CL_SALV_HIERSEQ_TABLE CL_SALV_TREE |
SET_TOP_OF_LIST GET_TOP_OF_LIST |
|
After output, on screen |
SET_END_OF_LIST GET_END_OF_LIST |
|
|
Before output, on printout |
SET_TOP_OF_LIST_PRINT GET_TOP_OF_LIST_PRINT |
|
|
After output, on printout |
SET_END_OF_LIST_PRINT GET_END_OF_LIST_PRINT |