Show TOC

Making Settings for PrintingLocate this document in the navigation structure

Use

Users can print the ALV output on a printer or they can view the printout on the screen. You are able to change the look of these printouts by making various settings in the list-type ALV outputs using the ALV object model.

For all of the following functions, this is valid:

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

Note

Of course the user is also able to print a tree structure. However, you cannot make settings for the printout here with the ALV object model.

No matter which display type you use to display the ALV output on the screen: in the printout, the ALV output is converted to the classic ABAP list (or to a list in the style of the ABAP list) and is printed in this form.

Features

You can make the following settings for the printout of the ALV output:

Output Additional Information

In addition to the actual ALV output you are able to output two areas in the printout:

  • List information Information as to which filter and which sort are being applied to the ALV output and as to how many data records the ALV output is restricted.

  • Selection information Information as to which application-specific selection criteria the user used to call the ALV output (for example company code or material number)

If you activate one or both pieces of additional information, the corresponding information blocks are printed before the ALV output.

You are able to determine whether a page break should be inserted after these information blocks, thus causing the additional information to appear on a separate page as a cover sheet, or whether the ALV output should be added directly after the additional information.

Function

Class

Method

Output of list information

CL_SALV_PRINT

SET_LISTINFO_ON

Check whether list information are being output

IS_LISTINFO_ON

Output selection information

SET_SELECTIONINFO_ON

Check whether selection information is being output

IS_SELECTIONINFO_ON

Output additional information on a separate page

SET_COVERPAGE_ON

Check whether additional information is being printed on a separate page

IS_COVERPAGE_ON

Output standard title of the program

The standard title of the program comprises the current date, the title of the ALV output and the page number. You are able to show the standard title.

Function

Class

Method

Output standard title of the program

CL_SALV_PRINT

SET_REPORT_ STANDARD_HEADER_ON

Determine that the ALV Be Called in Print Mode

You are able to print the ALV output directly without having to first display it on the screen.

Function

Class

Method

Print ALV output directly

CL_SALV_PRINT

SET_PRINT_ONLY

Check whether ALV output is being printed directly

IS_PRINT_ONLY

Take actual list size into consideration during printing

You can determine via the application how wide the list should be in the output. If the width of the ALV output has changed (for example, because the user has displayed columns), it can be the case that the space on the page is insufficient to output all the information. You are able to set that ALV determine the current size before printing and then changes the print parameters accordingly.

Function

Class

Method

Take actual list size into consideration during printing

CL_SALV_PRINT

SET_PRINT_PARAMETERS_ ENABLED

Check whether the list size can be adapted

IS_PRINT_PARAMETERS_ ENABLED