Show TOC Start of Content Area

Procedure documentation Importing JavaBean Models for DC Projects  Locate the document in its SAP Library structure

Use

The JavaBean model is available for local Web Dynpro projects as well as for the development component (DC) projects centrally versioned in the Design Time Repository (DTR). When this model type is used in a Web Dynpro DC project, the infrastructural public part usage definitions are also taken into account after the bean import.

Prerequisites

       1.      Create a Java Development component (Java DC).

More information: Creating Development Components

       2.      Make the JavaBean model implementation of the Java DC available. To do this, switch to the Package Explorer view and choose the context menu entry Import on the node <myProject> src/packages. In the next step, you can get the JavaBean model from the file system by choosing the path to the packages directory of the JavaBean in the wizard.

       3.      Define a public part for the model implementation and then assign all model implementation classes of the Java DC to this public part. Carry out both steps as described under Creating and Locally Building a Java DC (link above).

       4.      Carry out the build for the Java DC.

More information: Working with the Build Environment

       5.      Now create a Web Dynpro project to be versioned centrally.

More information: Creating a Web Dynpro DC Project

       6.      Add the public part, which is made available by the Java DC; to the Web Dynpro DC as a DC use. The component use is also a central part of the Java Development Infrastructure (JDI).

Procedure

...

       1.      Go to the Web Dynpro DC project in the Web Dynpro Explorer view, and choose context menu entry Create Model on the Models node in the Web Dynpro Explorer view.

       2.      Choose model option Import JavaBean Model.

       3.      Provide the needed data. Select option project(including associated projects) to specify the JavaBean source.

       4.      Add the JavaBeans to be imported.

       5.      Dissolve the model relations, if necessary.

End of Content Area