Skip to Content
0
Former Member
May 11, 2004 at 09:47 AM

BW WEB printing - changing HELP_SERVICE_CLASS

16 Views

Hi,

I'm trying to use the print service implementation

from SAP for WEB printing. The solution that SAP

offers requires that you have assign one of the Service

Classes below to the DataProvider in order to specify

what service should be used.

- Z_PRINT_HELP_SERVICE (metric / in cm)

- Z_PRINT_HELP_SERVICE_IMP (in inches)

Now I am looking for a way how to dynamically change

the settings defined for the dataprovider. See code

below. I have enhanced the context menue and pass a

parameter to the JavaScript to indicate which setting

the user wants to use. Then the value of the parameter

should be changed dynamically.

Whenever I run this template and select on of the print

options I only get the print preview dialog generated

from Z_PRINT_HELP_SERVICE. So obviously the

HELP_SERVICE_CLASS does not change to the desired

Z_PRINT_HELP_SERVICE_IMP.

What am I doing wrong - any idea?

Thanks in advance

Bernd





function callPrintHelpService(parameter, cell_type, filter, parameter1, parameter2, item, dataprovider, x, y) {
var url = SAP_BW_URL_Get();
var print_service = "Z_PRINT_HELP_SERVICE"
if ( parameter == "inches") print_service = "Z_PRINT_HELP_SERVICE_IMP";
var cmd = url + "&DATA_PROVIDER=ASD_C04_Q0006_V01&HELP_SERVICE_CLASS=" + print_service;
SAP_BW_URL_Get(cmd);
var logo = "'&IMG:Mime/BEx/Icons/KODAK_corp.jpg&'";
url = url + "&CMD=PROCESS_HELP_WINDOW&HELP_SERVICE=ZPRINTING&DATA_PROVIDER=ASD_C04_Q0006_V01&P_HEADER_LEFT=";
url = url + logo ;
url = url + "&P_STYLESHEET=/sap/bw/mime/BEx/StyleSheets/BWReports_smallfont_print.css&P_PAGE_WIDTH=29&P_PAGE_HEIGHT=18&P_HEADER_CENTER=Restricted Information";
if( dataprovider == "ASD_C04_Q0006_V01") window.open(url, "Print", "width=800, height=600, menubar=yes, toolbar=no, scrollbars=yes, resizable=yes"); }
















TEMPLATE PROPERTIES




<! In die nächste Zeile den TAG einfügen >









DATA_PROVIDER: ASD_C04_Q0006_V01