cancel
Showing results for 
Search instead for 
Did you mean: 

Print ABAP-Reports

Former Member
0 Kudos

Hello,

I have displayed the list in the browser that an ABAP program generates. Now I have to print it out but it doesn´t work with SUBMIT TO SAP-SPOOL nor with NEW-PAGE and can´t find a function that helps.

The menu and buttons bar is off, so the Print-button disappears (I created a pushbutton for printing in my application).

Can anyone help me ?? Any suggestions ??

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You can use this Javascript Function on Print Pushbutton.

This will Print the window........

<SCRIPT LANGUAGE="JavaScript">

function PrintPage()

{

window.print();

}

</script>

athavanraja
Active Contributor
0 Kudos

<u><b>for client side printing</b></u>

you can use something like

<htmlb:image id = "PRNT"

tooltip = "Print Preview"

src = "ICON_PRINT"

onClientClick = "javascript:window.print();" />

<u><b>for server side printing</b></u>

<a href="/people/thomas.jung3/blog/2005/08/23/bsp-server-side-printing-for-tableviews">BSP: Server Side Printing for tableViews</a>

Regards

Raja

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi ,

Call the foll function modules from the OnInputProcessing of your BSP Page ..

CASE EVENT_ID.

WHEN 'select' .

                    1. PRINTER SETTINGS ##########*

W_OPT-TDDEST = 'LOCL'. "default to local printer

W_OPT-TDIMMED = 'X'. "print immediately

W_OPT-TDDELETE = ' '. "delete after print

W_OPT-TDNEWID = ' '. "new spool request

W_OPT-TDPRINTER = 'X' .

......

If u need to Print your BSP Page from a Windows printer

,just call Javascript Print method .

That's it .

Hope it helps .

Rgds,

J

Do Award pts if helpful.

If not revert back for further clarifications .