Add a URL Mashup to an SAP Floorplan

Overview

In this example you are going to add a URL mashup to the quick activity (QA) floorplan. This mashup will display the car park location on a map, based on the location information entered.

Prerequisites

Procedure

  1. Add an element on the root level of the Car Park business object to record location information.

    • element CarParkLocation : LANGUAGEINDEPENDENT_Text;
  2. Save and activate the business object.

  3. Double-click the quick activity floorplan to open it in the UI designer.

  4. Click the Update Metadata button to update the BO metadata.

  5. Drag the CarParkLocation from the BO Browser / Data Model onto the Designer tab.

  6. Change the label for the field to Car Park Location.

  7. On the Controller tab, perform the following actions:

    1. Add a new outport with the name URL_Mashup_OutPort and the following settings:

      • PortType Package = /SAP_BYD_TF/Mashups/globalmashupsupporttypes

      • PortType Reference = Address_Info

    2. Bind the Address parameter to the CarParkLocation data field.

    3. In the Property Explorer, select the QA floorplan from the drop-down list at the top.

    4. Click the Anchor field under Extensibility.

      The Anchor Modelling dialog box appears.

    5. Click the plus sign to create a stable anchor for the floorplan.

      This graphic is explained in the accompanying text.

    6. In the Property Explorer, select the mashup outport from the drop-down list at the top.

    7. Click the Anchor field under Extensibility.

      The Anchor Modelling dialog box appears.

    8. Click the plus sign to create a stable anchor for the floorplan.

    9. In the Property Explorer, click the Referenced Anchor field under Extensibility.

      The Anchor Modelling dialog box appears.

    10. Click the plus sign to create a referenced anchor for the outport.

    11. Click the three dots next to the XRep Path field.

    12. In the Configured Anchors dialog box, click the anchor you created for the QA floorplan.

      This graphic is explained in the accompanying text.

  8. Save and activate.

  9. Click the Designer tab.

  10. In the Extensibility Explorer, select the mashup outport and click the Mashups Management button.

    The Mashups Management dialog box appears, listing the available mashups.

  11. Select the mashup you want to use and click Apply.

    This graphic is explained in the accompanying text.

  12. Save and activate.

Result

The mashup is available from the Web Services menu on the QA. When you click the mashup, the URL is opened with the value entered into the Car Park Location field as an input parameter.

This graphic is explained in the accompanying text.

This graphic is explained in the accompanying text.