6

Migrating Your Mobile Development Kit (MDK) Apps from SAP Web IDE to SAP Busines...

 2 years ago
source link: https://blogs.sap.com/2020/08/03/migrating-your-mobile-development-kit-mdk-apps-from-sap-web-ide-to-sap-business-application-studio/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Migrating Your Mobile Development Kit (MDK) Apps from SAP Web IDE to SAP Business Application Studio

4 8 1,809

Last Updated on 12 June 2022 with latest changes

You might have already seen the announcement that you can now create and modify your Mobile Development kit (MDK) apps in SAP Business Application Studio (BAS). 

SAP Business Application Studio is a next generation, tailor made development environment available as a service on SAP Cloud Foundry which offers a modular development for business application for SAP Intelligent Enterprise. If you have not started looking into it, It’s time to try out.

This post describes how to migrate Mobile Development kit (MDK) app from SAP Web IDE Full-Stack to BAS, and then how to continue enhancing it further.

From your SAP BAS dev space, you can continue connecting to the app configurations from your Mobile Services Neo landscape and you can also deploy your MDK metadata project to Mobile Services Neo landscape. OR you can migrate your app configuration from Mobile Services Neo environment to Mobile Services Cloud Foundry environment (see Prerequisites below).

Prerequisites

1.If you did setup cloud connector in Neo subaccount to connect to your data sources, you need to do similar setup in Cloud Foundry subaccount.

2. If you created the app configuration in Mobile Services (Neo), you need to first migrate those configuration to Cloud Foundry subaccount

    • export the config from app details page in Mobile Services cockpit (Neo)
Picture-1-4.png

Picture2-5.png

3. In SAP Web IDE, right-click MDK Project > Export or push your application to Git.

Picture3-7.png

4. Make sure you have access to BAS.

Create your SAP Mobile Services Dev space

  • Follow this tutorial

Import your MDK project

  • If you pushed your application to Git:
    • Clone your repository using git clone from the terminal or from the command palette.
    • Open a new workspace and select your cloned project as the root of your workspace.
  • OR If you exported your project:
    • Click Import on Welcome page (if you dont see Welcome page, navigate to Help menu>Welcome) and point to .zip file.
Import-6.png
    • Once import is successful, open the project in new workspace.

Deploy your app

  • Set your Cloud Foundry Organization and space by navigating to View menu > Find Command> CF: Login to Cloud foundry
img-3.1.gif
  • Right click Application.app file > MDK:Deploy
    Select your cloud foundry org/space and the app id (imported in Mobile Services CF cockpit)
Deploy-4.png

         Select your Mobile Services landscape to deploy your MDK metadata project
         

Mobile%20Services%20Neo%20deployment%20option

Mobile Services Neo deployment option

You should see Deploy to Mobile Services successfully! message.

img-3.3.png

Reset/rebuild your MDK client and re-onboard the app

This step is required only when you are migrating your Mobile Services app configuration from Neo to Cloud Foundry environment.

  • If you branded your connection settings into the MDK client using MDK SDK or cloud build service, you would need to re-create the client. Please follow below tutorials:

  • If you are using public store client (SAP Mobile Services client) or a more generic client that allows the user to scan a QR code to set the connection settings.
    • Reset your client by clicking Logout option in your app if it is present or uninstall and re-install the client
    • In BAS, right click Application.app > Open With MDK Application Editor > click Application QR code to populate the new QR code for app on-boarding
img-4.1-1.png
    • Scan the new QR code from MDK client to onboard the app and pickup the application definitions that you deployed from BAS to Mobile Services.

I hope this guide was helpful for you in migrating MDK projects from SAP Web IDE to SAP Business Application Studio. You can now continue with your development and enhance your MDK app.

New to MDK development?

tutorials-2.png

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK