cancel
Showing results for 
Search instead for 
Did you mean: 

Modal Dialog Box & Webdynpro

former_member450029
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

former_member450029
Participant
0 Kudos

Hi Katrice Hawkins,

I am calling a Fm which pops up the below pop up.

When I call this it throws me a runtime error->Screen output without connection to server.

BR,

Eshwar

amy_king
Active Contributor
0 Kudos

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

former_member197475
Active Contributor
0 Kudos

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.