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 and output form – of the model. This will serve as the root model on which you can build in different directions.

Prerequisites

As outlined in Creating a Bank Information iView.

Procedure

  1. Create the model and name it appropriately, such as SecondExample.

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

  3. Add the data service:

    1. Drill down into the iView, click the Find Data button in the task-panel toolbar and 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.

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

    3. Drag BAPI_BANK_GETDETAIL onto the Design board. The Define Data Service dialog box is displayed.

    4. Select the BANK_ADDRESS port and click OK.

    5. Test the data service (choosing the Test Data Service option from the context menu), using the following values:

      • Bankcountry: US

      • Bankkey: 12345678 or 021000089

  4. Define the input:

    1. Drag out from the Input port of Bank Getdetail, and choose Add Input Form from the context menu. The Select Input Fields dialog box is displayed.

    2. Select both the BANKCOUNTRY and BANKKEY checkboxes and click OK.

    3. You can double-click the submit line to see (at the bottom of the Configure Element task panel) that the fields have been mapped automatically to the Input port of the data service.

  5. Define the output from Bank Getdetail:

    1. Drag out from the BankAddress output port of Bank Getdetail, and choose Add Form View from the context menu. The Select Display Fields dialog box is displayed.

    2. Select the following fields to display in the iView: BANK_NAME, BANK_NO, CITY, REGION and STREET and click OK.

  6. Adjust the iView layout by clicking the Layout tab:

    1. Right-click the Bankcountry field that appears in the Input Form and choose Properties from the context menu.

    2. On the Display tab, change the label of the field to Bank Country, and from the Label position drop-down list, choose Long Label.In the Layout workspace, the field label is updated.

    3. Repeat the step for Bankkey, making it Bank Key, with a long label.

    4. Rearrange the form to accommodate the changes you made.

      Note Note

      You can align fields within a form, or views on the layout, by selecting each item (using the Ctrl key) and clicking the Align Controls (Align Controls) button in the Layout toolbox at the bottom.

      End of the note.
    5. Resize the Bank Address Form and rearrange the fields as follows: BankName, BankNo., Street, City, Region.

  7. Save the model, which should look something like this:

    Banks Base Model - Layout (Banks Base Model - Layout)

  8. Deploy the model by clicking the Deploy Model (Deploy Model) button in the toolbar.

Result

Your runtime model should look similar to the following:

Banks Model - Runtime (Banks Model - Runtime)

This model is the base iView for going in one of two directions: