Skip to Content
0
Former Member
Jun 23, 2006 at 02:06 PM

Custom Web Printing with context menu opens a blank window

16 Views

Hello experts,

I imported the all the necessary package and classes based on "How to ......enhance web printing". And also modified the web template code accordingly.

Package

Z_PRINT_HELP_SERVICE

Classes

Z_PRINT_HELP_SERVICE

Z_PRINT_HELP_SERVICE_IMP

Z_PRINT_HELP_SERVICE_ALL_DP

Includes

Z_PRINT_HTML_TEMPLATE

Z_PRINT_HTML_TEMPLATE_IMP

Code changes

<param name="SUPPRESS_SYSTEM_MESSAGES" value="X"/>

<param name="SUPPRESS_WARNINGS" value="X"/>

<param name="CMENU_LABEL" value="Print"/>

<param name="CMENU_FUNCTION" value="callPrintHelpService"/>

<script language=javascript>

function callPrintHelpService(parameter, cell_type, filter, parameter1, parameter2, item, dataprovider, x, y) {

var url = SAP_BW_URL_Get();

url = url + "&CMD=PROCESS_HELP_WINDOW&HELP_SERVICE=ZPRINTING&ITEM=TABLE_1";

if( dataprovider == "DATAPROVIDER_1") window.open(url, "Print", "width=800, height=600, menubar=yes, toolbar=no, scrollbars=yes, resizable=yes"); }

</script>

<param name="HELP_SERVICE" value="ZPRINTING"/>

<param name="HELP_SERVICE_CLASS" value="Z_PRINT_HELP_SERVICE"/>

When I select Print option from the context menu, it opening blank window.

Can you please let me know what am I missing here?

Thanks a lot!

Sri