Show TOC Start of Content Area

Procedure documentation Importing Enterprise JavaBean (EJB) Models  Locate the document in its SAP Library structure

You use this procedure to import EJB models using the model import wizard in Web Dynpro. The model import wizard is very intuitive and has features such as, auto-resolving of conflicting model class names, resolving unresolved model class relations, and differentiates between overloaded methods.

More information: Enterprise JavaBean (EJB) Model

Prerequisites

·        You have created an EJB development component.

For more information, see Creating an EJB Development Component (DC)

      You have defined the business logic.  

For more information, see Developing the Business Logic

      You have created an Enterprise Application development component.

For more information, see Creating an Enterprise Application DC

      You have prepared DC’s for Use by Other Components.

 For more information, see Preparing DC's for Use by Other Components

       Specifying Permissions in the EJB DC

       Creating the Public Part in the Enterprise Application DC

      You have set up a Web Dynpro DC Project.

For more information, see Setting Up the Web Dynpro Development Component (DC)

       Creating a Web Dynpro DC

       Specifying Dependences

       Defining the Basic Project Structure

      You have created a Web Dynpro application.

For more information, see Creating Applications

 

Procedure

...

       1.      In the Web Dynpro Explorer, choose Create Models from the Model Node.

       2.      Select the Enterprise JavaBean Model type from the list of available model types.

A wizard to import an Enterprise JavaBean model appears.

       3.      Proivde a Model Name, Package Details and Enterprise Application DC details and click Next.

       4.      Select the required methods from the Enterprise JavaBean interfaces and click Next.

       5.      View the model classes genereated for the required methods and click Next.

       6.      Click Finish.

NoteNOTE

The wizard auto-resolves any name conflicts (if present) between model classes. Model classes with any unresolved relations appear with error markers. You will have to manually resolve the unresolved relations by selecting a valid target model class. To assign a valid target model class, chose the error marked model class and select the required option from the Solve Relation dropdown list box.

 

 

End of Content Area