Skip to content
This repository has been archived by the owner on Jul 2, 2022. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Getting Started - Setting up your Development Environment

Welcome to the workshop 'Creating Simple Fiori elements apps with OData V4'.
This workshop will guide you step-by-step through the process of creating a Fiori elements floorplans for OData V4 app.
Based on a SAP Cloud Application Programming Model service equipped with basic UI annotations, you will learn how to generate and enhance a
List Report Object Page Fiori elements application with the help of Fiori tools and CDS annotation modelling.

Setting up Business Application Studio in an SAP Cloud Platform Trial Account

If you don't have an SAP Cloud Platform account already, you can create your own here.

New Trial Users

After having registered your new user, start your trial via this link
At first time log in, you'll be asked to select your preferred region. This will start the set up of your account.

Trial Setup

Your subaccount, org and space is created automatically, along with the necessary role configurations and subscriptions.
When done, the subaccount overview page is shown.

Existing Trial Users

In your subaccount, choose 'Subscriptions' in the left-hand navigation.
Choose 'SAP Business Application Studio' in the list of available subscriptions.
Choose 'Subscribe'.
Navigate back to your subaccount overview page.

Accessing SAP Business Application Studio

Click on the Quick Tool Access icon SAP Business Application Studio.

Welcome SCP Trial

Creating the Development Space

Click on the button Create Dev Space.

Create Dev Space

Enter a name for your development space and select application profile Full Stack Cloud Application.

Select Profile

In the lower right corner of the page press button Create Dev Space.

confirm

Once your development space has status running, click on the development space name to open it.

enter dev space

Getting the Sample Scenario

Get the GitHub repository clone Url from the repository's landing page.
Click on button Code (1), then click icon (2).

copy link

In the dev space, you will see a Welcome Page.
Click on tile Clone from Git.

Click on link "Clone from Git"

Alternatively, you can go via menu View->Find Command... and search for command git clone.

command git clone

Paste the repository link into the input field.

https://github.com/SAP-samples/teched2020-IIS360.git

Enter the github repository URL

When the cloning is finished, open a workspace by clicking the button in the project explorer

open workspace

Select folder teched2020-IIS360 and click Open. This will restart SAP Business Application Studio and show the selected workspace folder content in the explorer pane.

select ws folder

(3) Open a new terminal via the header menu.

new terminal

In the terminal window, make sure that the command line prompt shows folder teched2020-IIS360.

command line prompt

Type the following commands and confirm with return:

  • npm install (this installs all node modules as defined in the projects package.json)
  • cds w (this compiles the service and runs it in watch mode)

(4) Click button Expose and Open on the appearing dialog

expose button

You can now provide an alias for the exposed port.
(5)Enter 'preview' in the input field. Confirm with 'Enter'.

SAP Business Application Studio - Google Chrome

A browser is opened.
(6) Click the $metadata link to get the OData services metadata shown.

metadata

Reopen the Exposed Port

If you closed the preview browser tab, you can reopen it by applying the following steps.

(7) Click View -> Find Command....

SAP Business Application Studio - Google Chrome

(8) Enter port in the dialogs input field to filter the available commands.

SAP Business Application Studio - Google Chrome

(9) Select .

SAP Business Application Studio - Google Chrome

(10) A list with exposed ports is shown. Selecting one opens up a new browser tab.

SAP Business Application Studio - Google Chrome

Summary

With the setup procedure done, you now have completed:

  • setting up the SAP Cloud Platform trial account
  • Access to SAP Business Application Studio
  • Creation of your development space
  • Setting up the sample OData V4 service in SAP Business Application Studio

Continue to - Exercise 1 - Generating an SAP Fiori Elements App