The Web Dynpro tools contain various functions for working with model classes after a Web Dynpro model import. The operations that can be performed depend on the model type. Each model type has its own set of operations. You can make changes to the properties of a model as follows:
● Edit the interfaces, methods, relations and properties of a model class.
● Subsequently define additional model classes that do not exist in the import source
● Define interfaces, methods, relations, and properties that are required for the application
● Create and delete model classes
You have imported a Web Dynpro model for the Web Dynpro project.
To make changes to, for example, interfaces, methods, relations, or properties of a model class, proceed as follows:
Platzieren ...
1. The classes are listed in Web Dynpro Explorer view, below the node hierarchy Models → <myModel> → Model Classes. Place the cursor on the model class you wish to change and choose the context menu entry Edit.
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 Functions |
Overview |
● Select superclass (optional) ● View interfaces of model class (optional) ● Create interfaces (optional) |
Properties |
● Display properties of model class, taking the superclass into account ● Edit non-inherited properties ●
Copy properties within the class
with change option for type ● Create additional properties not contained in the import source |
Methods
|
●
Display methods of model class,
taking the superclass ● Edit non-inherited methods ●
Copy methods within the class with
change option for ● Parameter definition with change option for type ● Create additional methods not contained in the import source |
Relations |
● Display relations of class, taking the superclass into account ● Edit non-inherited relations ●
Change relation properties ● Create additional relations |
3. In Web Dynpro Explorer view, you could call other functions via context menu for the model class. E.g., a wizard is available to help you rename a model class while simultaneously assigning it to a package.
4. To delete a class, choose context menu entry Delete.
5. If you would like to create a new model class, select the Model Classes node in Web Dynpro Explorer and choose the corresponding context menu entry.
6. Save all changes by choosing Save All Metadata.