Start of Content Area

Procedure documentation Editing Model Classes  Locate the document in its SAP Library structure

The Web Dynpro tools provide various functions for working with the model classes after a Web Dynpro model import. Possible operations depend on the type of the model to be processed. There is a set of operations available for the corresponding model type. You can make changes to the properties of a Web Dynpro model as follows:

Editing interfaces, methods, relations, and properties of a model class.

Subsequent definition of additional model classes that do not exist in the import source, interfaces, methods, relations, and properties that are required for the Web Dynpro application

Creating and deleting model classes

Prerequisites

You have imported a Web Dynpro model for the Web Dynpro project.

Creating Interfaces, Methods, Relations, and Properties

To make changes to the model classes, proceed as follows:

       1.      The classes are listed in the Web Dynpro Explorer view underneath the node hierarchy This graphic is explained in the accompanying textModels This graphic is explained in the accompanying text<myModel> This graphic is explained in the accompanying textModel Classes. Place the cursor on the model class you wish to change and choose the context menu entry This graphic is explained in the accompanying textEdit.

       2.      Four tab pages are displayed in the right-hand screen area. Activate one of these by clicking the tab page name. The following table displays the functions for each tab page:

Model Class
Tab Page

Tab Functions
(partially optional, depending on model type)

Overview

 

·        Select superclass (optional)

·        View interfaces of model class (optional)

·        Create interfaces (optional)

Properties

·        Display properties of model class while considering superclass

·        Edit non-inherited properties

·        Copy properties within the class with change option for type and read property

·        Create additional properties not contained in the import source

Methods

 

·        Display methods of model class while considering superclass

·        Edit non-inherited methods

·        Copy methods within the class with change option for return property and type

·        Parameter definition with change option for type

·        Create additional methods not contained in the import source

Relations

·        Display relations of class while considering superclass

·        Edit non-inherited relations

·        Change relation properties

(cardinality, navigation options, relation target)

·        Create additional relations

       3.      In the Web Dynpro Explorer view, you can call other functions through the context menu for the model class.

A wizard is available for renaming a model class and simultaneous allocation to a new package.

To delete a class, choose the context menu entry This graphic is explained in the accompanying textDelete for the model class to be deleted (underneath the node This graphic is explained in the accompanying textModel Classes).

       4.      Store all the changes by clicking This graphic is explained in the accompanying textSave All Metadata.

Creating a New Model Class

To create a new model class for the model, select the node This graphic is explained in the accompanying textModel Classes in the Web Dynpro Explorer view and choose the context menu entry This graphic is explained in the accompanying textCreate Model Class.

 

End of Content Area