Show TOC

Procedure documentationUsing Web Dynpro Model Locate this document in the navigation structure

 

Web Dynpro models form an interface that allows Web Dynpro applications to access data sources.

A model is graphically represented by a cylindrical object with one or more than one circular nodes on either side. The nodes on the left are input nodes and called as a Request Model Class. It represents services that fetch data from data sources. The nodes on the right are output nodes and called as a Response Model Class. It represents service output.

A controller is created and associated with a model when you first create a link to the model. This controller takes care of the entire lifecycle of the model in the Execution Modeler.

The Execution Modeler provides the following approaches to work with a model:

  • Create and Use a New Web Dynpro Model

    Or

  • Use an Existing Web Dynpro Model

Procedure

Creating a New Web Dynpro Model

In this approach the Execution Modeler allows you to use data sources such as EJB, RFC or Web Services.

  1. In the Palette, from the Data Sources section, choose the required model type. The table below lists the different models with their respective descriptions:

    Create a model of type...

    If you want to...

    Adaptive Remote Function Call 2 (ARFC2). For more information, see Importing Adaptive Remote Function Call (RFC 2 ) Models

    Access the existing business functions from an R/3 system

    Adaptive Web Service (AWS). For more information, see Importing Adaptive Web Service Models

    Get data through a Web service

    Enterprise JavaBean (EJB). For more information, see Importing Enterprise JavaBeans (EJB) Models

    Use the business logic defined in Enterprise JavaBean (EJB)

  2. Click in the Execution Modeler to place the selected model type.

  3. Follow the steps in the new model wizard to complete the process.

Using an Existing Web Dynpro Model

You can use an existing Web Dynpro model by defining their usage in the Execution Modeler.

  1. In the Palette, from the Entities section, choose Model Usage.

  2. Click the Execution Modeler to place the selected model.

  3. In the Add Used Models window, select the required model.

  4. Choose OK.