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.

Defining a Business Object 8.1

Figure 8.3 Header (Root) Node

In the Persistent Structure field, enter the name of the persistent structure,

which is a list of all fields that are going to be stored in the database for the header

record. You create this structure by double-clicking the structure name you have

entered, which takes you into SE11. For this example, start the list with MONSTER_

NUMBER. Traditionally, in a database table a human-readable field like this would

be your primary key, but in the BOBF wo rld the real primary key will be a 32-

character GUID.

The transient structure (a lso created by double-clicking the chosen structure

name and adding your chosen fields) is a list of the fields that are dynamically

determined at runtime: text names for organizational units, calculated fields, and

the like. In the past, you may have created DYNPRO screens and first added fields

from a table like VBAK (sales organiza tion, sales office, and the like) and then

manually added text fields, which you later manually fill up with your own code

so that humans can know what the values in the database fields mean. In the

BOBF world, you think about this in adva nce, before you even go near the UI

layer.

In Figure 8.4, you’re about to create the database table for the header record. As

you can see, you’re going to generate a structure for the combined structures

(persistent records and transient records) , a table type of this same combined

structure, and the database table for the persistent records all in one hit. These are

287

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

Saved successfully!

Ooh no, something went wrong!