Skip to Content
0
Former Member
Apr 11, 2012 at 06:15 PM

Print from web dynpro view

65 Views

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( ).