SAP Mobile App Development

Windows System Setup for Developing Mobile Apps with SAPWebIDE and SAP Mobile SDK

      In this tutorial we will see how to setup development environment for developing mobile applications with SAPWebIDE cloud version and SAP Mobile SDK.In this tutorial we install in windows machine.We will use HAT connector to connect between SAP Mobile SDK and sapwebide.

Steps

  • Install SAP Mobile Platform SDK 

Steps
  1. Download SAP Mobile Platform SDK from SAP store.I have downloaded SDK3_14(SP 14 windows installer which is latest as of today)
  2. Install SAP Mobile Platform SDK.
  • Set Up HAT pre-requisites
  1. Download and Install Java JDK from http://www.oracle.com/technetwork/java/javase/downloads/index.html
  2. Dowload and install Node.js from https://nodejs.org/download/release/v5.4.1/.Install version v5.4.1 only which is supported by mobile SDK.
  3. Download apache cordova cli.For this open cmd(command prompt) and install cordova version 6.1.1 by command npm install -g cordova@6.3.1
  4. Download and install Git from https://git-scm.com/
  5. Install kapsel CLI.For this open cmd(command prompt) and navigate to C:\SAP\MobileSDK3\KapselSDK\cli and use command npm install -g
  6. Install apache Ant.Download Ant from http://ant.apache.org/  and just extract the downloaded zip file.
  7. Install android SDK from http://developer.android.com/sdk/installing/index.html .After installing android SDK just create an AVD(Android Virtual Device) with avd manager available with SDK.
  • Set Up Path variables
  1. Go to System->Advanced system settings and click on environment variables.Add following variables to the system.You should use your path.Iam using mine.
  2. select Path variable and add these values and click ok.
  • Set Up HAT
  1. Download and install SCN Hybrid App Toolkit from SAP store.Extract the zip and run setup.cmd file.Follow the instructions.You should have SAP Web IDE cloud account or you can use local version of SAP Web IDE.I recommend you use cloud version because it has all the new features available.If you dont have an hcp account signup from here.
  2. Check the HAT installation.Just run run.cmd from the extracted HAT directory.It will ask for password which was given in step 1 of set Up HAT.Give password and press enter.Now open SAP Web IDE go to Tools->Preferences and enable HAT Plugin.Go to  Plugins > Optional Plugins  and tick mark com.sap.webide.hybrid and press save.Now click on Hybrid Application Toolkit and press test connection.It should give success message.
I have made this tutorial as compact as possible.Please comment if need any clarification.

If you enjoyed this post, Please Share!!

2 comments :

  1. Hi I tried to run the HAT setup.cmd but i got error that
    Validating installation prerequisites...

    Node.js version:
    v5.4.1
    ---
    npm version:
    5.7.1
    ---
    git version:
    git version 2.16.2.windows.1
    ---
    bower version:
    1.8.2
    ---
    Installing required modules...
    npm WARN npm npm does not support Node.js v5.4.1
    npm WARN npm You should probably upgrade to a newer version of node as we
    npm WARN npm can't make any promises that npm will work with this version.
    npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
    npm WARN npm You can find the latest version at https://nodejs.org/
    npm ERR! Buffer.alloc is not a function

    npm ERR! A complete log of this run can be found in:
    npm ERR! C:\Users\AU911542\AppData\Roaming\npm-cache\_logs\2018-03-09T03_17_38_191Z-debug.log

    ---------------------------------------------------------------
    npm install FAILED. Please check that you have correctly configured the npm proxy.
    If it is not because of the proxy issue, please try the following steps to fix it:
    1. delete folder (if exists): "C:\SAP\SAP_HAT_local-1.29.1\setup\node_modules"
    2. clean npm cache: npm cache clean
    3. update npm (may need administrator mode): npm install npm -g


    ---------------------------------------------------------------
    For more information, please goto https://help.hana.ondemand.com/webide_hat/frameset.htm

    Press any key to continue . . .

    ReplyDelete
    Replies
    1. Hi,
      I have never came across such error.Did you find a solution?Please post the answer here.
      Thanks

      Delete

Powered by Blogger.