Skip to Content

Set Up Initial Configuration for an MDK App

test
0 %
Set Up Initial Configuration for an MDK App
Details

Set Up Initial Configuration for an MDK App

June 18, 2021
Created by
April 23, 2019
Configure initial setup for MDK Mobile and Web applications.

You will learn

  • How to configure MDK apps in the Mobile Services cockpit
  • How to configure destination for MDK Mobile and applications
QR code

Prerequisites


Step 1: Understand the mobile development kit feature

The Mobile Development Kit (MDK) enables developers and technical business users to build multi-channel applications. It allows you to build your application once, in an integrated development environment, and run it natively on mobile devices (Android & iOS) and as a web application (online) in the browser.

You can find more details in the Mobile Development Kit developer page.

MDK
What are some of the benefits of Mobile Development Kit apps?
×
Step 2: Configure a new MDK application in Mobile Services cockpit

Make sure that you have completed required prerequisites mentioned in this tutorial.

  1. Navigate to SAP Mobile Services cockpit.

  2. On the home screen, select Create new app.

    MDK
  3. Provide the required information and click Next.

    Field Value
    ID com.sap.mdk.demo
    Name SAP MDK Demo App
    MDK

    Other fields are optional. For more information about these fields, see Creating Applications in the SAP documentation.

  4. Choose Mobile Development Kit Application from the dropdown, select Mobile Sample OData ESPM to add a sample backend to your MDK app and the click Finish.

    MDK

    If you see a Confirm Finish window, click OK.

    Once you have created your application, you see a list of default features have been automatically assigned to the app.

    MDK

    You can find more information on available features in SAP Mobile Services in help documentation.

Which tool do you use to create configuration for your MDK mobile app?
×
Step 3: Create a new destination to your MDK Mobile application
  1. Click Mobile Connectivity.

    MDK
  2. Copy the URL from existing destination and click the Create icon to add a new destination.

    MDK
  3. Provide the required information and click Next.

    Field Value
    Destination Name SampleServiceV2
    URL paste the URL from above step
    MDK
  4. For this tutorial, there is no Custom Headers, Annotations required. Select SSO Mechanism as Forward Authentication, click Next and Finish the form.

    MDK
Log on to answer question
Step 4: Create a new destination to your MDK Web application

MDK Web application accesses the data sources via BTP destination. You will now create a new destination in BTP cockpit that will point to the same backend as your Mobile destination.

  1. Click com.sap.mdk.demo to navigate to Mobile Services application details.

    MDK
  2. Open the APIs tab, click copy to clipboard icon to copy the highlighted URL and paste it in a text file. This URL will be used in configuring the BTP destination.

    MDK
  3. Navigate to the Instances and Subscriptions in your SAP BTP space cockpit page, select Authorization & Trust Management service from the list, click com-sap-mdk-demo-xsuaa instance and click View to open the configuration details.

    MDK
  4. Switch to Form tab, copy values for clientid, clientsecret, url parameters and paste these values in the text file. These parameters will be used in configuring the BTP destination.

    MDK
  5. Download the zip file from here and unzip it on your machine.

  6. Navigate to Destinations to create a BTP destination, click Import Destination to import the extracted file and provide the required information and click Save.

    Field Value
    URL Paste the URL from step 2
    Client ID Paste the value from step 4
    Client Secret Paste the value from step 4
    Token Service URL Paste the URL from step 4 and add /oauth/token suffix at the end
    Use Default JDK truststore Select the checkbox if not selected before
    MDK
Log on to answer question

Congratulations, you have successfully configured the setup for your MDK Mobile and Web applications.

You can now continue with this tutorial to set up the development environment in the SAP Business Application Studio.


Next Steps

Back to top