
SAP Online Help 07.09.2004
SAP NetWeaver Visual Composer: User Guide 200
Example 3: Salesorder iView
Use
In this example, you create an iView in which the user can input a customer number and
sales organization number in order to display a table – sorted by document date – of all
orders placed by that customer. From the displayed list, the user can then select a document
and subsequently display the order details – Document Date, Material, Currency, Net Price,
Reference Quantity and relative Order Size – in a second table.
In this example, you will:
• Create an iView and import two data services.
• Define an input form and a start point for the first data service.
• Define a table view for output, which is first sorted using a Sort operator.
• Map the data from the output form to the input of the second data service.
• Define a table view for output from the second data service, which is also sorted using
a Sort operator.
• Define a dynamic expression in the output table, using the Expressions Editor.
• Check the model for errors.
• Adjust the layout of the views.
• Preview the iView.
• Compile the iView.
Procedure
...
1. Create an iView (dragging the iView icon from the Elements task panel) and call it
Salesorder iView.
2. Import the data services:
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_SALESORDER data services.
d. On the Search tab, enter: BAPI_SALESORDER* in the Name field.
e. Click Search. A list of all data services matching the search string are displayed.
f. Drag BAPI_SALESORDER_GETLIST and then
BAPI_SALESORDER_GETSTATUS onto the Design workspace.
g. Right-click Salesorder Getlist and from the context menu, choose Test Function
(see Testing the Data Service (Optional) [Page
50]). To test the function, you
can use 0000001000 for Customer Number and 1000 for Sales Organization.