Common Procedure: Enabling a Component in SAP Asset Manager

Extend the SAP Asset Manager application with the functionality of your selected component.

Prerequisites

  • Verify that your system is set up to build the SAP Asset Manager application with your selected component by running the Mobile Development Kit Dependencies Installer tool. This tool detects all the components to install or update, allowing you to update or install them instantly.

    For more information and instructions on how to obtain the Dependencies Installer.app tool, see the Building Your MDK Client SDK procedure.

  • Complete the Creating an Application in SAP Cloud Platform mobile services procedure.

Context

You can use the following procedure for any of the components available with the SAP Asset Manager application: Meter Management, Field Operations Worker, Crew Management, Customer Service, or Asset Central.

The following procedure uses the Crew Management component to walk you through the installation process. To install other components, replace the Crew Management file names you see in the procedure steps and screenshots with the name of the component you are installing.

Procedure

  1. Open the SAP Web IDE. From the Mobile Development Kit perspective (), right-click on Workspace and select Import from the menu.

  2. From the Import window, use the Browse button to navigate to your ZIP file of the component metadata on your file system.
  3. Select the component ZIP file to import. Change the component file path in the <Import To> field based on the component you are importing to the following:
    • /Crew/SAPCrewManager

    • /Meter/SAPMeterManager

    • /FOW-Component/FieldOperationsWorker

    • /CustomerService/SAPCustomerService

    • /AssetCentral/SAPAssetCentral

  4. After selecting the ZIP file and changing the file path name in the <Import To> field, click OK to continue.

    After importing the ZIP file, you see the component definition folder created in the Workspace folder.

  5. Import the Component Integration Mapping (CIM) file for your component into the SAPAssetManager project folder, so that you can incorporate the component into the SAP Asset Manager application. You can find the CIM file in the following location:

    Branding SDK/<ComponentName>/SAM.mdkproject/metadata/sam.definition/

    1. In your Workspace, right-click on the SAPAssetManager folder and select Import.
    2. Using the Browse button, select the CIM file for your component where you previously unzipped it.

    After you import the SAP<Component>Manager.cim file to your SAPAssetManager folder, you will see the details of the CIM file in the workspace. If a metadata error message appears, you can ignore the message.

  6. Redeploy the SAPAssetManager project to SAP Cloud Platform Mobile Services.
    1. Right-click on the SAPAssetManager folder and select MDK Deploy and Activate.
    2. In the Deploy to Mobile Services window, ensure that the following information appears in the <Filter Files> and <Externals> fields as seen in the example screenshot. Uncheck the <Download bundle to local machine> checkbox. Click Next when finished.

    3. In the Deploy to Mobile Services - Destination window specify the <Destination Name> and <Application ID> to where the application is deployed in SAP Cloud Platform Mobile Services. When finished, click Next.
    4. Click Next to generate the webpack and to build your project.

Results

Observe as the MDKWebpackFactory project is either updated or created. The console window then displays the deployment detail. When the project creation is complete, the console shows the successful deployment of the application as well as the application revision number.

Next Steps

After your successful deployment, the next time the Check for Updates message displays on the SAP Asset Manager client, click OK to switch to the updated definitions.