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.

Backend Tasks: Creating the Model Using SAP Gateway 13.3

Figure 13.2 Installing SAPUI5 in Eclipse

13.3 Backend Tasks: Creating the Model Using SAP Gateway

Now, you’ll find out how to take an existing business object that lives inside SAP

(a monster, in this example) and enable it to be exposed for use in SAPUI5 applications.

There are two parts to this:

1. The configuration part, in which you define the data structures used in the

model that represents the business object and the relationships between them.

2. The coding part, in which you implement methods that will be used to create,

retrieve, update, and delete instances of your business object (monster) in the

SAP database.

13.3.1 Configuration

In this section, you’ll see how to use SAP Gateway to set things up such that when

a URL request is made from a web browse r or from a desktop or mobile device

for information that resides in our model in SAP that information gets sent back.

The steps are as follows:

1. Create a project, which will contain the details of your monster data model.

2. Create so-called entities, which descri be the data structure of the monster

header and the monster items.

567

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

Saved successfully!

Ooh no, something went wrong!