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.

13

SAPUI5

email address or a telephone number, and some applications care about geocoordinates.

Because you have no idea what types of things may end up accessing this

data, you’re writing in letters of fire 1,000 miles high that something is a telephone

number—so that any application that does something with telephone

numbers is in no doubt about what field to look at.

Linking Header and Item via an Association

Next, you need to say that the items are related to the header, rather like defining

a foreign key relationship in a DDIC table. Right-click the Data Model node, and

choose Create 폷 Association.

The screen shown in Figure 13.8 appears. Here, choose what to link together

(header to items in this case), and fill in the Cardinality fields to say that one

header record needs at least one item record but can have many.

Figure 13.8 Creating an Association: 1 of 3

When you’re done, click the green checkm ark. The screen shown in Figure 13.9

appears. Here, link the key fields together (i.e., both Monster_Header and Monster_Item

have the same key field, MonsterNumber, and that’s how you can tell

which items relate to which header record).

Figure 13.9 Creating an Association: 2 of 3

572

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

Saved successfully!

Ooh no, something went wrong!