14.01.2020 Views

ABAP_to_the_Future

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Building the WDA Application 12.2

12.2.5 Defining the Windows

As George Formby would sing, “You should see what I can see when I’m defining

windows!” Both of our windows are going to have two containers, each with a

view inside of it. On the main screen, you’ll show the selection options, and then

the main ALV grid. On the single monster record display, you’ll show the header

record, and then a grid of monster items.You set up the two containers when creating

the V_HEADER_GRID and V_DISPLAY_MONSTER views earlier, but they’re empty

at the moment.

Navigate to the W_MONSTER_MONITOR window, choose the Window tab, choose the

SELECT_OPTIONS node of the V_HEADER_GRID, right-click, and choose Embed View.

Figure 12.18 shows the popup box that appears when you want to embed a view.

All the fields are grayed out, so you have to choose the view you want via the (F4)

help. This gives you a list of all the views you have defined thus far and a load of

entries that are a result of the two ALV components you declared earlier. Just to

be wild and daring, choose the SELECT_OPTIONS view for the SELECT_OPTIONS container.

Figure 12.18 Embedding a View inside a Window

531

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!