opensap Developing Mobile Apps with SAP HANA Cloud Platform Setting Up Your Development Environment

Similar documents
UX400. OpenUI5 Development Foundations COURSE OUTLINE. Course Version: 02 Course Duration: 5 Day(s)

Complementary Demo Guide

SAP Business One Integration Framework

Week 2 Unit 1: Introduction and First Steps with EJB. January, 2015

opensap TEXT ANALYTICS WITH SAP HANA PLATFORM WEEK 1

HA215 SAP HANA Monitoring and Performance Analysis

HA215 SAP HANA Monitoring and Performance Analysis

Device Operation Process Diagrams. SAP Mobile Secure rapid-deployment solution September 2014

HA301. SAP HANA 2.0 SPS03 - Advanced Modeling COURSE OUTLINE. Course Version: 15 Course Duration:

How-to Guide for Exercise Access the Demo Appliance Landscape (Week 1, Unit 6, Part 1)

SAP EarlyWatch Alert. SAP HANA Deployment Best Practices Active Global Support, SAP AG 2015

HA355. SAP HANA Smart Data Integration COURSE OUTLINE. Course Version: 12 Course Duration: 3 Day(s)

Week 2 Unit 3: Creating a JDBC Application. January, 2015

opensap How-to Guide for Exercise Instructor-Led Walkthrough of SAML2 Configuration (Week 4 Unit 5)

SAP Mobile Secure Rapiddeployment. Software Requirements

SAP Hybris Billing, Pricing Simulation Extended Functions Release 2.0, SP03

SAP 3D Visual Enterprise 9.0: Localization of Authoring Content

How-to Guide for Exercise Familiarize Yourself with SAP Fiori UX (Week 1, Unit 6, Part 2)

ADM505. Oracle Database Administration COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

HA100 SAP HANA Introduction

HA 450. Application Development for SAP HANA COURSE OUTLINE. Course Version: 12 Course Duration:

S4H01. Introduction to SAP S/4HANA COURSE OUTLINE. Course Version: 04 Course Duration: 2 Day(s)

opensap Extending SAP S/4HANA Cloud and SAP S/4HANA SAP S/4HANA UX Fundamentals PUBLIC

BC404. ABAP Programming in Eclipse COURSE OUTLINE. Course Version: 16 Course Duration: 3 Day(s)

UX402 SAP SAPUI5 Development

Device Application Onboarding Process Diagrams. SAP Mobile Secure: SAP Afaria 7 SP5 September 2014

SLT100. Real Time Replication with SAP LT Replication Server COURSE OUTLINE. Course Version: 13 Course Duration: 3 Day(s)

C4C30. SAP Cloud Applications Studio COURSE OUTLINE. Course Version: 21 Course Duration: 4 Day(s)

CUSTOMER Upgrade: SAP Mobile Platform SDK for Mac OS

BC414. Programming Database Updates COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

BOD410 SAP Lumira 2.0 Designer

MDG100 Master Data Governance

HA240 SAP HANA 2.0 SPS02

HA100 SAP HANA Introduction

Oracle Real-Time Scheduler

BC470. Form Printing with SAP Smart Forms COURSE OUTLINE. Course Version: 18 Course Duration:

ADM506. Database Administration Oracle II COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

CA611 Testing with ecatt

HA100 SAP HANA Introduction

SAP Global Track and Trace Onboarding Guide

FAQs OData Services SAP Hybris Cloud for Customer PUBLIC

ADM110. Installing and Patching SAP S/4HANA and SAP Business Suite Systems COURSE OUTLINE. Course Version: 17 Course Duration: 4 Day(s)

ADM110. Installing and Patching SAP S/4HANA and SAP Business Suite Systems COURSE OUTLINE. Course Version: 18 Course Duration: 4 Day(s)

Let s Exploit DITA: How to automate an App Catalog

SAP Fiori Launchpad Process Flow. SAP Fiori UX launchpad Configuration: End to End CEG: November 2014

S4H410. SAP S/4HANA Embedded Analytics and Modeling with Core Data Services (CDS) Views COURSE OUTLINE. Course Version: 05 Course Duration: 2 Day(s)

BC403 Advanced ABAP Debugging

SAP Analytics Cloud model maintenance Restoring invalid model data caused by hierarchy conflicts

HA150 SQL Basics for SAP HANA

UX300 SAP Screen Personas 3.0 Development

CLD100. Cloud for SAP COURSE OUTLINE. Course Version: 16 Course Duration: 2 Day(s)

BW305H. Query Design and Analysis with SAP Business Warehouse Powered by SAP HANA COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

Software and Delivery Requirements

HA240 Authorization, Security and Scenarios

BMW Group ebox Partner Archive Hotline

DBW4H. Data Warehousing with SAP BW/4HANA - Delta from SAP BW powered by SAP HANA COURSE OUTLINE. Course Version: 13 Course Duration: 2 Day(s)

BOCRC. SAP Crystal Reports Compact Course COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

HA300 SAP HANA Modeling

DS10. Data Services - Platform and Transforms COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

How-to Connect your HANA Cloud Platform Mobile Service Account to your On-Premise OData Service

SAP IoT Application Enablement Best Practices Authorization Guide

BW405. BW/4HANA Query Design and Analysis COURSE OUTLINE. Course Version: 14 Course Duration: 5 Day(s)

Device Configuration Process Diagrams. SAP Mobile Secure: SAP Afaria 7 SP5 September 2014

SAP Workforce Performance Builder 9.5

TADM51. SAP NetWeaver AS - DB Operation (Oracle) COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

HA150. SAP HANA 2.0 SPS02 - SQL and SQLScript for SAP HANA COURSE OUTLINE. Course Version: 14 Course Duration: 3 Day(s)

Alert Consumption for Business Process Monitoring on MAI with SAP Solution Manager 7.1 SP12 Setup and features of notifications and incidents

HA150. SAP HANA 2.0 SPS03 - SQL and SQLScript for SAP HANA COURSE OUTLINE. Course Version: 15 Course Duration:

Using SAP SuccessFactors Integration Center for generating exports on Interview Central. SAP SuccessFactors Recruiting Management

SAP HANA SPS 08 - What s New? SAP HANA Application Lifecycle Management (Delta from SPS 07 to SPS 08) SAP HANA Product Management June, 2014

FAQs Facebook Integration with SAP Hybris Cloud for Customer SAP Hybris Cloud for Customer PUBLIC

Choose OS and click on it

FAQs Data Workbench SAP Hybris Cloud for Customer PUBLIC

FAQs Data Cleansing SAP Hybris Cloud for Customer PUBLIC

BIT660 Data Archiving

SAP Single Sign-On 2.0 Overview Presentation

SAP SMS 365 SAP Messaging Proxy 365 Product Description August 2016 Version 1.0

BW305. SAP Business Warehouse Query Design and Analysis COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

BC405 Programming ABAP Reports

BW362. SAP BW Powered by SAP HANA COURSE OUTLINE. Course Version: 11 Course Duration: 5 Day(s)

How to Package and Deploy SAP Business One Extensions for Lightweight Deployment

S4D430 Building Views in Core Data Services ABAP (CDS ABAP)

BW310H. Data Warehousing with SAP Business Warehouse powered by SAP HANA COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

HA100 SAP HANA Introduction

Ariba Network Configuration Guide

Ariba Network Configuration Guide

Customer Helpdesk User Manual

D75AW. Delta ABAP Workbench SAP NetWeaver 7.0 to SAP NetWeaver 7.51 COURSE OUTLINE. Course Version: 18 Course Duration:

HA300 SAP HANA Modeling

HA400 ABAP Programming for SAP HANA

BW462 SAP BW/4HANA COURSE OUTLINE. Course Version: 16 Course Duration: 5 Day(s)

SMP541. SAP Mobile Platform 3.0 Native and Hybrid Application Development COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

SAP HANA SPS 08 - What s New? SAP HANA Web-based Development Workbench. (Delta from SPS 07 to SPS 08) SAP HANA Product Management May, 2014

SAP HANA SPS 08 - What s New? SAP HANA Interactive Education - SHINE (Delta from SPS 07 to SPS 08) SAP HANA Product Management May, 2014

SAP Cloud Platform Configuration SAP Subscription Billing

SAP HANA SPS 08 - What s New? SAP HANA Modeling (Delta from SPS 07 to SPS 08) SAP HANA Product Management May, 2014

SCM380 SAP MII - Manufacturing Integration and Intelligence Fundamentals

SAP HANA SPS 09 - What s New? SAP River

How to configure SSL for HANA XS Engine using SAP Crypto libraries To secure communication between web-based clients and SAP HANA XS Engine

Getting Started with SAP Business One 9.2, version for SAP HANA

Transcription:

opensap Developing Mobile Apps with SAP HANA Cloud Platform Setting Up Your Development Environment

TABLE OF CONTENTS SAP MOBILE PLATFORM SDK... 3 Download SAP Mobile Platform SDK... 3 Install SAP Mobile Platform SDK... 6 SCN HYBRID APP TOOLKIT (HAT)... 10 Set Up HAT Prerequisites... 11 Install Node.js Read Closely!... 11 Install Git (Windows only for Mac Install Xcode Command Line Tools)... 13 Install Apache Cordova CLI... 18 Install Plugman... 19 Install Kapsel CLI... 19 Install Java (JDK)... 20 Install Apache Ant (Windows Only For Mac install Xcode Command Line Tools)... 22 Install Android SDK... 23 Set Up Path Variables... 26 Set Path Variables for Windows... 26 Set Path Variables for Mac... 28 Set Up SCN Hybrid App Toolkit... 29 Download SCN Hybrid App Toolkit... 29 Install SCN Hybrid App Toolkit... 32 Run SCN Hybrid App Toolkit... 38 Set WebIDE Hybrid App Toolkit Plugin... 39 CREATE SAP WEB IDE KAPSEL APPLICATION... 40 Set Up HCP Destination... 40 Create Sample Application... 41 Connect App Using Android Emulator... 46 TROUBLESHOOTING... 54 SAP Mobile SDK... 54 Issues downloading SDK... 54 SCN Hybrid Application Toolkit... 55 Node.js Tips... 55 Git Installation and Tips... 56 How to Change Apache Cordova Version... 57 Tips on Running HAT (v1.7 or later)... 58 Errors when Running Android Emulator... 61 How to Configure a Proxy for NPM... 63 How to Configure a Proxy for GIT... 64 How to Configure a Proxy for Plugman... 65 Troubleshoot HAT Connection Issue when Using the Firefox Browser... 66 How to Start the SAP Web IDE Console... 67 2

Welcome to this guide for the opensap course Developing Mobile Apps on SAP HANA Cloud. It shows how you can set up your development environment using the SAP Mobile Platform SDK and SCN Hybrid App Toolkit. Both are available on the SAP Store at http://store.sap.com. This guide covers guided installation based on a Windows platform but also contains relevant information for Mac. Linux is not supported. If you are going to be using a Mac to develop ios and Android applications you can visit this guide for setup: https://help.hana.ondemand.com/webide_hat/frameset.htm?93a25210b383451487ae4c56ac938ac1.html Make sure to first follow this guide and follow the sections on installing Node.JS, SAP Mobile Platform SDK, Apache Cordova and Kapsel CLI. Also, review the troubleshooting section at end of the document for assistance with common installation tasks. If you have already installed any of the software in this document, remember to update it per versions mentioned in this guide (if necessary). SAP MOBILE PLATFORM SDK Let s start by downloading the SAP Mobile Platform SDK. Simply follow the instructions and screenshots to complete this process. Download SAP Mobile Platform SDK 1. Log on to store.sap.com with your SAP HCP Trial Account and download the free SAP Mobile Platform SDK. 3

2. Fill out the Download trial version form and click Submit. 3. Download by clicking the click here link. The link is valid for 48 hours only. 4

4. Download the latest Service Pack (SP) and Patch Level (PL) of your development environment (Mac or Win). For example, SAP Mobile Platform SDK SP09 Win Installer and SAP Mobile Platform SP09 PL03 Win Installer. Note: Make sure to download the latest SDK (SP10 will be available soon and you should use that when it is). Note 2: the Sidecar Support Pack is for MBO development, which is not supported on HCP. 5. If an error occurs when downloading, please e-mail store.admin@sap.com or use one of the options available on the home page to contact SAP Store personnel. 5

Install SAP Mobile Platform SDK 1. Unzip the file, right-click the setupamd64.exe file, and choose run as administrator. 2. Click Next to start the installation process. 6

3. Select SDK install path (if you are upgrading, then the system will automatically find your SDK path). 4. Click Next. (For a new installation, select all the components. If you are upgrading and have installed all the components, the installer will automatically upgrade them all.) 7

5. Click Install (for a new installation, or Upgrade for an existing installation). 6. Click Next. (DO NOT select any options on this screen). 8

7. Click Finish. 8. If your Windows OS prompts the following install alert, simply select the installed correctly option. 9. Now install the Patch executable (e.g. SAP Mobile Platform SP09 PL03) and accept all the defaults. 10. This completes SAP Mobile Platform SDK installation. If you need further assistance, please see the Troubleshooting section at end of this document. 9

SCN HYBRID APP TOOLKIT (HAT) In this section, you will download and install the SCN Hybrid App Toolkit and its prerequisites for Windows. 10

Set Up HAT Prerequisites Install Node.js Read Closely! Always use required Node.js version with appropriate HAT version. You can find the latest installation information here: https://help.hana.ondemand.com/webide_hat/frameset.htm 1. If you have HAT 1.9.3 or earlier, please uninstall current version of Node.js and download and install Node.js version v0.10.40 http://nodejs.org/dist/v0.10.40/ (for advanced users with additional configuration, it is possible to run multiple versions of Node.js, however, it s beyond the scope of this course). Please see troubleshooting section at end of this document. a. For Windows Select: node-v0.10.40-x86.msi b. For Mac Select: node-v0.10.40.pkg 2. For HAT 1.9.4 or greater install Node.js version v0.12.0 - http://nodejs.org/dist/v0.12.0/ a. For Windows Select: node-v0.12.0-x86.msi b. For Mac Select: node-v0.12.0.pkg 11

3. Simply follow the Setup GUI. 4. This completes the Node.js installation. If you need further assistance, please see the Troubleshooting section at end of this document. 12

Install Git (Windows only for Mac Install Xcode Command Line Tools) 1. Download and install Git https://git-scm.com/ 2. Click the Download link for your platform (e.g. Windows), save the file, and start the installation. 13

3. Continue the installation by selecting the options in the screens below: Select Components (defaults) Select the Use Git from the Windows Command Prompt option. 14

You may not see the Choosing the SSH executable screen below unless you have either OpenSSH &/or Putty environment on your computer. Select the Checkout Windows-style, commit Unix-style line endings option. 15

Select the Use Windows default console window option. Do not select the option on this screen. 16

Click Finish to complete the Git installation. 17

Install Apache Cordova CLI 1. Open the Windows Command Prompt and type in npm install -g cordova@5.1.1. Apache Cordova is an open-source mobile development framework. It allows you to use standard web technologies such as HTML5, CSS3, and JavaScript for cross-platform development, avoiding each mobile platforms' native development language. Applications execute within wrappers targeted to each platform, and rely on standards-compliant API bindings to access each device's sensors, data, and network status. NPM is node.js package manager that is installed with Node.js. It allows users to install Node.js applications that area available in the NPM registry. Note: Apache Cordova 5.1.1 is supported by the SAP Hybrid Application Toolkit 1.9.3. Always check the latest release notes to see which Apache Cordova Version you should be using. Note 2: If you have HAT 1.9.4 or greater and SAP Mobile SDK SP10 or greater you can use Apache Cordova 5.2. The install command for this would be npm install g cordova@5.2.0 2. For Mac, open a Terminal and type in sudo npm install -g cordova@5.1.1. 3. This completes the Apache Cordova CLI installation. More information on Apache Cordova CLI is available here: http://cordova.apache.org/docs/en/5.1.1/guide/cli/index.html - The Command Line Interface 18

Install Plugman Plugman is a utility for managing plugins for Apache Cordova. 1. Open the Windows Command Prompt. 2. For Windows execute command npm install -g plugman. 3. For Mac execute command sudo npm install -g plugman Install Kapsel CLI Kapsel is a set of plugins that enhance Apache Cordova with functionality such as a stream-lined logon to an SMP 3.0 server, the ability to update deployed applications, encrypted storage and push notifications. Kapsel apps can be developed on Windows or Mac machines. Kapsel apps can target Android, ios and as of SP05 Windows 8.1 and Windows 8.1 Phone. The Kapsel CLI is used to execute a set of commands supported by the Kapsel SDK. HAT now requires you to install it. 1. Open the Command Prompt in KapselSDK cli directory (e.g. c:\sap\mobilesdk\kapselsdk\cli). 2. On Windows Type in npm install -g from this directory. 3. On Mac Type execute command sudo npm install -g from this directory. 19

Install Java (JDK) Please note, that there are many different versions of Java available and are used by different applications. This course requires that you use Java 1.7.x. We ensure that the application is using this version by specifically adding system path statement. 1. Check to see if Java 1.7.x is installed on your computer. Open your Windows Command Prompt and type in c:\java version. If it is installed, you will see the version information. If this is not found, go to the next step. 2. Download and install JDK - http://www.oracle.com/technetwork/java/javase/downloads/index.html 20

3. Download Windows or Mac JDK. 4. Finish installing JDK. This completes JDK installation section. 21

Install Apache Ant (Windows Only For Mac install Xcode Command Line Tools) Apache Ant is an open-source java based build tool. HAT will use to build your mobile application locally. 1. Download and install Ant - http://ant.apache.org/ 2. Download the latest zip for Windows (or tar for Mac). 3. Unpack the zip file; for example, c:\apache-ant-1.9.6. This completes ANT installation section 22

Install Android SDK Android SDK is required for you to develop native Android applications. Although we will be focusing on developing hybrid web applications with SAP Web IDE, you are required to have the Android SDK installed on your computer in order to run your mobile app on either an Android Emulator (included with SDK) or a physical Android Device (connected to your computer). Here you have an option to either install the Android Studio (includes SDK) or simply download the standalone SDK Tools. Google s Android Studio is a complete Integrated Development Environment (IDE) used for native Android development that includes the Android SDK. The Standalone-Android SDK Tools is a subset of the Android Studio. 1. Download and install Android SDK - http://developer.android.com/sdk/installing/index.html 2. If installing Android Studio, simply follow this installation documentation - http://developer.android.com/sdk/installing/index.html?pkg=studio 3. If you have installed Android Studio, open Android Studio and update your SDK (by choosing Tools > Android > SDK Manager). 4. If installing standalone SDK Tools, simply follow this installation documentation - http://developer.android.com/sdk/installing/index.html?pkg=tools 5. In either installation case, be sure to update your SDK Manager to get the latest available packages. 23

6. Launch the SDK Manager and make sure to install the following Android SDK components: a. Latest Build Tools, Tools, Platform Tools components: b. API Level 22 SDK, Google APIs and optionally the ARM emulator if you don t have a device: Note: Intel emulators are not supported (or devices for that matter). This is a current constraint of the SAP Mobile Platform SDK. 24

c. Install latest Google Play Services, Google Repository, Android Support Repository, Android Support Library: This completes Android SDK installation section. 25

Set Up Path Variables Set Path Variables for Windows In order to fully set up the environment, you will need to configure Windows Environment Variables. Open your computer s System Properties > Advanced > Environment Variables. Under User Variables, set or verify the following (may depend on versions installed): Note: Be sure to back up your system path information prior to making changes below. You can do this by copying current path and pasting to a notepad file. Please ensure the value matches your path_folder_location. VARIABLE ANDROID_HOME ANT_HOME JAVA_HOME KAPSEL_HOME VALUE* C:\Users\Winuser\AppData\Local\Android\sdk C:\apache-ant-1.9.4 C:\Program Files\Java\jdk1.7.0_55\ C:\SAP\MobileSDK3\KapselSDK 26

Under System Variables, set or verify the following path values. Your default path may already have these values but ensure Java, Ant, Node.js, and Android-related values must be in your path. DO NOT REMOVE your existing path information but just ensure the value below are in the path. Note: Be sure to back up your system path information prior to making changes below. You can do this by copying current path and pasting to a notepad file. Please ensure the value matches your path_folder_location. VARIABLE Path VALUE %JAVA_HOME%\bin; C:\ProgramData\Oracle\Java\javapath; C:\Program Files\Java\jdk1.7.0_55\bin; C:\Program Files\Java\jdk1.7.0_55\lib; C:\Program Files\Java\jdk1.7.0_55\jre\lib; C:\Program Files\Java\jdk1.7.0_55\jre\bin\server; C:\Program Files (x86)\microsoft Application Virtualization Client; C:\Program Files (x86)\intel\opencl SDK\2.0\bin\x86; C:\Program Files (x86)\intel\opencl SDK\2.0\bin\x64; C:\android\sdk\platform-tools; C:\android\sdk\tools; C:\Program Files (x86)\nodejs\; C:\Program Files (x86)\git\cmd; %ANT_HOME%\bin; 27

Set Path Variables for Mac Open Terminal.app and review your path by typing in the following: echo $PATH You will receive an output (e.g. /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin). Review the output and ensure the path displays all highlighted path information as displayed in the example below. In your home directory, open an existing bash_profile or create a new one and enter any missing variables*. In order to test the new path information, simply open a new Terminal and type echo $PATH. You will see new variables added to the path. In the example path below, the highlighted path are relevant to the HAT/Cordova setup. export PATH=${PATH}:/Users/macuser/android-sdk/platform-tools/ export PATH=${PATH}:/Users/macuser/android-sdk/tools/ export STUDIO_JDK=/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Conents/Home export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Conents/Home export PATH=$JAVA_HOME/bin:$PATH export M2_HOME=/Library/Maven export M2=$M2_HOME/bin export PATH=$M2:$PATH export ANDROID_HOME=/Users/macuser/android-dsk export ANT_HOME=/Users/macuser/apache-ant-1.9.4 export PATH=$ANT_HOME/bin:$PATH export KAPSEL_HOME=/Users/macuser/SAP/MobileSDK3/KapselSDK *Please ensure the value matches your path_folder_location. 28

Set Up SCN Hybrid App Toolkit Download SCN Hybrid App Toolkit SAP Web IDE Hybrid App Toolkit Add-on enables developers to create and deploy hybrid apps (also known as Cordova or Kapsel apps) using Apache Cordova and the SAP Mobile Platform SDK. 1. Log on to SAP Store and search for SCN Hybrid App Toolkit Add-On. "Click Trial Version. 2. Fill out the Download trial version form and click Submit. 29

3. Click OK. 4. Download by clicking the click here link. The link is valid for 48 hours only. 30

5. Please verify SAP Web IDE version and download the appropriate Hybrid App Toolkit Add-On version and save the file locally. Note: as of the writing of this document the latest version of HAT is 1.9.3 please download and install it. 6. If an error occurs when downloading, please e-mail store.admin@sap.com or use one of the options available on the home page to contact SAP Store personnel. 7. Unzip the file to C:\sap (e.g. C:\SAP\SAP_HAT_local-1.x.x) and go to the next section. This completes HAT installation. 31

Install SCN Hybrid App Toolkit In this section, we will set up and configure HAT. This section was created using HAT 1.9.3 1. Run setup.cmd from the HAT directory. Your browser will open. You will see the Important Notes dialog. Click x on right-hand corner to close. 2. (Setup Page 1) Run Check All. If you are missing any required pre-requisites, this screen will show what needs to be fixed and in many cases it will allow you to fix the error for you by simply click on the error message. 32

3. (Setup page 1) Once the prerequisites are checked, you will automatically proceed to Setup Page 2 (Install Hybrid App Toolkit). 4. (Setup page 2) Configure HAT Connector for SAP Web IDE - Enter your WebIDE URL and click Save. Your WebIDE URL can be found in the HCP Cockpit > Subscriptions > Web IDE > Application URL. 33

5. (Setup Page 2) Configure Path for Custom Plugins 6. Set the certificate password and click Save. 34

7. After you click Generate, you may see User Access Control dialog box asking you to allow HAT to make changes to your computer. Click Yes. 8. You ll be automatically directed to Setup Page 3. 35

9. (Setup Page 3) You will build the Companion app. The fields (in the second step) should be prepopulated, so simply save the configuration. Once the process is completed, you ll receive a Setup completed successfully! message. 10. (Setup Page 3) Your Companion app will being to build You may experience high-cpu spike. 36

11. (Setup Page 3) Once the app is built, you will be prompted with Setup completed successfully! message. Click OK to exist setup. 12. You can close the setup page. This completes HAT installation section. 37

Run SCN Hybrid App Toolkit 1. Open Command Prompt from your HAT directory and type run.cmd 2. Open the browser to https://localhost:9010 and verify that the connector is running. 38

Set WebIDE Hybrid App Toolkit Plugin 1. Open WebIDE 2. Go to Tools > Preferences 3. Enable com.sap.webide.hybrid. Choose Plugins > Optional Plugins 4. Click Test Connection. You should see the message the connection is available. If you run into an error, please ensure that your browser cookies. 39

CREATE SAP WEB IDE KAPSEL APPLICATION Set Up HCP Destination In order to connect to a back end from SAP Web IDE, you will need to select an HCP destination. 1. Open your HCP cockpit and choose Destinations > New Destination. 2. Provide destination configuration (as seen below) and click Save. 3. Review your changes. 40

Create Sample Application 1. Open SAP Web IDE and choose New Project from Template. 2. Click the All Categories dropdown and select SAPUI5 Mobile Application. 41

3. Select SAPUI5 Master Detail Kapsel Application and click Next. 4. Provide a project name and click Next. 42

5. Click Service URL. Service Information, click drop-down and select Northwind and provide the service URL. You can obtain the service URL from http://services.odata.org/ > Browse the Full Access (Read- Write) Service, change the URL version from V3 to V2 and press Enter. Paste this URL in Service URL section and click arrow besides workspace. The details will populate and Next button will be enabled. Change V3 to V2 (and press Enter). (Note, V3 is currently not supported). 43

6. Fill out the details of this application and click Next. Below are sample Main Data Fields, Details Section, and Information Section 44

7. Click Finish. 8. Now let s Run your app. Expand your app and highlight index.html and click Run button form button bar. 9. A new browser window will open and you ll be able to review your app by running it. 45

Connect App Using Android Emulator Before you can run on an emulator, you will have to configure your project settings. 1. Right-click your project and select Project Settings and select Project Settings and choose Device Configuration from the list 46

2. Configure Project Settings Provide Application information and Build Options (default) that will be used to define your application. App Name Name displayed App ID unique identifier (e.g. com.sap.yourname.mobileapp) Description (optional) Version App Version (e.g. 1.0.0) Select a platform. 47

Plugins Cordova - Select at least one plugin. Plugins Kapsel Select at least one plugin; some users have had issues with only Cordova plugin being selected. 48

Preferences You can set a global platform icon or set specific Android settings (see next screen). Once you set preferences, click Save and Close....Click Android tab to set specific preferences. Once you set preferences, click Save and Close. 49

3. Now you are ready to run on a connected device or an emulator. The following scenario is using Android Emulator. Right-click your project and choose Run > Run on > Android Emulator. If you don t see the option, then right-click index.html file and choose Run > Run on > Android Emulator (or device if you have it connected). 50

4. Setup the release key for Android Set an application key Test Key Use system generated application key (and click OK) Custom Key Use your own application key (fill out information and click OK) 51

Your application will start to build the build time may take some time. 5. Your emulator will start. Click All Apps. 6. Select your app. 52

7. Open your app. If your app does not show any results, then change the service url in your components.js file of your mobile app in SAP Web IDE to absolute URL (i.e. http://services.odata.org/v2/(s(11adut1ba5ftryxkhykvnuni))/odata/odata.svc/) and deploy mobileapp to HAT again. 53

TROUBLESHOOTING This section covers basic troubleshooting tips. SAP Mobile SDK Issues downloading SDK 1. If you have issues downloading SAP Mobile SDK, please contact store.admin@sap.com 2. If you have trouble installing SAP Mobile SDK, make sure no other applications are running and run the installer again by right-clicking and choosing the run as administrator option. 54

SCN Hybrid Application Toolkit Node.js Tips If you need to use a specific version of Node.js with HAT, try using Node Version Manager (Windows). Run the following in Windows Command Prompt in your nodejs installation directory: C:\nodejs>npm install -g nvmw C:\nodejs >nvmw install v0.10.33 C:\nodejs >nvmw use v0.10.33 # Install nvmw globally # Install a specific version number # Use the specific version Other options: nvmw help nvmw install [version] nvmw uninstall [version] nvmw use [version] nvmw ls # Show this message # Download and install a [version] # Uninstall a [version] # Modify PATH to use [version] # List installed versions On Mac, you can try using: # npm install g n # Install n globally # n 0.10.33 # Install and use v0.10.33 If you have issues with installation/uninstallation of Node.js, try removing the nodejs or nvmw (if installed) directory in C:\Users\<your_user_account 55

Git Installation and Tips Please refer to the installation document on the Git web site at https://git-scm.com/book/en/v2/getting- Started-Installing-Git 56

How to Change Apache Cordova Version If you need to change an Apache Cordova version, you can use the following commands: >npm install g cordova@5.1.1 See the latest documentation at https://cordova.apache.org/docs/en/5.1.1/guide_cli_index.md.html#the%20command-line%20interface 57

Tips on Running HAT (v1.7 or later) 1. When running HAT setup.cmd, you see ERROR not compatible. Simply update Node.js and restart your computer (if necessary) and run setup.cmd again. See the Node.js Tips section for updating versions. 2. When running HAT setup.cmd, you see ERROR: bower cannot be found! Simply let the process install bower and continue. If you still run into an error, simply install Bower manually in a Command Window: npm install g bower 58

3. If you have installed Node v0.10.40 and the HAT installer errors out, please try installing Node v0.10.39 and running HAT setup again. 4. JAVA_HOME not set correctly when checking HAT prerequisites. Review the Setup PATH Variables sections and ensure the path points to your java directory. 5. Cordova version warning. While Cordova version 5.2.0 may work, you may have issues starting up HAT and thus you should downgrade it by running Cordova 5.1.1. You can install Cordova by running npm install g cordova@5.1.1 from Windows Command Prompt or Mac Terminal. 59

6. Cordova build android project error when checking HAT prerequisites. Ensure JAVA_HOME is set correctly (see #3 above). 7. Kapsel is not recognized warning when checking HAT prerequisites. Open Windows Command Prompt and run npm install g from your C:\SAP\MobileSDK3\kapselSDK\cli directory. 60

Errors when Running Android Emulator 1. When launching Android Emulator, you encounter x86 emulation error. If you are running Android Studio, open AVD Manager. 61

2. When launching AVD, you receive a message that it is already running. Simply delete the lock file and start again. 62

How to Configure a Proxy for NPM If you require a connection via a proxy server, you need to configure the proxy manually using the NPM command. 1. Open Windows Command Prompt and check the proxy settings by running npm config list. If you previously set a proxy and would like to remove it, run npm config del proxy and/or npm config del https-proxy. 2. Set an HTTP proxy by running npm config set proxy <protocol>:://<proxyhost>:<proxyport> 3. Set an HTTPS proxy by running npm config set https-proxy <protocol>:://<proxyhost>:<proxyport> 4. Run npm config list to review the changes. 63

How to Configure a Proxy for GIT If you require a connection via a proxy server, then you need to configure the proxy manually using the GIT command. 1. Open Windows Command Prompt and check the proxy settings by running git config --list. If you previously set a proxy and would like to remove it, run git config global unset http.proxy and/or git config global unset https.proxy. 2. Set an HTTP proxy by running git config --global http.proxy <protocol>:://<proxyhost>:<proxyport> 3. Set an HTTPS proxy by running git config --global https.proxy <protocol>:://<proxyhost>:<proxyport> 4. Run git config --list to review the changes. 64

How to Configure a Proxy for Plugman If you require a connection via a proxy server, then you need to configure the proxy manually using the plugman command. 1. Open Windows Command Prompt and check the proxy settings by running plugman config list. If you previously set a proxy and would like to remove it, run plugman config del proxy and/or plugman config del https-proxy. 2. Set an HTTP proxy by running plugman config set proxy <protocol>:://<proxyhost>:<proxyport> 3. Set an HTTPS proxy by running plugman config set https-proxy <protocol>:://<proxyhost>:<proxyport> 4. Run plugman config list to review the changes. 65

Troubleshoot HAT Connection Issue when Using the Firefox Browser If you are using Firefox and encounter a Connection Failure issue (or if you receive the message in Chrome), make sure the toolkit is running and check to ensure that the proxy is set. Click the Add Exception button. Click Confirm Security Exception. 66

How to Start the SAP Web IDE Console If you run into any other issues, it may be helpful to see messages in the SAP Web IDE console. You can start the SAP Web IDE console by choosing View > Console. You will see the console opened at bottom of your main view. 67

www.sap.com 2015 SAP SE or an SAP affiliate company. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP SE or an SAP affiliate company. SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE (or an SAP affiliate company) in Germany and other countries. Please see http://www.sap.com/corporate-en/legal/copyright/index.epx#trademark for additional trademark information and notices. Some software products marketed by SAP SE and its distributors contain proprietary software components of other software vendors. National product specifications may vary. These materials are provided by SAP SE or an SAP affiliate company for informational purposes only, without representation or warranty of any kind, and SAP SE or its affiliated companies shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP SE or SAP affiliate company products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty. In particular, SAP SE or its affiliated companies have no obligation to pursue any course of business outlined in this document or any related presentation, or to develop or release any functionality mentioned therein. This document, or any related presentation, and SAP SE s or its affiliated companies strategy and possible future developments, products, and/or platform directions and functionality are all subject to change and may be changed by SAP SE or its affiliated companies at any time for any reason without notice. The information in this document is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. All forward-looking statements are subject to various risks and uncertainties that could cause actual results to differ materially from expectations. Readers are cautioned not to place undue reliance on these forward-looking statements, which speak only as of their dates, and they should not be relied upon in making purchasing decisions.