Start of Content Area

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

The data flow definition between the Web Dynpro model and the processing Web Dynpro application entities is known as model binding. The data to be passed can be single objects or even entire structures or data records that exist in the data source.

Prerequisites

...

       1.      Before you can begin with the model binding, you must have created all the Web Dynpro entities that are to be involved in the current data flow scenario – that is, the Web Dynpro model and the used controller entity.

       2.      For the generically defined Web Dynpro model, you have defined a model usage for using the model the in the current application.

       3.      To map the model structures and data to the controller, you must first define the model nodes and model attributes, as described in Context Structure.

Procedure

...

       1.      Start the Controller/Context Editor on the controller entity.

       2.      Choose the context menu entry Edit Model Binding for the relevant model node and/or model attribute.

The dialog box then displays the data source for the model binding, including all structures and data or model classes and model properties.

       3.      Select the relevant model classes and/or relations and choose Next.

       4.      In the next wizard window, you can select the nodes and attributes. For the binding, you can rename these on the right side of the dialog box. If you select one or more attributes, this means that they will not be included in this model binding scenario.

       5.      Close the wizard by choosing Finish.

Result

The selected structures and/or data are displayed in the Controller/Context Editor as subnodes or values of the context tree.

Editing Model Binding at a Later Stage

You can change bound data and structures at a later stage by choosing Edit Model Binding from the context menu for the relevant node or attribute.

 

End of Content Area