Show TOC Start of Content Area

Procedure documentation Importing Data Objects  Locate the document in its SAP Library structure

Use

You use this procedure to import a data object as a model in the Mobile Project. You can then use these model classes for context binding in the project.

Prerequisites

·        Data objects exist in the Data Orchestration Engine (DOE).

·        You have specified the DOE preferences in the Preferences page.

More information: Configuring the Development Workstation

Procedure

...

       1.      In the Laptop UI explorer, click the Models node with the secondary mouse button and choose Create Model.

       2.      Select Data Object Model and then choose Next.

       3.      Enter details as specified in the table below:

Field name

Description

User action and values

Model Name

The name of the new data object model

Use only letters from the Latin alphabet without diacritical marks, digits 0 – 9, and an underscore in a model name.

Model Package

The Java package in which the IDE creates the model classes

 

Enter the name of the model package. To select an existing package, choose Browse.

Note

A project can contain any number of models.

Model Type

Identification of the data object model as:

·        A Business Model in which you import data objects

·        An Empty Model in which you use an existing business model as a used model, and define queries and composites, as required

Note

To create an empty model, select Empty Model and then choose Finish.

To create a business model, select Business Model and then continue with step 4.

 

       4.      Choose Next.

The next wizard window appears displaying all Software Component Versions (SCVs) in the Mobile Middleware.

       5.      In the Software Component section, select the required SCV.

The IDE displays all data objects in the SCV that you selected.

       6.      In the data object section, select the required data objects.

Note

When you import the data objects as a data object model, the IDE maps the entity names in their original ABAP format, as shown below:

<data object NAME>$<NODE NAME>

If the entity name contains the underscore character, the IDE retains it. For example, data object_NAME$data object_CHILD_NODE.

       7.      Choose Finish.

Result

The IDE creates the:

·        Data object model and the model classes with their properties, and displays them in the Laptop UI Explorer

Note

If you chose to create an Empty Model, the IDE creates an empty model.

·        Simple types used in the data object model under the Dictionaries node of the project.

You can now:

·        Use the model classes in the data object model for context binding in the project

·        Define query and composite classes for the model that you created

·        Use the model that you created as a Used Model in another model

Note

·         To use an existing model as a used model, click the Used Model node with the secondary mouse button and choose Add, and then select the required models.

·         To delete a model, click the model node with the secondary mouse button and choose Delete. However, when you delete the model, the IDE retains the dictionary simple types. You must delete them manually.

End of Content Area