Show TOC Start of Content Area

Background documentation Arranging Multiple Windows in a Component  Locate the document in its SAP Library structure

Why would a component need multiple windows?

Different Client Devices

A good example of where a Web Dynpro component would need multiple windows is where a single business application needs to be accessible on variety of client devices. For example, a particular application needs to be written that can be executed from both desktop based browsers and handheld devices.

In order to avoid having to write the same business logic twice, you can write a single Web Dynpro component but within it, you define two sets of views:

      The first set of views has been laid out with a desktop browser in mind, i.e. there will be a lower number of views because a larger quantity of data can be presented on each view.

      The second set of views however, is laid out with a handheld device in mind, i.e. the restricted space on the handheld device will mean that more views will be needed in order to present the same quantity of information.

The two sets of views are then grouped together into different windows; one for the desktop based browser, and the other for the handheld device. Couple this design together with the principle that view controllers are not responsible for generating the data they display, and you should quickly be able to see that all the business logic need only be written once and placed within the component controller and custom controllers. The view controllers then simply display (consume) the data supplied to them by the non-visual controllers.

The last step is to define two different Web Dynpro applications. Both applications will use the same Web Dynpro component, but since two windows have been defined, there will be two Interface view controllers – one for each window. These interface view controllers are then used to define the visual interface of each application.

Use of Popup Windows

A second example for a component with more than one window is the use of popup windows. A popup window will always be implemented by a separate window which may be defined in the same component, but processed as an independent window.

End of Content Area