cancel
Showing results for 
Search instead for 
Did you mean: 

Print from web dynpro view

Former Member
0 Kudos

I am trying to use the example from link:

http://help.sap.com/saphelp_nw70ehp2/helpdata/en/f8/872806981d4411b5ce51a00207ed31/content.htm

to add a print button to a view and then when the user clicks on the button, the view will be printed.  However, the print_page method is missing from IF_WD_CONTEXT_NODE.  Can you provide sample code of printing the view from web dynpro using the sample in the link.  Thanks Jim B

Code:

  1. data:     l_api_componentcontroller type ref to if_wd_component, 
  2.    l_appl type ref to if_wd_application.
  3. l_api_componentcontroller = wd_comp_controller->wd_get_api( ).  
  4.   l_appl = l_api_componentcontroller->get_application( ). 
  5.    l_appl->print_page( ).

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Jim,

That method only exists in SAP Netweaver 7.0 EHP2 and above. I've created a workaround as documented in my article on the link below. But of course, you can modify it for a direct print function instead of a print preview one.

http://scn.sap.com/docs/DOC-24431

Cheers,

Sam

Answers (0)