Skip to Content

Modal Dialog Box & Webdynpro

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Sep 03, 2014 at 07:18 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 03, 2014 at 07:28 AM

    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

    Add comment
    10|10000 characters needed characters exceeded