cancel
Showing results for 
Search instead for 
Did you mean: 

Web Report Print

Former Member
0 Kudos
166

Hi Guys,

I am trying to implement the Web Report printing using the white paper on "How to .... enhance Web printing". But when I add the HTML link to the code after including the objects in the "ITEM object" tag, I see a blank page. I mean the link does not take me to the help page where I can set the printing parameters as it should happen. Can some one suggest me if I am missing any step here?

Thanks,

Doniv

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Essential Step:

Did youcopy the two files provided with this paper in the system’s transport directory and use transaction SMTS to import them into your system?

The Package contains these objects:

Z_PRINT_HELP_SERVICE

Z_PRINT_HELP_SERVICE

Z_PRINT_HELP_SERVICE_IMP

Z_PRINT_HELP_SERVICE_ALL_DP

Z_PRINT_HTML_TEMPLATE

Z_PRINT_HELP_SERVICE.

It should not have a problem if these HELP files are properly imported. Let me know if you still continue problems.

Pete

Former Member
0 Kudos

Hi Pete,

The two files have been imported and I can see those objects in the transaction SE80. But the link that I have added to the HTML code still doesnt take me to the Print setup page like it should. It just displays a blank page with no error message either.

Thanks,

Doniv

former_member188975
Active Contributor
0 Kudos

Hi Doniv,

Did you also add the javascript function callPrintHelpService to the web template code?

Former Member
0 Kudos

HI Bhanu, I amnt sure about that. The changes that I did were in the HTML tab on the Web report which I have posted in the 2nd post here. Are there any additional changes that I need to make? Where do I add the function. Please let me know.

Thanks,

Doniv

former_member188975
Active Contributor
0 Kudos

Hi Doniv,

I did this a long time back...the javascript function is for the context menu entry. Try using this, not sure if it will make a difference, but you could try:

<A href="<SAP_BW_URL cmd="PROCESS_HELP_WINDOW" help_service="ZPRINTING" item="TABLE_1">">Print</A>

Hope this helps...

Former Member
0 Kudos

Doniv, This is what Bhanu is talking about. I guess. Let me know this might be an option.

In the header area of the template implement the JavaScript function that handles your customer defined menu entries.

-


Sample script----


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

Former Member
0 Kudos

Thanks Bhanu, you are the man. The "Item" was case sensitive. Having it in upper case did it for me. Thanks Pradeep for you help.

While we are at it, could you please also tell me if I could do something for the printout to take care when the width is more than a page.

Thanks,

Doniv

former_member188975
Active Contributor
0 Kudos

Hi Doniv,

For this you would need to make a couple of changes to the Z_PRINT_HTML_TEMPLATE file that you imported, and to some methods of the Z_PRINT_HELP class...even after that it is not straightfoward for the end user to use. I think there was an article in BW expert on the same.

Hope this helps...

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Guys, I am posting the code section where I modified the HTML code of the web report. Could some one please suggest me if there is something I am missing here for me to get the page to enable the web printing.

thanks,

Doniv

<BODY>

<P><object>

<param name="OWNER" value="SAP_BW"/>

<param name="CMD" value="GET_ITEM"/>

<param name="NAME" value="TABLE_1"/>

<param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>

<param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>

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

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

ITEM: TABLE_1

</object></P>

<A href="<SAP_BW_URL cmd="PROCESS_HELP_WINDOW" help_service="ZPRINTING" item="Table_1">">Print</A>

</BODY>