create and run apps on hana cloud in sap river rde · 2019-11-12 · create and run apps on hana...

16
SAP River Rapid Development Environment How-To Guide Provided by Customer Experience Group Create and run apps on HANA Cloud in SAP River RDE Applicable Releases: SAP River Rapid Development Environment 1.0 Version 1.0 - May 2014

Upload: others

Post on 07-Aug-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Create and run apps on HANA Cloud in SAP River RDE · 2019-11-12 · Create and run apps on HANA Cloud in SAP River RDE 4 1. BUSINESS SCENARIO SAP River Rapid Development Environment

SAP River Rapid Development Environment How-To Guide

Provided by Customer Experience Group

Create and run apps on HANA Cloud in SAP River RDE Applicable Releases: SAP River Rapid Development Environment 1.0 Version 1.0 - May 2014

Page 2: Create and run apps on HANA Cloud in SAP River RDE · 2019-11-12 · Create and run apps on HANA Cloud in SAP River RDE 4 1. BUSINESS SCENARIO SAP River Rapid Development Environment

Create and run apps on HANA Cloud in SAP River RDE

2

Document History

Document Version Authored By Description

1.0 Customer Experience

Group

First release of this guide

Page 3: Create and run apps on HANA Cloud in SAP River RDE · 2019-11-12 · Create and run apps on HANA Cloud in SAP River RDE 4 1. BUSINESS SCENARIO SAP River Rapid Development Environment

Create and run apps on HANA Cloud in SAP River RDE

3

TABLE OF CONTENTS

1. Business Scenario ................................................................................................................................. 4

2. Background Information ...................................................................................................................... 4

3. Prerequisites ........................................................................................................................................ 4

4. Step-by-Step Procedure ....................................................................................................................... 5 4.1 Create a new application on SAP HANA Cloud.................................................................................. 5 4.2 Clone the app repository to SAP River RDE ....................................................................................... 7 4.3 Create a SAP River RDE app and upload to the repository ................................................................ 9 4.4 Activate and test the app on the HANA Cloud .................................................................................13 4.5 Run the application from SAP River RDE .........................................................................................15

Page 4: Create and run apps on HANA Cloud in SAP River RDE · 2019-11-12 · Create and run apps on HANA Cloud in SAP River RDE 4 1. BUSINESS SCENARIO SAP River Rapid Development Environment

Create and run apps on HANA Cloud in SAP River RDE

4

1. BUSINESS SCENARIO

SAP River Rapid Development Environment (or SAP River RDE) is a next-generation cloud-based meeting space where multiple project stakeholders can work together from a common web interface -- connecting to the same shared repository with virtually no setup required. It includes multiple interactive features that allow you to collaborate with your colleagues and accelerate the development of your HTML5/UI5 applications. 2. BACKGROUND INFORMATION

In this How-To Guide we will see how to create and run a SAP UI5 application on HANA Cloud through SAP River RDE. SAP HANA Cloud Platform is the in-memory Platform-as-a-Service offering from SAP, which enables customers and developers to build, extend, and run applications on SAP HANA in the cloud. With flexible subscription models and optional services for apps, database, and infrastructure, it provides instant access to the full power of SAP HANA.

3. PREREQUISITES

To connect to your SAP River RDE system, open the browser and enter the URL of your system. You need a valid account on the https://account.hanatrial.ondemand.com portal in order to follow the steps shown in this guide and to subscribe to the RDE service on this platform.

Page 5: Create and run apps on HANA Cloud in SAP River RDE · 2019-11-12 · Create and run apps on HANA Cloud in SAP River RDE 4 1. BUSINESS SCENARIO SAP River Rapid Development Environment

Create and run apps on HANA Cloud in SAP River RDE

5

4. STEP-BY-STEP PROCEDURE

This is the sequence of steps:

1) Create a new application on SAP HANA Cloud 2) Clone the app repository to SAP River RDE 3) Create a SAP River RDE app and upload the repository 4) Activate and test the app on the HANA Cloud 5) Run the app from SAP River RDE

4.1 Create a new application on SAP HANA Cloud The first step is to create a new application in the HANA Cloud. This operation will automatically create a new Git repository to store all the files for this new application.

...

1. Open SAP HANA Cloud

2. Select HTML5 Applications and create a new HTML5 application by clicking on the button New Application

3. Enter the name of the new app (“mynewhtml5app” in this example) and click on Create

4. When the application is ready, click on its name to explore the content

Page 6: Create and run apps on HANA Cloud in SAP River RDE · 2019-11-12 · Create and run apps on HANA Cloud in SAP River RDE 4 1. BUSINESS SCENARIO SAP River Rapid Development Environment

Create and run apps on HANA Cloud in SAP River RDE

6

5. At moment there is nothing inside. Click on Development

6. Write down or copy in the clipboard the Git Repository Link for this new app. This is the container where we are going to put the application created through SAP River RDE

Page 7: Create and run apps on HANA Cloud in SAP River RDE · 2019-11-12 · Create and run apps on HANA Cloud in SAP River RDE 4 1. BUSINESS SCENARIO SAP River Rapid Development Environment

Create and run apps on HANA Cloud in SAP River RDE

7

4.2 Clone the app repository to SAP River RDE We need now to mirror our application created in the HANA Cloud to our SAP River RDE environment, so that we can start working with it.

...

1. Open SAP River RDE

2. Click on File Git Clone Repository

3. Paste the link you have got in the previous step, provide your credentials for the authentication (I-user and SCN Password for SAP users) and click on OK

Page 8: Create and run apps on HANA Cloud in SAP River RDE · 2019-11-12 · Create and run apps on HANA Cloud in SAP River RDE 4 1. BUSINESS SCENARIO SAP River Rapid Development Environment

Create and run apps on HANA Cloud in SAP River RDE

8

4. The repository has been cloned. You have a new empty folder in your SAP River RDE tool

Page 9: Create and run apps on HANA Cloud in SAP River RDE · 2019-11-12 · Create and run apps on HANA Cloud in SAP River RDE 4 1. BUSINESS SCENARIO SAP River Rapid Development Environment

Create and run apps on HANA Cloud in SAP River RDE

9

4.3 Create a SAP River RDE app and upload to the repository ...

For the scope of this example we will create just an HTML page for this new application: just to show the entire workflow. Of course, you can create whatever more complex application using one of the templates provided out of the box from SAP River RDE.

Choose the me nu o ption File -> N ew - > Proj ect

1. Open SAP River RDE

2. Select the application we have just created, and click on the New File button on the toolbar

3. Type index.html as the name of the file and click on Create

4. Put the following code in the file and save it:

<!DOCTYPE HTML>

<html>

<head>

<title>Web Master Page</title>

<style type="text/css">

div

{

width:100px;

height:75px;

background-color:red;

border:1px solid black;

}

</style>

</head>

<body>

<div>Hello, World!</div>

</body>

</html>

Page 10: Create and run apps on HANA Cloud in SAP River RDE · 2019-11-12 · Create and run apps on HANA Cloud in SAP River RDE 4 1. BUSINESS SCENARIO SAP River Rapid Development Environment

Create and run apps on HANA Cloud in SAP River RDE

10

5. Keeping the index.html file selected, click on the Run button on the toolbar. This will run the application in the preview window of SAP River RDE: just to test it’s working fine

6. The application works fine. Let’s close the preview window

Page 11: Create and run apps on HANA Cloud in SAP River RDE · 2019-11-12 · Create and run apps on HANA Cloud in SAP River RDE 4 1. BUSINESS SCENARIO SAP River Rapid Development Environment

Create and run apps on HANA Cloud in SAP River RDE

11

7. Click on View Git Pane to open the SAP River Git client

8. When the Git Pane shows up, be sure the “mynewhtml5app” application is still highlighted. In the Git

Pane you should see that there are two files (the one we created and another created automatically by SAP River RDE to store the project’s settings).

9. Click on Stage All to mark all the files for staging, put a description for the commit and click on the Commit button. The files will be sent to the local repository

Page 12: Create and run apps on HANA Cloud in SAP River RDE · 2019-11-12 · Create and run apps on HANA Cloud in SAP River RDE 4 1. BUSINESS SCENARIO SAP River Rapid Development Environment

Create and run apps on HANA Cloud in SAP River RDE

12

10. After commit, a new line will appear in the Unsynced Committed Changes section. This means that our files are ready to be submitted to the remote repository, in other words to be sent to the HANA Cloud for being stored there. Click on the Push button

11. Enter your credentials and click on OK

12. Now the list of packages to push is empty. Files have been sent to HANA Cloud repository

13. If you refresh the cockpit, a new line will appear in the HANA Cloud cockpit for your application

Page 13: Create and run apps on HANA Cloud in SAP River RDE · 2019-11-12 · Create and run apps on HANA Cloud in SAP River RDE 4 1. BUSINESS SCENARIO SAP River Rapid Development Environment

Create and run apps on HANA Cloud in SAP River RDE

13

4.4 Activate and test the app on the HANA Cloud ...

The application we have just created is note yet ready to be run: it needs to be activated first.

Choose the me nu o ption File -> N ew - > Proj ect

1. Open HANA Cloud and go back to your app

2. Select the new line in the app and click on the button to create a new version

3. Put for example 1.0 and click on Add

4. The new version has been created

5. Click on Version Management, locate the version you have just created and click on the Activate button to make this version active

Page 14: Create and run apps on HANA Cloud in SAP River RDE · 2019-11-12 · Create and run apps on HANA Cloud in SAP River RDE 4 1. BUSINESS SCENARIO SAP River Rapid Development Environment

Create and run apps on HANA Cloud in SAP River RDE

14

6. Answer Yes

7. The new version is active now. If you click on the version itself you will execute it

8. The application works fine

Page 15: Create and run apps on HANA Cloud in SAP River RDE · 2019-11-12 · Create and run apps on HANA Cloud in SAP River RDE 4 1. BUSINESS SCENARIO SAP River Rapid Development Environment

Create and run apps on HANA Cloud in SAP River RDE

15

4.5 Run the application from SAP River RDE ...

This is our final step: we need just to launch this new app from SAP River RDE.

Choose the me nu o ption File -> N ew - > Proj ect

1. Open SAP River RDE

2. Select the index.html file inside your application and click on Run Run on SAP HANA Cloud

3. Enter your credentials and click on Run. The Account name can be taken directly from the HANA Cloud cockpit

4. In case you don’t get any page, don’t forget to disable the pop-ups lock in your browser

5. The application is finally executed in the HANA Cloud

Page 16: Create and run apps on HANA Cloud in SAP River RDE · 2019-11-12 · Create and run apps on HANA Cloud in SAP River RDE 4 1. BUSINESS SCENARIO SAP River Rapid Development Environment

© 2014 SAP AG. All rights reserved.

SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP

BusinessObjects Explorer, StreamWork, SAP HANA, and other SAP

products and services mentioned herein as well as their respective

logos are trademarks or registered trademarks of SAP AG in Germany

and other countries.

Business Objects and the Business Objects logo, BusinessObjects,

Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and

other Business Objects products and services mentioned herein as

well as their respective logos are trademarks or registered trademarks

of Business Objects Software Ltd. Business Objects is an SAP

company.

Sybase and Adaptive Server, iAnywhere, Sybase 365, SQL

Anywhere, and other Sybase products and services mentioned herein

as well as their respective logos are trademarks or registered

trademarks of Sybase Inc. Sybase is an SAP company.

Crossgate, m@gic EDDY, B2B 360°, and B2B 360° Services are

registered trademarks of Crossgate AG in Germany and other

countries. Crossgate is an SAP company.

All other product and service names mentioned are the trademarks of

their respective companies. Data contained in this document serves

informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials

are provided by SAP AG and its affiliated companies ("SAP Group")

for informational purposes only, without representation or warranty of

any kind, and SAP Group shall not be liable for errors or omissions

with respect to the materials. The only warranties for SAP Group

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.

www.sap.com