Show TOC

Working with Dialog BoxesLocate this document in the navigation structure

Use

Dialog boxes are used to display concrete information or possible settings on a Web Dynpro view. After the dialog has been exited, either the view underneath becomes active again or you can navigate to another screen. There are two different types of dialog boxes:

  • Modal

    A modal dialog box opens in the current browser window.

    Each modal dialog box has its own phase model instance.

  • External

    An external dialog box is opened in a separate browser window and can be moved around the screen independently of the original window. External dialog boxes are generally modeless.

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

Calling a Dialog Box

Dialog boxes are implemented within a Web Dynpro application via an additional window and are generally called by the event handler of an action (if necessary, however, all other methods of the phase model can be used). The component controller contains the IF_WD_WINDOW_MANAGER interface with which a new window for the content of the dialog box can be created and opened. (During the creation process, a usage of the corresponding component controller is automatically set up for every view controller.) In most cases, you will use a modal dialog box in your application.

Caution

The MODAL parameter is no longer used.

Restrictions

Note that the integration of the following UI elements in Web Dynpro ABAP dialog boxes (popups) is not supported.

  • AcfExecute

  • AcfUpDownload

  • FlashIsland

  • All GAC* controls

    • GACDataSource

    • GACProperty

    • GACEvent

    • GACEventParameter

  • All active controls

    Active controls are all UI elements that inherit from AbstractActiveComponent:

    • Gantt

    • Network

    • OfficeControl

    • InteractiveForm

Example

Your system contains a package called SWDP_TEST with example components called DEMO_POPUPS_01 and DEMO_POPUPS_02.