SAP HANA Cloud - Modeling Deep Dive - Unit 1

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 71

Unit 1 - Preparing the Modeling Environment

Getting Started with SAP Business Application Studio


 Describe SAP Business Application Studio and how SAP HANA Cloud fits into this.
SAP Business Application Studio
Before we get started developing data models in SAP HANA Cloud, we should introduce the key tool we will use : SAP
Business Application Studio

SAP Business Application Studio is a web-based Integrated Development Environment (IDE) supporting a wide variety
of development scenarios. One of those scenarios is data modeling in SAP HANA Cloud.
Business Application Studio natively supports Git for source file version management. Git controls are embedded into
the Business Application Studio interface.

Business Application Studio is based on Theia, which is a project from the Eclipse Foundation to which SAP
Contributes. It is plug-in compatible with Microsoft Visual Studio Code. This makes it easy to add extensions and there
are many open-source extensions available that improve productivity of the developer.

Why is SAP Moving to Business Application Studio?


Historically, SAP HANA applications were developed using SAP Web IDE. SAP Business Application Studio is a next
generation IDE and offers customers tools that are commonly used by the coding community worldwide. Many
developers will already be familiar with development tools that look a feel the same, such as Microsoft Visual Studio.

SAP Business Application Studio will be the common IDE for all non-ABAP SAP products.

It offers a very good performance, and it is open, flexible and customizable. You can add lots of different plus-ins to
improve productivity of developers.

Web IDE for SAP HANA can also be used for modeling in SAP HANA Cloud but is not recommended as it misses many
additional productivity aids and features that supports the modeler. Web IDE will not be developed further and Business
Application Studio will be the tool that receives all new features. Business Application Studio is the recommended tool for data
modeling in SAP HANA Cloud.

Working with Development Spaces


 Create a Development Space for your modeling content in SAP Business Application Studio.
Development Spaces in Business Application Studio
In SAP Business Application Studio, each developer has his/her own environment. This environment is made up of one or
more Development Spaces.
Be careful not confuse development spaces with cloud foundry spaces.
When you create a development space, you will be asked to choose tools, known as extensions, that you require. For modeling in
SAP HANA Cloud it is essential that you include the SAP HANA Calculation View Editor extension in your development space.
This is a key tool that you will use.
Watch this video to learn about configuring a Development Space and choosing extensions.
Managing Development Spaces
The landing page of SAP Business Application Studio contains the list of Development Spaces. You may have access to
more than one. This list Includes:

 The name of the Development Space


 The kind of application
 The status: STOPPED, STARTING, RUNNING, etc.
 Creation date
 ID

A Development Space must be running before you can work in it. You start it up from the landing page. When it is running, the
name of the Development Space "becomes" a hyperlink that you use to enter your Development Space.
Any Development Space automatically stops after some idle time, to preserve resources. So, be sure to always check the status of a
development space in the landing page before connecting to that space. This is especially true if you bookmark the URL of a
development space, which includes the space ID,

Creating Several Development Spaces

Depending on the SAP BTP subscription, there might be some limitations to the maximum number of spaces that you can create,
and the maximum number of spaces that can be running in parallel.
In an SAP BTP Trial account, you can define up to two Development Spaces and only one of these can be running at a time. If you
need to swap development spaces, you must first stop the one you were using.

Maintenance of Development Spaces


Once a Development Space is created, its name and kind of application cannot be changed. However, you can modify the list of
optional extensions to add or remove some. Before you can do that, the Development Space must be stopped.
It is also possible to export the entire content of a Development Space as a compressed .tar.gz archive. Before you can do that,
the Development Space must be running. At the end of the Development Space export, you are given detailed information on how
to import the Development Space content into another one. Generally, the target Development Space should be an empty one.

Create a Development Space


Demo
Getting Access to SAP Business Application Studio
SAP Business Application Studio is provided as a web-based application, with the back-end running on SAP Business Technology
Platform (BTP). You subscribe to SAP Business Application Studio service at the BTP sub-account level. You do this in BTP
Cockpit.
Before you can launch SAP Business Application Studio from your browser, the following steps are required. Some relate to the
BTP account or sub-account, others are specific to the user that will use Business Application Studio.
When these steps are complete, you are ready to launch SAP Business Application Studio.
Watch this video to learn about steps to launch the SAP Business Application Studio.
Creating a New Project in SAP Business Application
Studio
 Create a modeling project in SAP Business Application Studio.
Projects in SAP Business Application Studio
The File Structure in the Repository of SAP Business Application Studio
In SAP Business Application Studio, projects are created in a folder structure that is specific to your user and your development
space.
Watch this video to learn about file structure in the repository of SAP Business Application Studio.

When a project is opened in the Explorer view, you can navigate its content (sub-folders and files), open files with the editor, delete
or move files, and so on.
The ribbon at the top of the Explorer view shows the name of the folder (capitalized). It is opened as a workspace, meaning that
specific Business Application Studio settings can be associated to the folder.

Creating a Project from a Template


If you are starting from scratch and not working on an existing project, you use the Start from Template button on the Welcome tab.
This wizard creates an near-empty project with only the base files provided to get you started.

Create a New Project from a Template


demo
Importing an Existing Project in SAP Business
Application Studio
 Import a Project into your Workspace of SAP Business Application Studio.
Import Development Content
Sharing Development Content using Git
Git is the preferred method for sharing development content in an SAP HANA Cloud project. Sharing means importing and
exporting content with other developers.
Git is used to manage source code in an application development environment. It provides tools for developers who need to
collaborate on projects and work in parallel. Git provides sophisticated features to manage source code especially in large projects
where multiple team member need to work together and share objects without overwriting each others' work.
SAP Business Application Studio includes Git allowing you to manage the life-cycle of your source code locally, but also to
connect to a remote corporate/public Git repository to interact with other developers, share code, and so on.
Git operations can also be invoked from the terminal, which is suitable for experienced Git users, or from the Git view which gives
you access to the base Git functionality in a more guided and visual approach.

Importing Development Content without Git


Although Git is recommended, you could also use the simpler import features of SAP Business Application Studio to bring in
content into your workspace. You can copy a complete project or just parts of a project to your existing workspace or start a new
workspace. Be careful when using these tools as there is no tracking and version controls as you have with Git.
Import

When using File → Upload Files and drag and drop from your Windows File Explorer, the uploaded content might overwrite
existing content (same file name and same target folder). You do not get any warning.

Exporting Development Content without Git


You can easily export development content using the simple download option of Business Application Studio.
Import a project
demo
Navigating SAP Business Application Studio
 Describe the layout and features of SAP Business Application Studio that are relevant to modeling.
The Interface of SAP Business Application Studio
Watch this video to learn about the Business Application Studio Interface.
SAP Business Application Studio offers a lot of different ways to perform the same action: menu commands, keyboard shortcuts,
quick commands, and so on. The different views on the left are there to cover your need as a developer. Explore the file structure to
create/modify/move/delete files, search/replace within file content, connect your workspace to Git, Debug, and so on.

The list of available views depend on the extensions that are included by default (depending on the kind of application
your development space was created for) or added as options.

Some of the views are added automatically as icons to the very left of the screen, others are not; but you can anyway
open any existing view by choosing Choose → Open View.

Some views have their own left pane, while others appear as a sub-pane of another one. For example, the SAP HANA
Projects and Java Projects views are presented in the same Explorer view.

To get a neat workplace, you can easily hide the icons of the views you do not need, and also hide any additional
extension-related pane.

SAP Business Application Studio Editors


Watch this video to learn about the text editor and running commands.
The Quick Command feature is a powerful way to execute repetitive or one-time actions. The available commands come under
different categories, such as Cloud Foundry, CDS, graphical modeling, and so on. Exactly like the views, the quick commands
depend on the extensions installed in your development space.
The status bar of SAP Business Application Studio provides several types of information. Among these are notifications,
information on problems (warnings or errors) in your code.
Another important piece of information if you work in Cloud Foundry is the Cloud Foundry status and, if applicable, Cloud
Foundry target. It also provides Git-related information, when a project is Git-enabled, such as the name of the checked-out branch.

Work with Base Features of Business Application Studio


demo

You might also like