Вы находитесь на странице: 1из 25

openSAP

Next Steps in SAP HANA Cloud Platform


WEEK 1, UNIT 1
00:00:09

Hi and welcome to the course Next Steps in SAP HANA Cloud Platform.

00:00:19

My name is Rui Nogueira. I'm working in the SAP HANA Cloud Platform Product Management
and I will be your instructor for this course.

00:00:25

The course will consist of 6 weeks ,plus 1 week for the final exam. In each week there will be a
number of videos similar to the one that you are watching now.

00:00:36

At the end of each video there will also be a self test helping you to measure your progress and
at the end of each week, we will have weekly assignments.

00:00:45

These assignments are graded and you earn points towards your Record of Achievement. We
also have an online forum where you can collaborate with fellow students as well as to ask
questions.

00:00:58

Finally, you can expect that it will take you about a half of day effort to complete each week in
this course.

00:01:04

To be able to follow all of the units of this course, you should have already walked through the
openSAP course introduction to SAP HANA Cloud Platform.

00:01:14

So now let's start with Week 1, where we will look into SAP HANA Native Development on the
SAP HANA Cloud Platform.

00:01:23

In Unit 1 of this week, we will look into some basics around the HANA Native Development.

00:01:31

The HANA Cloud Platform currently provides 3 packages that you can use to run HANA in the
Cloud.

00:01:42

The first package is the HANA Infrastructure Services Package that allows customers and
partners who already have a HANA license to run HANA in the Cloud.

00:01:53

If you don't have a HANA license yet, as a customer or partner you can use the HANA DB
Services that provides exactly that on top of the Infrastructure Services.

00:02:05

If you want to develop and deploy applications in the Cloud you can use the HANA App
services, which is the package that we will also use in course

00:02:17

and the one that is also used in the trial landscape for the developer license that you use.

00:02:25

You have a native development here in this graphic, so the HANA Cloud Platform supports the
full set of HANA Applications and development languages.

00:02:40

The term SAP HANA Native Application refers to a scenario where applications are
developed in design time environment provided by SAP and use integrated SAP HANA
Platform feature sets.

00:02:54

For example, such an SAP HANA Native Application consists of an application and
corresponding artifacts that are stored in the SAP HANA repository.

00:03:06

These artifacts present database and calculation logic, SQL tables, views and stored

procedures.
00:03:16

We also have control flow logic with SAP HANA XS and ODdata and user interfaces built with
HTML 5

00:03:26

or SAP UI5 but all of this is of course, also handled in a separate course that you can also get
here on the openSAP Platform called HANA Native Development.

00:03:41

Now let's go into the differences between the usage of the HANA Cloud Platform for productive
users

00:03:54

and for users who are using the developers license on the trial landscape.

00:04:01

So if you are a productive user, you have on the HANA Cloud Platform a full feature set of an
SAP HANA instance.

00:04:08

You have service level agreements guaranteed. So 24/7 support and also 99.9% platform
availability.

00:04:19

Meaning a complete enterprise support. With the developer license and the trial landscape we
have a tenant like working mode for the HANA instances

00:04:33

meaning that you share your account with others on one hardware, on one HANA machine

00:04:42

and the isolation of development and the applications is done on an SAP HANA scheme

00:04:52

and on the SAP HANA repository package level and we will see also later on when we do the
exercise what this looks like.

00:04:59

The SAP HANA database user that you use will have restricted permissions and the HANA
functionality is also narrowed

00:05:11

but you can still follow all of the exercises that we will run in this course.

00:05:22

So, let's look now into some specifics, some additional specifics around the trial landscape. So
as I said, you have a database user

00:05:32

and later on in the exercise you will see that this database user is called Dev_ after it that you
will be assigned to automatically.

00:05:42

This user will have full access to a dedicated developer schema which starts with NEO_

00:05:54

and you have full access to the repository package that is created automatically for you and
you will see that package also in the exercise.

00:06:04

It starts with your account name, followed by the instance that you can create yourself on the
HANA Cloud Platform.

00:06:10

On schemas like SYS_BIC and SYS_AFL you will have limited access and there are also
some HANA Cloud Platform specific procedures and views that we will look into.

00:06:25

So, how can we now access the HANA instance on the HANA Cloud Platform, pretty easy.

00:06:37

So you create first an instance on your cockpit of the trial account that you have. You see how
to do it.

00:06:46

You go to the account, click on HANA instances at the left here in this screen.

00:06:55

Then you can create here a new instance and provide the name for the instance.

00:07:01

There are some limitations for this course. The instance that you create cannot exceed more

than 7 characters
00:07:11

so this is not general restriction that is available on the HANA Cloud Platform but simply do to
the fact that exercise we will be doing,

00:07:21

please don't use the name for the exercise which is longer than 7 characters ,otherwise you will
get into issues during the exercises

00:07:29

but of course this is not true for any productive instances of HANA on the HANA Cloud
Platform, just for this specific course

00:07:38

and for these specific exercises that we will be running here. So once we have done that the
instance is available and

00:07:47

in addition to that then through access via the full functionality, you first need to install the
HANA Cloud Platform tools

00:07:57

and the SAP HANA Tools in your Eclipse. How to do that and how to get the corresponding
tools that we already talked about in the introductory course.

00:08:08

So you connect to the link here that you see here in the screen shots,
tools.hana.ondemand.com/Kepler

00:08:17

and then you will get all of the tools and what you need too select, HANA Cloud Platform Tools
in the SAP HANA Tools and once this is done

00:08:26

the last step and it will also be the last step in the exercise that we will be running through now
you can connect to your Cloud system.

00:08:36

So you provide you credentials. Choose your HANA instance and then from that point on you
are connected via Eclipse

00:08:47

to your HANA instance on the HANA Cloud Platform and that's what we will be doing right now.
So, stopping the presentation mode.

00:08:57

I already opened up here my Eclipse to check if you have already installed everything, please
go to Help, Install new software,

00:09:10

and then provide the link to the development tools for Eclipse, for the SAP development tools

00:09:22

and you should click on SAP HANA Cloud Platform Tools and SAP HANA Tools.

00:09:28

So those two should be ticked and in case you also have an older version maybe from these
tools, please update them so that you have the most current set of these

00:09:40

and then you just follow the steps going, next, next, next, install. To not waste your time, I
already did that here so everything is preinstalled

00:09:50

and we will now first create our HANA instance in the cockpit.

00:09:58

So I switch to the cockpit, I click here, I'll just reload the page so I don't have a timeout.

00:10:06

Ok, I click here on the HANA instance tap, panel here, I click on new trial instance. In case you
already have one instance here you need to delete it

00:10:20

because another restriction of the trial landscape here you can only have one HANA instance.

00:10:28

So in case you want to follow everything, you need to leave the current one and then create a
new one. So I already did that here.

00:10:36

I will create now a new trial instance, I will call mine openSAP. I click on save and now the
HANA instance is created.

00:10:48

It takes a few seconds and once it is available we will see here the HANA instance showing up.

00:10:57

So while this is running, there it is, ok, so the trial instance has been created. This is the name,
openSAP, currently 0 applications deployed there.

00:11:11

That is right, we just created it, right? We'll switch over to our Eclipse and now we click on the
project explorer.

00:11:20

We right click and we say first, we don't right click, we need to switch the perspective first.

00:11:29

So we need to open the perspective, other and we go here to the HANA development
perspective.

00:11:37

Click on ok and now we go to the systems folders here on the left hand side.

00:11:47

We right click and you have now this menu item Add Cloud System, that's what we click on

00:11:55

and now we go through the steps to connect.

00:12:00

First of all and most importantly landscape host is HANA Trial and not hana.ondemand.com.

00:12:08

You would use hana.ondemand.com if you have a productive environment. Then you provide
you account name, so I'm just copying over my account because I'm lazy from the link here.

00:12:20

My cockpit, so I paste it in here, I paste my user name, remove trial at the end and I type in my
password.

00:12:31

Click on next, now on the Trial instances you see we have quite a lot here

00:12:42

so because those are ones that I have already created for other things that I did, but you
should select the one for openSAP.

00:12:51

If you select another one, this might not be a HANA instance that you can really use and do
everything that you want.

00:13:01

You need to select the one that we just created so I click on openSAP, the one we just created.
I click on finish and what is happening right now

00:13:11

is Eclipse is now connecting to your account in the Cloud and connecting to the HANA instance
that you just created

00:13:24

and it will show up here once it is connected, on the left hand side, you see here on the
catalog, the two schemas that I've talked about,

00:13:35

the NEO Schema the DEV Schema and under content you see also now, let me increase this
for you, you also see here now the pre-delivered packages.

00:13:48

The one with your account name and underneath that, the name of the HANA instance.

00:13:57

So that's all we are connected to our HANA instance in the Cloud. Let's go back to our slides.

00:14:05

What have we learned in this unit? We learned the various SAP HANA Cloud Platform
offerings, the packages.

00:14:15

I've shown you at the beginning. You learned some specifics around the trial landscape that we
currently have and you know how to set up your development environment

00:14:27

and connect to your HANA instance on the HANA Cloud platform. That's it for now. See you in

the next unit.

WEEK 1, UNIT 2
00:00:09

Welcome to Week 1 Unit 2 of the openSAP course Next Steps in SAP HANA Cloud Platform.

00:00:19

In this unit we will be looking into SAP HANA Applications on the SAP HANA Cloud Platform.

00:00:25

As we already discussed in Unit 1, it is important to under that HANA Native dDevelopment for
productive customers and partners is actually the same as a standard HANA development on
premise systems.

00:00:39

There are a few restrictions that are associate with not giving access on operating system level
and keeping some system

00:00:49

and backup task under the SAP HANA Cloud Platform itself. The HANA Cloud Platform trial
landscape users are working in a tenant like mode

00:00:59

and have restrictions for administration and lifecycle management tasks, like role and user
management. Importing or exporting delivery units or working with the SAP HANA XS
Administration UI.

00:01:12

However, the HANA Cloud trial landscape still provides enough capabilities to develop HANA
Native applications

00:01:20

but to be able to build their applications on the trial landscape users will need help from some of
the predelivered procedures

00:01:29

and views of the HANA Cloud Platform like


HCP_GRANT_SELECT_ON_ACTIVATED_OBJECT or HCP_GRANT_ROLE_TO_USER.

00:01:37

They are all located on the HANA Cloud Platform schema and if you want to see a list of all of
these roles

00:01:46

you can check it on the official documentation so you go to helphanaondemand.com for the
HANA Cloud platform page,

00:01:55

sorry for the HANA Cloud product, then you switch to SAP HANA Development using a trial
SAP HANA instance

00:02:03

and underneath you see specific procedures and views where they are all listed and described
in detail.

00:02:10

Going back again to the presentation for slide 3, there are various paths to start with HANA
Native Development on the HANA Cloud platform.

00:02:22

Of course you can start first with the official documentation.

00:02:28

There is also a good summary page with useful blocks on the landing page on SCN of the SAP
HANA Cloud Platform Community.

00:02:36

Just switch to content and look for HANA Native Blocks and Documents and I also can show
you that.

00:02:43

So you go to the HANA Cloud Platform landing page, developers.sap.com/cloud you will be
redirected.

00:02:54

You click on content and then you just type here in the filter, HANA Native return and then you
already see here,

00:03:05

for example also the eight easy steps to develop and XS Application on the HANA Cloud

platform and much more of such blocks


00:03:14

that you can use to learn more or and that's what we will be doing right now.

00:03:23

You can simply important an SAP HANA sample application directly by using the HANA Cloud
Platform Eclipse Wizard

00:03:30

and if you do so, we will later on see that we will be importing the Shine application,

00:03:40

that you might already know from the openSAP course around HANA Native Development and
also if you followed Unit 1 closely,

00:03:49

you know that for seeing later on this screen you must have installed the SAP Cloud HANA
Platform tools and they feature Sample Apps for SAP HANA Cloud Platform.

00:04:02

Once we selected this application, we will assign the application to our schema and package
and will import the application

00:04:12

and once we did that, the application, we will be able to see all of the artifacts of the Shine
Application

00:04:22

and will have to grant our HANA Cloud Platform users some rights to access the application on
the HANA Cloud Platform.

00:04:30

Once we did that, we will open the Shine Application and also the Admin UI of the Shine
Application but now let's start to do it.

00:04:42

So to do that, I will switch over to my Eclipse. So this is already what you learned in Unit 1.

00:04:54

So let's start first with the import of the Shine application. We'll click on file, import and then you
see where the SAP HANA content folder is and select sample applications.

00:05:09

Click on next, let me just increase the size. Now you can see here you can select an application
currently there are two

00:05:20

but more will come soon but for now we will select the Shine application. We click on next, we
select the target system, click again on next.

00:05:33

We select our package. We open the SAP one that we created and now let's click on finish

00:05:45

and start the import of the shine application. So what you see here is the job log view where
you see the actual import

00:05:57

and the Shine sample application import can take some time because all of the artifacts like,
tables, views, analytic and calculation views,

00:06:09

sequences, XS artifacts need to be checked into the HANA repository and need to be activated
and as I've just shown you,

00:06:18

you can monitor the progress of the import of the application in the Eclipse progress tab.

00:06:25

So, if you don't see it yet you can simply activate the job log view in Eclipse. I'll just show you
how to do it, you go to window,

00:06:36

show view, other and there you see it under the SAP HANA Modeler, job log, okay

00:06:46

and then it's added and you see we are nearly done. So we are close to 100% now.

00:06:55

So we just wait for a few seconds. So we can watch it increase and now it's done.

00:07:10

Okay, 99%, I hope we will reach 100% soon.

00:07:20

Okay, so you can see here in the status that the import was successful.

00:07:28

When everything is finished, you should refresh your repository package and you should see all
Shine artifacts.

00:07:36

Let's just do that, just refresh here in our content, our openSAP package,

00:07:46

refresh and you already see here all of the Shine artifacts but

00:07:56

before being able to run the sample Shine Application, the user will have to perform additional
steps.

00:08:03

One of them is to grant shine roles to the end users of the application but why is it necessary?

00:08:11

Well, it's important to understand that the basic user concepts, in the trial landscape actually,
when you are logged onto the HANA instance,

00:08:22

you are on the HANA Cloud Platform, sorry on the HANA instance of your HANA Cloud
Platform account.

00:08:29

You are working with a development user with a prefix DEV_ so that's actually the one that you
see here.

00:08:36

So in my case currently it is DEV04 and so on and that user has explicit rights to work with an
associate schema starting with NEO.

00:08:47

So the one that we see here also in the catalog. Including also the HANA package with the
name that you've used for your HANA instance created in Unit 1.

00:08:58

So, it's this one, the openSAP one. If you don't remember your schema or package by heart
you can always use a view in the HCP Schema

00:09:10

so to check your mail identification, you just go to the view on HCP called HCP DEV metadata

00:09:23

So you right click, open the content and you can see now here the schema name, the package
name and the role name.

00:09:38

So that's it, but now coming back again to the developer user.

00:09:47

The developer user that you used to work with the HANA instance in the SAP HANA Cloud
Platform again, DEF_ is not the same as the user that you used to logon onto your HANA
Cloud Platform account.

00:09:58

On the trial landscape, this is your user from the SAP ID service, also the SAP Community
Network users that you use and also your HANA Cloud Platform Trial Account

00:10:12

and that user is configured to authenticate the SML against your HANA instance on the SAP
HANA Cloud Platform.

00:10:20

So to let you access your application, running on the HANA Cloud Platform, you need first to
grant your SAP HANA Cloud Platform trial user, the rights,

00:10:30

to work with the Shine Application and this is done by calling a specific HCP procedure

00:10:39

and to do that we will click now on our system here, on the left hand side

00:10:47

and open the SQL editor, so and the next, we will now open the HCP procedure, HCP grant
role to user.

00:11:05

So we will click on the procedure, where is it, so there it is,

00:11:17

HCP role to user so we just drop it here on the left,

00:11:29

right coll, before it, sorry and add brackets

00:11:39

and we need to provide two parameters in single quotes, switch to prepare that.

00:11:48

One is the role and the other one is your HCP user. You get the role that you need when you
click on a special view that is created.

00:11:59

It's called HCP activated roles. So we click on that. We right click. We open the content, we
need the model admin role

00:12:11

and right click on it. Right click and now we need to say copy cells to get the complete name of
the role.

00:12:25

We go back to our console. Now we can paste it into our SQL editor

00:12:34

and we just remove your role name before, so your role name and provide the HCP user as the
second parameter.

00:12:47

So we take it from here, we paste it and we need to remove also trial here at the end.

00:12:59

So this is now your call, call HCP grant role to user with the corresponding role and user and
we execute that,

00:13:12

okay, while the SQL statement is executed, let me quickly explain some details around the two
Shine roles that we just saw,

00:13:24

so the Shine Application comes with two roles, model access and model admin. Model admin
includes all of the rights of model XS

00:13:34

plus it also grants access to the administration screen of the Shine Application. You need the
model admin role

00:13:44

as we have to generate HANA synonyms later on via the administration UI of the Shine
Application.

00:13:52

Oh, one additional thing we will just do now. Let's configure our Eclipse in the way that we can
see all of the objects

00:14:00

under our packages because if we see it now, here, okay it's already activated from my side but
I'll show you how to do it.

00:14:10

You go to your Eclipse preferences on windows, it's window preferences and you click on the
SAP HANA folder,

00:14:23

modeler and then on the content presentation and you need to click on show all objects

00:14:31

so that you can see all of the objects in your system view here.

00:14:40

So we apply this, in my case I already had it, click okay. Okay, so now let's check if the SQL
statement has been executed, not ready yet but that's no problem.

00:14:54

We just let it go right now. We can, it will take maybe a few seconds, we will now switch to our
cockpit and try to open the Shine application.

00:15:09

So let's go here to our portal. I will just reload the cockpit and although the role has been
granted right now,

00:15:23

what we will immediately see here if we click here on the HANA instances, we will see our

openSAP instance that we created


00:15:35

and we will see that, it now already has an application assigned to it. Okay, here it is.

00:15:43

One application we click on it and then we will be moved to the application itself.

00:15:53

Okay, here it is, so and this is now the link to our Shine application. Let's check if, yes, so the
SQL statement has been done, is through,

00:16:08

so let's open now the application itself and I just click here on the link, okay

00:16:20

we see here lots of purchase orders and so on, so things that the application provides to you if
you go now for example

00:16:30

to your Eclipse and you see here on the UI, poworklist web content,

00:16;39

you see that we have 3 HTML objects, poworklist, poworklistlight, poworklistsuite.

00:16:48

So meaning if we, this is actually what is in there, so you recognize the link that you saw now in
your Eclipse.

00:16:58

So we just remove the light here and you see the poworklist with an SAP UI5,

00:17:07

over the environment and now we can also put in here suite and it has a suite look and feel.

00:17:17

Actually those 3 html files. Now let's open the admin UI of the Shine application,

00:17:27

to generate synonyms so let me just do that so the link that you need to look at you can derive
from here

00:17:38

so instead of saying the word Shine UI, you say Shine Admin UI, Shine Admin UI,

00:17:49

just remove everything here and then let's see. Admin UI webcontent and there is one html
object here,

00:18:00

admin.html, just so UI/webcontent/admin.html, okay.

00:18:12

So this is the Admin UI from our Shine Application and we need to create synonyms.

00:18:19

We will need them later on for our application. Just click on here and we can execute yes I
want to do that and ok, so these synonyms were created.

00:18:33

As I said, we will look into this into one of the next units and maybe some more interesting
details here.

00:18:43

So if you want you can generate additional data purchase orders, independent to the data of
the Shine Application and

00:18:53

you can, yeah, actually do much more and click on all of these buttons if you want, on all these
ticks and the Shine application will create some more data.

00:19:03

Okay, so let's go back to our slides, we are through with our exercise.

00:19:12

What have you learned in this unit, you learned that on the HANA Cloud Platform, you can
leverage your knowledge

00:19:21

and also build applications that has to do with on-premise SAP HANA systems.

00:19:27

You can find help very easily and also, do as well an import of a sample HANA application

00:19:36

and you can also run the Shine application on the SAP HANA Cloud Platform. That's it. See

10

you in the next unit.

11

WEEK 1, UNIT 3
00:00:09

Hi and welcome to Week 1 Unit 3 of the openSAP course Next Steps in SAP HANA Cloud
Platform.

00:00:19

In this unit we will be looking into the SAP HANA Web-based Development Workbench.

00:00:25

The workbench let's you actually use the 4 views of the SAP HANA Web-based Development
Workbench on the trial landscape.

00:00:38

Users are restricted to the editor and catalogue view. They do not have permissions to work
with the security and traces view

00:00:48

but if you have a productive environment, you can use all 4 of the views. You can build your
HANA Applications using a Web IDE template that you can find in the corresponding folder,

00:01:03

I will show you in the next exercise and you can also directly execute SQL statements from the
catalog view in the SQL editor.

00:01:16

The HANA Web-based Development Workbench can be started from the cockpit or with direct
link.

00:01;27

Productive customers again, don't have restrictions when working with the Web-based
Development Workbench,

00:01:36

however, the users on the trial landscape should launch the HANA Web-based Development
Workbench from the cockpit,

00:01:44

as this will also log them in with their DEV users when starting the editor.

00:01:50

You also have another possibility you can also start the workbench from the cockpit within the
XS application details

00:02:02

and this will automatically open the HANA, a development workbench editor, positioned on the
right package level

00:02:11

and this is now the exercise that we will be going through.

00:02:20

So, we will launch the Shine application from the cockpit, open the reports tab from the
purchase order worklist and just in case that you see an error

00:02:30

but not the actual pie chart as you see it here in the screenshots on this slide,

00:02:37

was probably because you haven't generated the Shine synonyms from the Shine
administrative UI.

00:02:46

So in case you haven't done that, please go back to Unit 2 and just do it as described at the
end of the video.

00:02:54

Then we will modify the pie chart so that it will not show the top 5, but rather the top 10
companies

00:03:04

and we will launch the workbench again and see that the change in the access file is live and
we will see the top 10.

00:03:17

So that is what we will do right now. So I will stop the presentation mode. We are here now in
the XS Application, we just created before.

00:03:28

So I will actually start the development tools with a link down here.

12

00:03:36

So I click on it and just remember you are now registered with your DEV user.

00:03:41

So, in case you just want to reuse this link that won't work. So always, as I said before from the
cockpit. So, let's look now first for some goodies.

00:03:52

So if we go down here to these packages, you see the poworklist html file.

00:04:02

So you can very easily now just select this one. Click on the run on server button and you will
see the application directly.

00:04;12

We switch to the reports. We select, for example, the company name and we see the top 5.

00:04:20

We want the top 5 companies. We want to change that to the top 10. So what we do is, we go
to our services here

00:04:32

on the Shine application and open the poWorklistQuery.XSJS, just a little bit bigger, so you can
see it and then we scroll down

00:04:41

or you can also use control F to search, but here it is, here on line 184, we will select not the
top 10 but the top,

00:04:53

sorry the top 5 but the top 10 and I will save this file by clicking on the save button here at the
top

00:05:01

and the nice thing about this now is you don't have to activate the XS file anymore, it's
automatically activated because if we switch back now to our application

00:05:16

and we select now City, you already see now, it's no longer 5 items but 10 items.

00:05:24

The same here with the Company name, one, two, three, four, five, six, seven, eight, nine, ten.
So it worked.

00:05:32

You see, it's very easy to do. No activation necessary. Just clicking on the save button.

00:05:40

I also talked about the templates that you can use so you are more effective when you are
developing. You can find such templates down below here.

00:05:49

So you can go to goldreflectionframe.html file. So go to get started quickly and do things


quickly that you do very often

00:06:01

and you can also simply click here on such an html file in the application and run on the server
and then it automatically opens up

00:06:11

and you don't need to remember also, the links for that. That's it.

00:06:18

Going back to our slides again. So we were able to run through this exercise.

00:06:26

What have you learned? We learned that you can use Web-based Development Workbench
on the HANA Cloud Platform.

00:06:35

So that you can quickly develop, modify and test your applications. Running on HANA, you can
also launch the SAP HANA Web-based Development Workbench from the HANA Cloud
Platform cockpit

00:06:46

and you can modify the Shine application on the HANA Cloud Platform directly using the Webbased Development Workbench.

00:06:55

That's it. I'll see you in the next unit.

13

WEEK 1, UNIT 4
00:00:13

Welcome to week 1, unit 4 of the openSAP course Next Steps in SAP HANA Cloud Platform.

00:00:19

In this unit, we'll be looking into the SAP HANA Predictive Analysis Library.

00:00.26

As already explained, customers of the productive HANA Cloud Platform landscape can build
SAP HANA-native applications.

00:00:32

The SAP Predictive Analysis Library, or PAL, is a set of application functions implementing a
wide range of analysis algorithms in the areas of clustering, classification, association, and
other areas.

00:00:48

It provides its functionality natively with a very high performance because the complex analytic
computations are executed directly in memory inside SAP HANA instead of being brought up
to the application server.

00:01:04

PAL includes classic and universal predictive analysis algorithms in various data mining
categories:

00:01:12

Clustering, Classification, Association, Time Series, Preprocessing, Statistics, Social Network


Analysis, and a category Miscellaneous covering other algorithms.

00:01:29

On the SAP HANA Cloud Platform trial landscape, you can use the Predictive Analysis Library
without any installation and configuration.

00:01:38

You can use it as described in the SAP HANA PAL documentation.

00:01:44

Let me show you where you find the documentation just stopping the presentation mode
you go to the

00:01:53

help.hana.ondemand.com Web page, select SAP HANA Cloud Platform,

00:01:59

then SAP HANA Cloud Platform > SAP HANA Development > Using a Trial HANA
Instance, and here Using Predictive Analysis Library.

00:02:10

And if you go here on SAP HANA PAL documentation,

00:02:17

this is the official documentation. And on this page, you can also see the specifics on the trial
landscape that are also described in the slides. So let me switch back to the slides.

00:02:36

As I just said, the trial landscape has some minor specifics you need to be aware of.

00:02:36

Those specifics are related to the user isolation requirements of the trial landscape of the SAP
HANA Cloud Platform.

00:02:49

In the slide, you can see that for generating and dropping a PAL procedure on the HANA Cloud
Platform trial landscape you need to call other procedures compared to the productive HANA
Cloud Platform landscape.

00:03:04

Instead of calling the System procedure, you simply call the corresponding HANA Cloud
Platform procedure.

00:03:11

You see it here with the prefix HCP.

00:03:14

But all other PAL procedure calls are called in the same way like on a productive HANA Cloud
Platform landscape.

00:03:24

We will do a little exercise. And in our PAL exercise, we will use the PAL function ABC analysis
to cluster partner companies based on their gross amount of sales orders.

14

00:03:37

We will cluster the companies into A, B, and C partners.

00:03:41

A partners are companies accountable for 70% of the sales orders amount.

00:03:47

B partners are companies accountable for 20% of the sales orders amount.

00:03:52

And C partners for the other 10% of the sales orders amount.

00:03:59

So, now lets leave the presentation and switch to our Eclipse to walk through this exercise.
So...

00:04:11

we connect now to our instance, to our HANA instance, we created in the previous unit,

00:04:23

and will now take the learning materials for week 1, unit 4.

00:04:29

And I already prepared the zip file, so I unzipped the file;

00:04:37

and you see here I have a directory called paldemo.

00:04:43

And the first thing we need to do, we need to switch here to the Repositories view (let me
increase the size here you can see it better);

00:04:53

and create a new workspace: Create Repository Workspace.

00:04:59

We...select the corresponding HANA system. So that's the one, we have here our trial
landscape.

00:05:08

I just leave everything as it is. So my workspace name is workspace1.

00:05:14

I click on Finish. And the next thing we will do

00:05:21

is to open the workspace and to select our shine folder,

00:05:29

right-click it and Check out and Import Projects.

00:05:34

So OK, click on Next...

00:05:40

And we click here on Finish. I just leave everything as it's provided as default.

00:05:47

And now we see our shine application here in the Project Explorer. So we have now a local
copy on our machine.

00:05:56

And what we will do now, we will switch to our unzipped paldemo directory and just copy it to
our clipboard. So I will do that here.

00:06:06

So 'Copy paldemo' to the directory.

00:06:10

I will click on shine here at the top, right-click, and simply Paste.

00:06:19

So, you see now we have a directory called paldemo with all the source code that we need.

00:06:28

But we need to adapt the source code so that it fits to your packages and..., to your package
names,

00:06:36

and to your schema names. So to do that, we will now search inside this directory. So I just
click on the paldemo directory,

00:06:46

click on Search > File and I will search for the text as you see it here.

00:06:59

So in tags and all capital letters . You need to be on File Search.

00:07:07

The file name patterns let me just try to make this better readable for you; just increasing the

15

size...
00:07:16

So like this. So the file name pattern needs to be put on * so that we look into all files.

00:07:25

Then we can either say Workspace or Selected resources.

00:07:29

And we click on Replace.... Remember, we will substitute now the , click on Replace...

00:07:38

And here, we need to substitute with your corresponding package name on your system.

00:07:47

You should see as I do here that you have 13 matches for in 4 files.

00:07:54

And if you are not sure what you package name is, no problem. Let's just cancel this.

00:08:00

We go to our Systems view here and look into the HCP_DEV_METADATA view.

00:08:12

Open the content, and we have everything here: SCHEMA_NAME and PACKAGE_NAME.

00:08:18

To make it easier, I will just copy all the rows into a text file here.

00:08:26

And the package name is the second one. So in my case, it's this guy here.

00:08:31

I will copy this to the clipboard. So it is actually your account name .opensap,

00:08:40

or the name you have used. So I just copy this and will now switch back to my Eclipse and do
again the search:

00:08:52

Search > File...,

00:09:00

One sec., , file name pattern *. You click on Replace... You have it here on Selected
resources or Workspace,

00:09:09

Replace.... 13 matches in 4 files. And I will replace the with that I have on my clipboard.

00:09:17

OK. So the changes have been applied and I do now the same for the SCHEMA_NAME

00:09:27

and also Search... > File... and select here search for .

00:09:37

So please be sure that you really type this correctly: in tags .

00:09:47

And again file name pattern *. I click on Replace.... And now you should see, like on my
machine, 6 matches in 3 files.

00:09:57

And the SCHEMA_NAME, no problem, we have it in our clipboard here. That's the first entry in
the....what you copied before.

00:10:09

So we will paste it here. And we click on OK. And we are done.

00:10:20

So, we see now that a few files have been updated. And the next thing we need to do is to
create the input and output tables for the ABC analysis algorithm.

00:10:35

And this is inside this text file pal_sql.txt So we just can double-click this.

00:10:44

And you see here now how the text was substituted with what we just did here now with the
search and replace exercise.

00:10:56

So we just copy everything, so this whole text. It's just a means for us to run now an SQL
statement.

00:11:04

We switch over to the Systems view, select the system and click on SQL.

00:11:16

And now we just paste what we copied and click on Execute.

16

00:11:25

So, this is done. So the table is created.

00:11:30

If you are wondering what all these commands are for, I want to explain it now in detail
because

00:11:39

if you want to deep dive into this and find out how it really works, you can,

00:11:45

as I showed you before, look into the HANA PAL documentation.

00:11:50

So this the PDF file, I just open it and here you can search for ABC.

00:11:59

And you see here on...(let me increase the size. No, never mind.). So you can click here on
ABC analysis and...

00:12:12

So on p. 229, so it's very deep down in the PDF file.

00:12:19

Not sure why it doesn't open up, let me just try again...

00:12:24

ABC. Let's see if it works. Yes, it's fine, it's the ABC analysis.

00:12:34

So you find it very deep down here at p. 229. And you will see there how to create this table
with the corresponding commands here.

00:12:48

So, this is now...we created a table. So what do we need to do now? We need to activate the
whole code.

00:12:59

So how do we do that? We select the paldemo directory and go here to Team and click on
Activate.

00:13:11

And a window should show up, exactly, so we are activating now the code we have changed.

00:13:17

And before being able now to look into the application, there is one role it has been created for
this demo.

00:13:26

And we can see the role here under HCP here, under the HCP Views, under
Activated_Roles, so I just open this here: Open Content.

00:13:39

You see that now we have additional roles for our paldemo. And we need to

00:13:48

grant our user this role. And to do that we already did also before for the shine application
we click on this role here and I say Copy Cells.

00:13:59

And we select the system, click here the SQL icon here at the top.

00:14:07

And now we start writing: call. We select the procedure, the HCP procedure
HCP_GRANT_ROLE_TO_USER.

00:14:17

And after that, we provide, we need to provide two parameters.

00:14:24

And the first parameter is the role, so we should have it in our clipboard.

00:14:30

Just need to remove this now here again. So actually what we just saw before here, right? So
this needs to, this is the role.

00:14:39

And as a second parameter, the user. And as I don't want to type it, I just Copy & Paste over
the account name and just remove trial here. So this is my user.

00:14:54

And I click here on the Execute icon so that this command is executed.

00:15:02

It takes 5 or 20 seconds should be up soon now.

17

00:15:08

And what we do now, we switch over OK switch over to our trial landscape, to our account.

00:15:19

And we click here on our application. OK, need to reload because the browser session expired.

00:15:29

So let me just click on the XS applications so that we can jump from there immediately.

00:15:36

And what we will do, we will start now again the shine application and modify the link a little bit

00:15:43

because, if you see here in the Project Explorer, we created now this paldemo directory.

00:15:51

And inside this paldemo directory, there is a file called ABC.html.

00:15:56

So...just calling our shine application, it still works. So and after shine, we need now to type

00:16:06

the paldemo. Ah OK, it's already here in my history: paldemo/ABC.html.

00:16:13

I click on it and here we are!

00:16:17

So the paldemo should be working now. You see here the ABC companies,

00:16:25

who are responsible for 70%, 20%, and 10% of the revenue.

00:16:32

That's it what I wanted to show you.

00:16:35

And, as I just said before also when explaining how to create the input and output tables for the
ABC analysis algorithm,

00:16:45

you can find all the documentation of the PAL Library here in the official PAL documentation.

00:16:54

If you want to know also more about this specific case and the code we have used, there is a
great tutorial on the SAP Community Network.

00:17:03

This is the link, let me just increase this for you.

00:17:07

It's under scn.sap.com/docs/DOC-44560.

00:17:18

It is called Using Predictive Analysis Library (PAL) in SAP HANA Cloud Platform.

00:17:24

And it describes actually step by step what we just did here.

00:17:30

If you want to go through, you don't have to look into step 1 because for that example they
created a separate XS project.

00:17:38

We actually embedded it into the shine application but here you can see what the steps were
that are necessary to create this demo,

00:17:49

explaining also each step in detail, including also here the wrapper procedure for the ABC
analysis algorithms, and so on and so forth.

00:17:59

So if you want to learn more, just go through this exercise and you will understand in detail how
this works.

00:18:09

So that's the demo; let me get back to the slides.

00:18:15

What have you learned in this unit?

00:18:18

Well, you learned that the HANA Cloud Platform...productive customers can use PAL as they
use it on an on-premise SAP HANA system.

00:18:29

And that PAL can also be used in the trial landscape that we have also used now for this
exercise with small specifics.

18

00:18:39

The specifics are documented on the HANA Cloud Platform documentation.

00:18:46

And you also learned how the ABC analysis algorithm of PAL can be used to build an SAPUI5
application visualizing this in a chart,

00:19:00

and clustering the companies' sales orders by volume.

00:19:08

That's it for this unit. Thanks a lot and see you in the next unit.

19

WEEK 1, UNIT 5
00:00:14

Hi and welcome to week 1, unit 5 of the openSAP course Next Steps in SAP HANA Cloud
Platform.

00:00:21

In this unit, we will extend an SAP HANA application with SAP HANA Cloud Platform services.

00:00:31

When you build an SAP HANA native application, you can leverage, of course, the SAP HANA
services.

00:00:38

But on top of that, you can also benefit from the services that the SAP HANA Cloud Platform
provides in addition to that.

00:00:46

Some of these services are on a lower technical level, like for example the persistence service,
the connectivity service, or the identity service.

00:00:57

Other services are more user-centric, like, for example, the feedback service,

00:1:02

which is currently provided as a beta release on the SAP HANA Cloud Platform trial landscape.

00:01:09

Today, we will enrich the SHINE application that we imported in unit 2

00:01:15

to consume the feedback service from the HANA Cloud Platform trial landscape.

00:01:23

Let's look now into the feedback service.

00:01:26

The SAP HANA Cloud Platform feedback service provides developers, customers, and
partners

00:01:31

with the option to collect end-user feedback for the applications they deploy on the HANA
Cloud Platform.

00:01:39

In addition, the feedback service provides predefined analytics on the collected feedback data.

00:01:45

It provides the distribution of the ratings from feedback that users of your application provided,

00:01:51

and can distinguish between positive, negative, or neutral sentiments that the feedback users
provided.

00:02:01

The feedback service has three components.

00:02:05

The feedback service client API collects the feedback data.

00:02:12

The feedback service administration UI is used for administrating the feedback messages,

00:02:18

and to provide the current status of the feedback quota you have already used.

00:02:25

The feedback service analysis UI is used for analyzing and exporting collected feedback data.

00:02:32

This user interface leverages the SAP HANA analytics and text analysis capabilities.

00:02:42

The raw feedback data is stored in the SAP HANA database.

00:02:49

Okay. Now that we have an overview of the feedback service,

00:02:53

we will extend the sample SHINE application with a feedback functionality for the purchase
order worklist.

00:03:02

We will use the SAP HANA Web-based development workbench to do that, and to do the
necessary code modifications.

20

00:03:10

Later on, we will provide some sample feedback and also analyze the collected feedback.

00:03:18

To be able to do that, we need to grant our account two special roles to be able to use the
feedback service.

00:03:26

It's the role of a feedback administrator and the feedback analyst role we need to assign to a
separate account called usage analytics

00:03:36

and to the application feedback that is pre-installed on each trial account.

00:03:43

Once we have done that, we can access the feedback service user interface and create our
own feedback application here.

00:03:51

That's what you see also in the screenshot.

00:03:54

We'll get a link for that feedback application that we'll need later on when we will modify the
shell for the PO worklist of the SHINE application.

00:04:07

After that, we'll modify a JavaScript file so that it will provide an additional feedback link for the
PO worklist application.

00:04:19

As I just said before, as a last step we'll then use the feedback service admin UI to analyze
collected feedback.

00:04:28

So I will enter and use the feedback service to create some data here.

00:04:33

Okay. So now let's start our exercise.

00:04:37

The first thing we need to do is to call our account on the trial landscape.

00:04:47

And we need to switch to the Authorizations tab here first.

00:04:54

So I'm just doing that.

00:04:56

And then we check here on the Users tab. Let me just copy the user ID here.

00:05:04

So this is my user. I will show the assignments.

00:05:12

Okay, I have two users here assigned to a specific role.

00:05:17

I will now add two additional ones, the ones that I just mentioned before. So I will click here on
Assign.

00:05:23

And I will switch to the account usageanalytics.

00:05:29

And you already see there is an application called feedback and the FeedbackAdministrator
role.

00:05:34

I will click on Save so that I assign myself to that role. And I will add another one.

00:05:42

Let me just make this bigger so I can see if it's right. Yes. FeedbackAdministrator.

00:05:47

I click on Assign again.

00:05:51

usageanalytics. This is important. Otherwise you don't see the feedback service. Feedback,
and then the role FeedbackAnalyst.

00:06:01

I click on Save.

00:06:03

Okay. So once I have done that, I will now switch over to the link of the feedback admin user
interface.

21

00:06:16

So this is actually the link that you need. You can also find it in the documentation of the HANA
Cloud Platform.

00:06:25

You just need to go to SAP HANA Cloud Platform > Product Overview > Services >
Feedback Service.

00:06:32

And in the documentation, it will tell you how you can actually administrate the user interface
for the feedback service.

00:06:44

So there are two links here, and you just can drill down then and find out where the link is. So I
just put it here.

00:06:51

So it starts with https://feedback, and then your account name,


.hatatrial.ondemand.com/admin/mobile.

00:07:06

You see here apparently I already called this before and access has been denied.

00:07:10

But now that I assigned myself to these two roles, hopefully the feedback UI should show up.

00:07:21

Yes. I already have it here.

00:07:25

You see I already created one application here that I could use, but we can also create another
one.

00:07:33

You need to go to the bottom of the page and click on Add to add a new application.

00:07:41

Let's take the name opensapw1u5. I click on Add.

00:07:55

I just close this.

00:07:57

And we don't go now too much into details about how to use and configure the various
questions that you can put in here

00:08:10

free text questions and so on.

00:08:13

We just leave everything as it is because then you will get

00:08:18

a predefined user interface where, later on, we'll just provide a text as a feedback.

00:08:25

If you want to learn more about how to use these additional functionalities,

00:08:30

just go back to the documentation of the feedback service and you will learn much more how to
use it.

00:08:39

For now, the only thing that is important for us is actually the application feedback URL that we
just leave open by now.

00:08:52

That's now the first step...or the second step already.

00:08:57

I just open up here the PO worklist from our SHINE application.

00:09:04

You see this is the poWorklist.html, so the SAPUI5 application, and we will add here another
menu item called Feedback.

00:09:18

So to do that, we will just go to our HANA XS Applications, and we will open up the
development tools for that application.

00:09:30

So I will just click here, Open in Web-based Development Workbench, for our SHINE
application from the previous unit.

00:09:41

There it is.

22

00:09:43

And we will modify now the JavaScript file. So just increase this so we see it better.

00:09:52

You go here to the shine application > ui > poworklist > WebContent.

00:09:59

And under this sp6_epm directory, you will see a file called Shell.view.js.

00:10:08

So this is the file we will be modifying.

00:10:13

At this point in time, I ask you now to look into the training material for week 1, unit 5.

00:10:21

There is a JavaScript file inside that you should just copy and paste.

00:10:28

So I already prepared that, so that's the file I prepared. I just copy the complete file into my
clipboard.

00:10:36

Now I click on the...increase it a little bit...on the Shell.view.js and just mark everything and
paste it

00:10:48

so that you have now a modified Shell.view.js file.

00:10:55

And before saving, we need to change it.

00:11:00

So you see that there is here, on line 125, so this here, this URL. That's the one we need to
change.

00:11:12

To do that, we switch over to our application that we created in the feedback admin UI.

00:11:21

So we just copy this

00:11:26

and we will paste it now into this field. So be cautious. Position the cursor right so that the URL
is pasted into the right place.

00:11:39

So we paste it in here.

00:11:42

Check again if the link is really complete. Yep. Here is the opening.

00:11:49

And let's see at the end if everything is fine too. Okay.

00:11:56

Okay, looks good.

00:11:58

And now we save this.

00:12:03

As we know, this has automatically activated the file,

00:12:08

meaning that now our poWorklist.html file should be showing up now with an additional link.

00:12:19

I will just create now a new incognito window. Just type in again my user and password.

00:12:29

So this is my user.

00:12:37

Okay. I log on.

00:12:39

Oops. Wait a second. Something went wrong. I will just reload this page.

00:12:47

Okay. There it is.

00:12:49

We have now, as you see on the right, we have a Feedback button that I can now click on.

00:13:01

This is a really good tool and the course is great!

00:13:20

This is now the UI that is created inside the JavaScript file that we just pasted in here.

00:13:30

And if we click on Send, this feedback will be sent to the link we provided inside this JavaScript

23

file, in the Shell.view. file.


00:13:39

I click on Send. I get a confirmation: Feedback successfully sent. Thank you for helping us
improve!

00:13:46

And maybe we create another feedback. Just clicking here. And say, Kind of cool.

00:13:57

Sending it again.

00:14:00

And now we simulate a negative thing. Didn't like this at all.

00:14:10

Clicking again on Send. So we have now three feedbacks.

00:14:17

Let's now switch to our admin feedback UI.

00:14:22

You see here at the top this little Analysis icon. We just click on it.

00:14:30

We reload again so that we have everything.

00:14:37

So you see here we have 66% positive and 33% negative feedback.

00:14:46

So you see that this is now the result that has been recorded that I just entered here.

00:14:54

Didn't like this at all. This was recognized as a negative sentiment, which is true.

00:15:01

Kind of cool has not been identified

00:15:07

because apparently it was not clear whether or not this is positive or negative.

00:15:14

And here now positive. This is a really good tool and the course is great! has been identified
properly.

00:15:24

You can also now filter here and just show...

00:15:33

Apply various filters. You can also clear the filter again.

00:15:37

And that's mainly it. So let's go back to our slides.

00:15:48

What have you learned?

00:15:51

You learned the additional services and extension capabilities that the SAP HANA Cloud
Platform provides

00:15:57

on top of the SAP HANA native capabilities.

00:16:02

You also learned how to configure and work with the SAP HANA Cloud Platform feedback
service

00:16:08

and how you an enhance a sample applicationwe used, in our case, the SHINE application

00:16:15

with the SAP HANA Cloud Platform feedback service.

00:16:18

That's it for this week.

00:16:20

I wish you good luck for your weekly assignment, and see you next week. Thanks.

24

www.sap.com

2014 SAP AG 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 AG 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 AG (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 AG and its distributors contain proprietary software
components of other software vendors.
National product specifications may vary.
These materials are provided by SAP AG or an SAP affiliate company for
informational purposes only, without representation or warranty of any kind,
and SAP AG or its affiliated companies shall not be liable for errors or
omissions with respect to the materials. The only warranties for SAP AG 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 AG 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 AGs 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 AG 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.

Вам также может понравиться