Show TOC

Background documentationIF_WD_WINDOW Locate this document in the navigation structure

 

Interface IF_WD_WINDOW enables a popup to be opened, closed, and edited.

Caution Caution

It is not yet possible to change the size or position of a dialog box in the program code.

The following methods therefore do not have any effect:

  • IF_WD_WINDOW~SET_WINDOW_POSITION

  • IF_WD_WINDOW~SET_WINDOW_POSITION_CONTROL

  • IF_WD_WINDOW~SET_WINDOW_SIZE

Aside from this, the following parameters of the IF_WD_WINDOW_MANAGER~CREATE_POPUP_TO_CONFIRM method also do not have any effect:

  • WINDOW_LEFT_POSITION

  • WINDOW_TOP_POSITION

  • WINDOW_POSITION

  • WINDOW_WIDTH

  • WINDOW_HEIGHT

End of the caution.
Methods
CLOSE

This method asynchronously closes the popup once the Phase Model Cycle of the window is completed.

OPEN

This method asynchronously opens the popup once the phase model cycle of the underlying window is completed.

SET_WINDOW_TITLE

This method sets the window title.

SET_ON_CLOSE_ACTION

This method registers the user action when Cancel is chosen.

SUBSCRIBE_TO_BUTTON_EVENT

This method registers the user action when a button is clicked.

UNSUBSCRIBE_FROM_BUTTON_EVENT

This method deregisters a user action.

SET_REMOVE_ON_CLOSE

This method removes the window after it has been closed.

SET_BUTTON_KIND

This method specifies the button combination.

SET_MESSAGE_TYPE

This method sets the message type.

SET_CLOSE_IN_ANY_CASE

This method closes the window automatically using the window button.

SET_BUTTON_ENABLED

Method that activates and deactivates buttons.

Syntax Syntax

  1. data: l_window type ref to if_wd_window.
    l_window->set_button_enabled( 
         button = <button>
        is_enabled = abap_false ).
End of the code.

<button> stands for a popup button defined by constants if_wd_window=>co_button.

More Information

Working with Dialog Boxes