14.01.2020 Views

ABAP_to_the_Future

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

12

Web Dynpro ABAP and Floorplan Manager

In the screen shown in Figu re 12.7, you only need tw o fields from the monster

header structure, so select them and you’re done. A SELECT_OPTIONS node

appears under the root context node. Now, you need to create the two tables that

are going to be used for ALV grid disp lays: one for a table of monster header

records and one for a table of monster items for a single monster. In both cases,

the procedure is the same. First, you go back to the root context node and do the

Create 폷 Node trick again, just as before.

Figure 12.7 Creaing a Selection Option Context: Part 2

Press the green checkmark to leave the sc reen shown in Figure 12.7. Next, you

need to create the two tables that are going to be used for ALV grid displays: one

for a table of monster header records an d one for a table of monster items for a

single monster. In both cases, the procedure is the same. First, you go back to the

root context node and do the Create 폷 Node trick again, just as before.

This next node will be called the MONSTER_HEADER_TABLE node. The only change

here is to change the Cardinality to be 0..N (i.e., there can be no records, lots of

records, or anything in between). Once again you click Add Attributes from

Structure—but this time, when adding the attributes from the ZSC_MONSTER_

HEADER structure, you select everything except the administrative fields. At this

point you have defined the two node structures for the overview screen: a structure

to hold the selection options and a structure to hold a table of selected monster

header records.

Now you move on to creating the node structures for the detail screen: a structure

to hold the header details of one selected monster, and a structure to hold a table

of the items (components) of the selected monster. First, create the node to hold

520

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

Saved successfully!

Ooh no, something went wrong!