Show TOC

Procedure documentationCreating the Base Model Locate this document in the navigation structure

 

In this example, you define the basic elements - a data service with input form, start point and output table - of the model.

Prerequisites

As outlined in Creating a Salesorder iView

Procedure

  1. Begin by creating a model:

    1. Choose   Model   New Model  .

    2. In the Create New Model dialog box, expand the folder hierarchy to navigate to the folder in which you want to save your model. The path to the model is displayed in the Model path field.

    3. Enter a Model name for the model, such as: FirstExample.

    4. Click OK. The Design board is displayed.

  2. Create an iView (dragging the iView icon from the Compose Model task panel) and call it Salesorders.

  3. Add the data services:

    1. Open (double-click) the iView and click the Find Data button in the task-panel toolbar at the right.

    2. From the System drop-down list, choose the IDES system defined in the portal (the source of the data we need), such as IDES_R3.

    3. In the Service field, enter: BAPI_SALESORDER and click Search. A list of all data services matching the search string is displayed.

    4. Drag BAPI_SALESORDER_GETLIST onto the workspace. The Define Data Service dialog box is displayed, listing the ports and the metadata of the data service.

    5. In the left pane of the Define Data Service dialog box, select the SALES_ORDERS check box to display the additional, Sales Orders, port. Click OK. A Confirmation message is displayed asking if you want to use all of the fields processed through this port. Click Yes.

    6. To test the functionality of the Salesorder Getlist data service, right-click the icon and from the context menu, choose Test Data Service. The Test Data Service dialog box is displayed. To test the data service:

        1. In the Customer Number field, enter 0000001002 and in the Sales Organization field, enter 1000.

        2. Click Execute. All the information for the sales orders placed by customer 1002 is displayed.

        3. Click Close to remove the Test Data Service dialog box.

  4. Define the input:

    1. Drag out from the Input port of SalesorderGetlist, release, and from the context menu, choose Add Input Form. The Select Input Fields dialog box is displayed, listing the metadata that can be input from the start point to the data service. Select CUSTOMER_NUMBER and SALES_ORGANIZATION and click OK.

    2. In order to define a set of initialization values for the iView, drag out from the same Input port again and choose Start Point. The Select Input Fields dialog box is displayed again. Select CUSTOMER_NUMBER and SALES_ORGANIZATION and click OK a second time.

    3. Double-click the connecting line between the start point and the data service. The Configure Element task panel is displayed at the right. Note that in the list of fields at the bottom, CUSTOMER_NUMBER and SALES_ORGANIZATION have been mapped to the connected data service.

    4. In the Assigned v\Value column of the CUSTOMER_NUMBER row, select the text and overwrite it with '0000001002' (be sure to use the single quotation marks). Do the same in the SALES_ORGANIZATION row, using the value '1000'. These values will serve as the default input values for the iView.

    5. Save your model. At this stage, it should look similar to the following:

      Defining the Input (Defining the Input)

  5. Define the output:

    1. Drag out from the Sales Orders output port of Salesorder Getlist, release and from the context menu, choose Add Table View. The Select Display Fields dialog box is displayed.

    2. Select the following fields to be displayed in the table of sales orders: CURRENCY, MATERIAL, NAME, NET_PRICE and SD_DOC.

      Click OK. The Sales Order Table icon is added to the Design board.

  6. Save the model.

Result

Your model should look similar to the following:

Salesorders iView - Step 1 (Salesorders iView - Step 1)