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.

Backend Tasks: Creating the Model Using SAP Gateway 13.3

Creating Entities for the Monster Header and Monster Items

As you know by now, your monster object has both a header structure and an

item structure. You’re going to declare both of these as entities, and then link

them together.

As always, there are lots of ways to do this. In this case, right-click the Data Model

node and choose Import 폷 DDIC Structure . While doing that, you’ll no doubt

notice the other options, most notably th e option to use a remote-enabled function

module or a BOR object. (A BOR ob ject from Transaction SWO1 is a bona

fide business object as far as I’m concerned, and the fact that this shows up in a

brand-spanking-new SAP technology means that the BOR is back from the dead,

despite SAP trying to unsuccessfully kill it off in 2004.)

Once you’ve created your monster projec t via the screen shown in Figure 13.3,

click the green checkmark; the screen shown in Figure 13.4 appears.

Figure 13.4 Creating a Monster Entity: 1 of 3

In Figure 13.4, you give your entity a name and pick a data structure. As always,

use the BOPF combined header structure. The name here will be used in URLs, so

sticking to the convention of lowercase ex cept the first letter is the way to go.

Click the green checkmark, and Figure 13.5 appears.

569

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

Saved successfully!

Ooh no, something went wrong!