Calling dialog boxes of same component

In this recipe, we will see how we can display a dialog box based on a view of the same component. We will create a MAIN view in the MAIN window and another view by the name POP_UP in a new window, WIND_POP_UP. We will then create a button on the MAIN view, which when clicked will display the POP_UP view as a dialog box.

How to do it...

We will now carry out the following steps:

  1. We will define a public attribute by the name MY_WINDOW to the IF_WD_WINDOW interface.
    How to do it...
  2. We will have a main view embedded within the MAIN window.
  3. In addition, we will create a POP_UP view embedded within a WIND_POP_UP window.
  4. On the MAIN

Get SAP ABAP Advanced Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.