Register Login

ALV and Print Interview Questions and Answers

Updated May 18, 2018

FAQ ALV and Print 

[1] Why does the print output of the ALV list not correspond to the display?
[2] Why is the selection cover sheet not displayed, even though it was selected and vice versa?
[3] How can I suppress the ALV statistics during printing? How can the parameter ALV selections and ALV statistics in the background be affected?
[4] How can I specify page numbers in the print output?
[5] How can long lists be structured more clearly?
[6] Can I specify a particular layout in the background, using filter criteria, for example?
[7] Why are not all fields of the ALV list displayed in the print list or during the download?
[8] Why are the summation levels not transferred when I print an ALV grid?



[1] Why does the print output of the ALV list not correspond to the display?

Answer: When you use the ALV grid control, the column width is always optimized in the print and in the background, since this is the only way to ensure that the contents of the columns are completely displayed. Different headings of the columns can therefore also appear as a result. For more information, see Note 378370. If you also want to obtain a very specific column width in the print, this is only possible with the Grid Control using the print preview and by manually setting the column width. In the background it is not possible to influence this. If the print output occurs from the ALV Fullscreen Grid, you can influence the column optimization during printing and in the background using the parameter NO_COLWOPT of the importing parameter I_GRID_SETTINGS. However, this only works from Release 4.6C and is set by the application.

In the ALV grid control print or print preview, cells that have identical content are not merged.  This is necessary in order to be able to distinguish between blank cells and cells that only become blank after merging.  The standard behaviour for the different ALV lists is described in Note 447055.

[2] Why is the selection cover sheet not displayed, even though it was selected and vice versa?
How can I suppress the ALV statistics during printing?

Answer: The system uses the parameter get_selinfos of the layout structure and the parameter no_print_selinfos of the print structure to control whether the selections are available to the ALV and whether printing is possible. The option 'ALV Statistics' is controlled by the parameter no_print_listinfos of the print structure. These specifications are transferred during the call of the ALV by the application. For example, if it was determined here that no selections are transferred, no selection cover sheet can be issued. If printing is accessed using the system function 'System -> List -> Print', then the ALV has no influence on the output of the cover sheet and the ALV statistics. If you choose the path 'List -> Print', the output of the selection cover sheet and the ALV statistics can be controlled (if provided for by the application). No selection information is displayed in the grid and in the fullscreen.  No statistics are issued in the grid. Further information is also provided in Notes 403057 and 544903.


[3] How can the parameter ALV selections and ALV statistics in the background be affected?

Answer: If a report is executed in the background, the options are not offered within the print dialog since at that moment it is not known whether it is a normal list display or an ALV list. Here the options can be saved as user-specific print parameters for the relevant report. These are then also used in the background.


[4] How can I specify page numbers in the print output?

Answer: The page numbers can be specified in an ALV list using END_OF_PAGE at the end of a page.

[5] How can long lists be structured more clearly?

Answer: It is easier to distinguish between the lines both in the display and in the print output if you give the lists a striped background.The pattern is copied during printing.

[6] Can I specify a particular layout in the background, using filter criteria, for example?

Answer: You can only specify the predefined (default) layout. Whether or not you can save a default layout depends on the particular application.

[7] Why are not all fields of the ALV list displayed in the print list or during the download?

Answer: The simple list display of the ALV (ALV classic) can only display 99 fields (columns).  Since the ALV classic is the basis for printing and download, only 99 columns are available here as well. The ALV Grid Control can display more than 99 columns.

[8] Why are the summation levels not transferred when I print an ALV grid?

Answer: If data is displayed with a subtotal drilldown in an ALV grid and if at least one of the subtotals is expanded and, as a result, the highest subtotal drilldown used is partially displayed as are the subtotals of lower levels or the data records (drilldown level 0) themselves, this lowest drilldown level is transferred for all other subtotal summation levels when you print.
This expansion occurs during printing and in the print preview of an ALV fullscreen grid and of an ALV grid because only one value for the subtotal summation levels can be transferred to the ALV list.  A blend of different drilldown levels cannot be transferred.
On an ALV list, the data is issued directly from the list and transferring the subtotal criteria is no longer necessary.  This means that, in a list, you can print subtotals that are expanded differently.


Comments

  • 10 Dec 2009 8:53 am Guest
    please elobrate the answers, they seems to be tough to understand.

×