on 09-03-2014 5:26 AM
Hi All,
I have created a webdynpro component with a button. When user clicks on the button a pop up has to be popped up.
I am using a FM which calls this pop up and this is for selecting the local printer( Spool: Output device ).
When I use this I face a runtime error-> Screen output without connection to server.
How to overcome this.
Regards,
Eshwar
Hi Eshwar,
Check the below code which helps the user to select the o/p device for printing.
DATA lo_component TYPE REF TO if_wd_component.
DATA lo_appl TYPE REF TO if_wd_application.
DATA lo_app_info TYPE REF TO if_wd_rr_application .
DATA lv_app_name TYPE string .
lo_component = wd_comp_controller->wd_get_api( ).
lo_appl = lo_component->get_application( ).
lo_appl->print_page( ).
lo_app_info = lo_appl->get_application_info( ).
lv_app_name = lo_app_info->get_name( ).
Thanks
KH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Eshwar,
You cannot open a GUI dialog box from Web Dynpro, hence the error you're seeing. Take a look at the following document to see what options there are for opening a dialog box in Web Dynpro, or to open the print dialog try Katrice's suggestion of if_wd_application->print_page.
See also, Printing Web Dynpro ABAP Applications.
Cheers,
Amy
Hi Eshwar,
Please analyse over the ST22 dumps.
Also are you printing directly or going for a print preview???
And please do check Chris's reply from the below thread.
http://scn.sap.com/thread/1644311
BR,
RAM.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.