
SAP Online Help 07.09.2004
SAP NetWeaver Visual Composer: User Guide 197
Example 2: Expanded Banks iView
Use
In this example, you expand the Banks iView created previously (see Quick Start – A Sample
Work Session [Page 21]) by adding a data service that will display the address of the bank
selected in the Bank List Table.
In this example, you will:
• Open an existing iView to modify it.
• Import a data service and map data between an existing output table and the input to
the data service.
• Define a form as the output view.
• Check the model for errors.
• Adjust the layout of the views.
• Preview the iView.
• Compile the iView.
Remember that as you build the iView, you should periodically save your model.
Procedure
...
1. Open the Banks model and open the Banks iView in the Design workspace.
2. Import an additional data service:
a. Connect to the appropriate portal (see Adding Data Services to Your Model
[Page
49]).
b. Open (double-click) the iView and click the Data button in the task panel toolbar.
c. From the System drop-down list, select the R/3 system containing BAPI_BANK
data services.
d. On the Search tab, enter: BAPI_BANK_GET* in the Name field.
e. Click Search. A list of all data services matching the search string are displayed.
f. Drag BAPI_BANK_GETDETAIL onto the Design workspace.
3. Map data from Bank List Table to Bank Getdetail:
a. The input to Bank Getdetail will be a row selected from Bank List Table. Drag a
line to connect between the out port of Bank List Table and the Input port of
Bank Getdetail.
b. Double-click the select line. A list of fields is displayed in the Fields task panel.
In each row of the list, click in the Assign column, and from the drop-down list,
select the corresponding field name. This maps the input fields of the data
service (Field column) to the field that is output from the table (Assign column).
4. Define the output from Bank Getdetail::
a. Drag out from the Bank Address output port of Bank Getdetail, release and
select Add Form View from the context menu. The Bank Address Form icon is
placed on the workspace; it will display the address of the bank selected in Bank
List Table.