Skip to Content
avatar image
Former Member

Window Closing in Webdynpro ABAP

Hi,

I have a requirement in which I need to close the window on click of a button.

Is there any method which handles this?

Regards,

Pratibha.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    May 16, 2006 at 08:34 AM

    Pratibha,

    Also this is solution for WD Java I hope you'll find similarities:

    1. Save reference to IWDWindow returned with IWDWindowManager.open<>(...) method.

    2. In action handler just call on this saved reference IWDWindow.close() (or IWDWindow.destroy if you have no plans to show it latter).

    VS

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Pratibha,

      This task assumes client-side JavaScript and hence it is not possible with WD. Ok, it is impossible with stand-alone WD application. For application running as portal iView probably there are some options with portal eventing.

      VS

  • avatar image
    Former Member
    May 17, 2006 at 08:31 AM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 01, 2012 at 02:20 PM

    Hi ,

    Try this

    DATA lv_wc TYPE REF TO IF_WD_WINDOW_CONTROLLER.


    data lv_view TYPE REF TO IF_WD_VIEW_CONTROLLER.


    data lo_window  type ref to if_wd_window.


    lv_view = wd_this->wd_get_api( ).


      lv_wc = lv_view->GET_EMBEDDING_WINDOW_CTLR( ).

       lo_window =  lv_wc ->GET_WINDOW( ).

       lo_window->CLOSE( ).

    Regards,

    K. karthikeyan

    Add comment
    10|10000 characters needed characters exceeded