Show TOC Start of Content Area

Procedure documentation Binding Context to the Model  Locate the document in its SAP Library structure

Each WD component is supplied with a corresponding component controller. This controller is responsible for retrieving the data required by for example a Web service to send the execute the application. Accordingly, it is necessary that the corresponding input and the output structures of the e-mail model are mapped. To do this, you bind the context of the component controller with the created WD model. You implement the model binding between the controller context and the WD model with the graphical Data Modeler, available as one of the WD tools.

Prerequisites

      Web Dynpro Component has been defined in Web Dynpro Explorer.

      Web Dynpro Model is available.

The structure of your project WebDynpro_EmailWS is currently displayed in the Web Dynpro Explorer.

Procedure

       1.      Open the Data Modeler tool on the corresponding component node in the Web Dynpro Explorer view.

       2.      In the left toolbar, choose the data link creation option.

       3.      Start with rectangle Component Controller and left-click. Do this without releasing the mouse button.

       4.      Draw a line to the Model rectangle and release the primary mouse button.

       5.      In the model binding wizard, drag the corresponding model class nodes to the root node of the component controller context, and drop them.

       6.      In the subsequent dialog, select context elements then.

       7.      On the left side, mark the model node, and enter the new name for the model node which is bound to the model class of the same name by editing the appropriate entry in the Name column. The declared model binding between the model node and the corresponding model class is displayed graphically then.

End of Content Area