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

output has to print from the executable program

Former Member
0 Likes
637

Hi All,

I have 'zaap01' executable program. once provided the materil,plant, batch. the out put directly has to print(Via Printer) as well as when I'm getting alv grid.. can u help me how to proceed.

Thanks,

srii.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
519

Hi Sridhar

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

Regards.

Eshwar.

3 REPLIES 3
Read only

Former Member
0 Likes
519

hi,

check the link,

http://help.sap.com/saphelp_45b/helpdata/en/d9/4a99d051ea11d189570000e829fbbd/content.htm

Hope it will solve your problem.

Regards,

Anirban

Read only

Former Member
0 Likes
519

hi,

create a button on application tool bar.

now as you give the input to selection-screen ,after executing the program .......write a code in which write the code for caling the form as soon as you click on the button ......

Read only

Former Member
0 Likes
520

Hi Sridhar

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

Regards.

Eshwar.