Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Print Report

Former Member
0 Likes
1,041

Hi All,

Would u please help me how to print the ALV Grid (Methods) Output

directly to the printer.

Regards,

Vandu.

Hi All,

Would u please help me how to print the ALV Grid (Methods) Output

directly to the printer.

Regards,

Vandu.

5 REPLIES 5
Read only

Former Member
0 Likes
789

Hi,

We have print option in ALV GRID Display by default there is no need to write any methods for that

Read only

0 Likes
789

Hi Sudeep,

But user don't want to select the print button in the grid.

Just they select the pushbutton like Print on the status bar.

Regards,

Vandu.

Read only

0 Likes
789

Hi Vandana,

Check the following programs for your reference,

BCALV_TEST_FULLSCREEN_PRINT

BCALV_TEST_GRID_PRINT

BCALV_TEST_LIST_PRINT

BCALV_TEST_LIST_PRINT2

Regards,

Sandeep

Read only

Former Member
0 Likes
789

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.

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

· Output additional information

· Output standard title of the program

· Determine that the ALV be called in print mode

· Take actual list size into consideration during printing

· Optimize Column Width in the Printout

· Reserve Rows for Event END_OF_PAGE

Methods

Function-Output of list information

Class-CL_SALV_PRINT

Method-SET_LISTINFO_ON

Function-Check whether list information are being output

Class-CL_SALV_PRINT

Method-IS_LISTINFO_ON

Function-Output selection information

Class-CL_SALV_PRINT

Method-SET_SELECTIONINFO_ON

Function-Check whether selection information is being output

Class-CL_SALV_PRINT

Method- IS_SELECTIONINFO_ON

Function-Output additional information on a separate page

Class-CL_SALV_PRINT

Method- SET_COVERPAGE_ON

Function-Check whether additional information is being printed on a separate page

Class-CL_SALV_PRINT

Method- 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.

Methods

Function-Output standard title of the program

Class- CL_SALV_PRINT

Method

- 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.

Methods

Function-Print ALV output directly

Class- CL_SALV_PRINT

Method- SET_PRINT_ONLY

Function-Check whether ALV output is being printed directly

Class- CL_SALV_PRINT

Method- IS_PRINT_ONLY

Take Actual List Size into Consideration During Printing

You can use the application to determine how wide the list should be in the printout. If the width of the ALV output has changed (for example because the user is showing columns), it can be that the page is not big enough to show all the information. You are able to set that ALV determine the current size before printing and then changes the print parameters accordingly.

Methods

Function

-Take actual list size into consideration during printing

Function

Class- CL_SALV_PRINT

Method- SET_PRINT_PARAMETERS_ENABLED

Function

-Check whether the list size can be adapted

Class- CL_SALV_PRINT

maethod-

IS_PRINT_PARAMETERS_

ENABLED

Thanks

Reward points if useful

Edited by: Richa Khosla on Jun 3, 2008 8:22 AM

Edited by: Richa Khosla on Jun 3, 2008 8:27 AM

Read only

Former Member
0 Likes
789

Solved