Branding the Asset Central Component for SAP Asset Manager

Deploy the Asset Central component from the out of the box configuration to set the cloud endpoint authentication URL and the OData service URL. You can also set other configuration values.

Prerequisites

  • Verify that your system is set up to build the SAP Asset Manager application with the Asset Central 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 MDK Dependencies installer, see the Building Your MDK Client SDK procedure.

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

Context

Use the following procedure to build and brand the SAP Asset Manager application with the Asset Central component.

Procedure

  1. Locate the required installation files from the SAP Download CenterInformation published on SAP site and navigating to:

    Start of the navigation pathSoftware Downloads Next navigation step By Category Next navigation step SAP Mobile Solutions Next navigation step SAP Asset ManagerEnd of the navigation path

  2. Download the files found in the MDK PLUG-IN SDK folder. Select the correct version for your installation. Select either iOS or Android, depending on your installation platform.
  3. Download the files from either SAP ASSET MANAGER for iOS devices or MOB ASSET MANAGER AND for Android devices. Select the correct application version folder. In the version folder, download the SDK file and the metadata files found in the following subfolders:
    • ASSET MANAGER METADATA: SAP Asset Manager

    • ASSET MGR BRANDING SDK: Branding SDK for SAP Asset Manager, Meter Management, Field Operations Worker, Crew Management, Customer Service, and Asset Central

    • ASSETMGR ASSETCENTRL META: Asset Central

  4. Create a folder to contain the installation files (SAPAssetManagerCentral).
  5. Extract the SAP Asset Manager branding SDK:
    1. Unzip ASSET MGR BRANDING SDK.
    2. Copy the SAPAssetManagerCentral/SAM.mdkproject folder to the SAPAssetManagerCentral folder.
    3. Set up the SAP Asset Manager Mobile Development Kit project folders:
      1. In the SAPAssetManagerCentral/SAM.mdkproject/metadata folder, create a folder named Central.

      2. In the SAPAssetManagerCentral/SAM.mdkproject folder, create a folder named extensions.

  6. Extract the SAP Asset Manager metadata:
    1. Unzip the ASSET MANAGER METADATA file.
    2. Copy all contents of the ZIP file to SAPAssetManagerCentral/SAM.mdkproject/metadata/sam.definitions.
    3. Delete the SIGNATURE.SMF file from the SAPAssetManagerCentral/SAM.mdkproject/metadata/sam.definitions folder, if present.
  7. Extract the Asset Central SAP Asset Manager metadata:
    1. Unzip the ASSETMGR ASSETCENTRL META file.
    2. Copy all contents of the ZIP file to SAPAssetManagerCentral/SAM.mdkproject/metadata/Central.
    3. If present, delete the SIGNATURE.SMF file from the SAPAssetManagerCentral/SAM.mdkproject/metadata/Central folder.
  8. Extract the MDK plug-in SDK in one of the following ways, based on whether you’re building either an iOS or an Android client:
    iOS Client Android Client
    1. Unzip the iOS subfolder found in the MDK PLUG-IN SDK zip file.

    2. Choose your architecture from one of the following folders:

      • Release-iphoneos

      • Release-iphonesimulator

      • Release-fat (contains both the iphoneos and the iphonesimulator architectures)

    3. Copy the following folders from your selected architecture folder to the SAPAssetManagerCentral/SAM.mdkproject/extensions folder:

      • extension-Analytics

      • extension-BarcodeScanner

      • extension-FieldDataCapture

      • extension-MapFramework

      • extension-HierarchyFramework

    1. Unzip the Android subfolder found in the MDK PLUG-IN SDK zip file.

    2. Copy the following folders from your Universal folder to the SAPAssetManagerCentral/SAM.mdkproject/extensions folder:

      • extension-Analytics

      • extension-BarcodeScanner

      • extension-FieldDataCapture

      • extension-MapFramework

      • extension-HierarchyFramework

  9. Configure the connection to SAP Business Technology Platform Mobile Services:
    1. Retrieve the following information to establish a connection between the SAP Asset Manager application and the SAP Business Technology Platform Mobile Services:
    2. Choose your client configuration:

      To preconfigure your client to connect to your mobile application, add the information retrieved in the above step to the ConnectionSettings block. When adding additional entries, include a comma after the existing EnableOverrides entry. An example is included in the table for reference when you’re adding entries to your file.

      If you want to use SAP Asset Manager against different back-end mobile applications (ex: DEV and QA), leave the ConnectionSettings as is, and build an onboarding URL for users using the values found in Step 9a. See the example in the table for further information on how to connect a client using either of the methods.

    3. OPTIONAL: Enable certificate authentication in the Mobile Development Kit:

      In the BrandedSettings.json file, ConnectionSettings section, set AllowCerts to true.

    Preconfigured Client Onboarding URL

    To configure the client to connect to a specific application, update the following values in the BrandedSettings.json file:

    Using the example as a guide, insert your own connection-specific values where they belong.

    Save any changes you make.

    You can generate an onboarding link to overwrite the values discussed in this substep on a device. Use the following format in a URI:

    Save any changes you make.

  10. Edit the project settings:
    1. Open the SAPAssetManagerCentral/SAM.mdkproject/MDKProject.json file in a text editor. Edit app information such as:
      • Application name on the home screen

      • App version

      • Bundle ID to uniquely identify the application on the device

      • URL scheme for onboarding URLs

    2. Save any changes you make.
  11. Set up the Mobile Development Kit Client SDK:
    1. Unzip the Mobile Development Kit SDK associated with the version you're building.
      1. Run the Mobile Development Kit dependencies installer and confirm that your system is ready.

      2. Unzip MDKClient_SDK.zip to the new SAPAssetManagerCentral folder.

    2. To install the necessary dependencies, open a Terminal prompt in the SAPAssetManagerCentral/MDKClient_SDK directory. Run either ./install.command on a Mac or ./install.cmd on a Windows PC. Note that you can build both iOS and an Android on a Mac. You can only build Android if you’re using a Windows PC.
  12. Create the SAP Asset Manager client:
    1. Open a Terminal prompt in the SAPAssetManagerCentral/MDKClient_SDK directory.
    2. Run the create-client.command command if you are on a Mac. Run the create-client.cmd command if you are on Windows.
    3. You can either specify command-line arguments to point to the SAM.mdkproject and the type of client (either device or simulator) you’re building, or the script prompts you for the information.
    4. Remove demo.js from the CentralAssetManager/app directory.

Results

After create-client.command for iOS or create-client.cmd for Windows finishes, you’re ready to run the client either on the mobile device or on a simulator.

Next Steps

Open a Terminal prompt in the resulting client directory (ex: SAPAssetManagerCentral/MDKClient_SDK/CentralAssetManager). Run either the tns run ios or the tns run android command to start the application, based on your platform.

For iOS installations only, continue to the Allowing Custom URI Schemes procedure.