opensap hanacloud

26
openSAP Introduction to SAP HANA Cloud Platform (Repeat) WEEK 1, UNIT 1 00:00:12 Hi and welcome to the openSAP course Introduction to HANA Cloud Platform. 00:00:18 I'm Rui Nogueira. I'm working in the SAP HANA Cloud Platform product management, and I will be your instructor for this course. 00:00:24 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:34 At the end of each video, there will be also a self test helping you to measure your progress and at the end of each week, we will have weekly assignments. 00:00:43 These assignments are graded and you can earn points towards your Record of Achievement. 00:00:48 We also have an online forum where you can collaborate with fellow students as well as to ask questions. 00:00:54 Finally, you can expect that it will take you on average about 4 to 5 hours to complete each week in this course. 00:01:02 Before starting with the actual course, let me give you some more information about some specifics. 00:01:07 Since we provided this course for the first time at the end of 2013, it already was repeated in 2014. So the initial recordings are already one year old. 00:01:16 This also means that a lot has happened since that point in time, because the HANA Cloud Platform team delivers updates and new functionalities on a biweekly basis. 00:01:25 Therefore, you will notice throughout this course that some of the user interfaces of the HANA Cloud Platform you'll see during the units will look different compared to what you see. 00:01:35 In cases where this makes a difference from a usage perspective, we've added subtitles to the video, explaining the differences. 00:01:44 When we felt that the changes were too big, we've re-recorded such units, so don't be surprised if you notice that the user interface changed between the units. 00:01:53 We'll ensure that you can follow all the exercises in this course. 00:01:58 Okay, that's it. Let's start now with week 1, unit 1, around some HANA Cloud Platform basics. 00:02:08 Before looking into the SAP HANA Cloud Platform, let's look first into what a cloud service is at all. 00:02:13 I find this definition pretty crisp and clear. A cloud service is actually either hardware or software provided to you as a service and accessible through the Internet. 00:02:24 And as such, there are three main cloud services that you can distinguish.

Upload: abhay-upadhyay

Post on 17-Sep-2015

214 views

Category:

Documents


1 download

DESCRIPTION

hana cloud

TRANSCRIPT

  • openSAP

    Introduction to SAP HANA Cloud Platform (Repeat) WEEK 1, UNIT 1

    00:00:12 Hi and welcome to the openSAP course Introduction to HANA Cloud Platform.

    00:00:18 I'm Rui Nogueira. I'm working in the SAP HANA Cloud Platform product management, and I

    will be your instructor for this course.

    00:00:24 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:34 At the end of each video, there will be also a self test helping you to measure your progress

    and at the end of each week, we will have weekly assignments.

    00:00:43 These assignments are graded and you can earn points towards your Record of Achievement.

    00:00:48 We also have an online forum where you can collaborate with fellow students as well as to ask

    questions.

    00:00:54 Finally, you can expect that it will take you on average about 4 to 5 hours to complete each

    week in this course.

    00:01:02 Before starting with the actual course, let me give you some more information about some

    specifics.

    00:01:07 Since we provided this course for the first time at the end of 2013, it already was repeated in

    2014. So the initial recordings are already one year old.

    00:01:16 This also means that a lot has happened since that point in time, because the HANA Cloud

    Platform team delivers updates and new functionalities on a biweekly basis.

    00:01:25 Therefore, you will notice throughout this course that some of the user interfaces of the HANA

    Cloud Platform you'll see during the units will look different compared to what you see.

    00:01:35 In cases where this makes a difference from a usage perspective, we've added subtitles to the

    video, explaining the differences.

    00:01:44 When we felt that the changes were too big, we've re-recorded such units, so don't be

    surprised if you notice that the user interface changed between the units.

    00:01:53 We'll ensure that you can follow all the exercises in this course.

    00:01:58 Okay, that's it. Let's start now with week 1, unit 1, around some HANA Cloud Platform basics.

    00:02:08 Before looking into the SAP HANA Cloud Platform, let's look first into what a cloud service is at

    all.

    00:02:13 I find this definition pretty crisp and clear. A cloud service is actually either hardware or

    software provided to you as a service and accessible through the Internet.

    00:02:24 And as such, there are three main cloud services that you can distinguish.

  • 2

    00:02:28 The first one is the infrastructure-as-a-service model, where you get things like virtual

    machines, servers, or space for storage.

    00:02:35 These are services that, for example, Amazon Web Services provides.

    00:02:39 Then you also have the software-as-a service model, where you get tools like e-mail, like a

    CRM system, like virtual desktops, or online games.

    00:02:49 A good example here is Google mail.

    00:02:53 And the third one, and the one we will be looking at in this course, is the platform-as-a-service

    model. This model actually looks to provide services for developers.

    00:03:02 It provides things like execution runtimes, databases, or development tools. This is what the

    HANA Cloud Platform provides to you.

    00:03:12 Before really looking now into the platform, let's look first at the benefits of using cloud

    services.

    00:03:19 So first of all, you can eliminate your capital expense, because you don't have to purchase any

    hardware.

    00:03:26 The hardware is at the provider side, so no need for you to buy it.

    00:03:32 And due to the fact that also the provider takes care of maintaining this hardware and also

    maintaining the software and keeping it up to date for you, you can also reduce your operating

    costs.

    00:03:43 To take an example, the SAP HANA Cloud Platform is updated every two weeks in the

    landscapes and there is nothing you need to take care of for that to happen.

    00:03:53 Cloud services also provide you flexibility. So due to the fact, you can grow with changing

    demands.

    00:03:59 You can either buy more or less of these services, so you can scale the systems up and down

    how you want it.

    00:04:06 And a big benefit is of course that these systems are available everywhere. The only thing you

    need is a computer and the Internet and you have access to it.

    00:04:17 And due to all of these benefits, you gain a lot of agility because you don't have to put your

    resources in maintaining systems, but rather think of innovations.

    00:04:27 So it makes you react faster to the changing needs in your business.

    00:04:32 And the last one, of course, also very important: the high availability.

    00:04:36 We are talking here about availabilities in the 99.9 percent, so these systems are highly

    available,

    00:04:43 and also the providers take care that these systems work day and night, 24x7, with the

    corresponding support.

    00:04:51 But now let's look into the SAP HANA Cloud Platform.

    00:04:55 As I said, the SAP HANA Cloud Platform is a platform-as-a-service offering from SAP.

    00:05:00 It helps you build, extend, run, and operate applications in the cloud. It supports multiple

    runtimes.

  • 3

    00:05:06 You can run Java applications on it, SAP HANA native applications, and also HTML5

    applications. More runtimes will be added over time.

    00:05:15 In this course, we will be focusing on the Java Runtime, but you will see also in the next units

    where we sometimes have little journeys into the HANA XS side

    00:05:24 and will give you some examples of how you can connect to that from Java.

    00:05:30 The SAP HANA Cloud Platform has four main services that you can use: the persistence

    service, the document service, the security service, and the connectivity service.

    00:05:44 This platform is actually very open. It's standards-based and enterprise-ready. But you might

    ask: why is it open?

    00:05:52 Because in all of the services that we use, we try to use the standards that are widely adopted

    in the IT industry

    00:05:58 so that developers don't have to learn new proprietary technologies over and over again,

    00:06:03 but instead use best-of-breed technologies built-in into SAP HANA Cloud Platform.

    00:06:09 That's the reason why you can use a standards-based development environment like Eclipse

    for development on your platform and also a runtime environment like Java.

    00:06:18 Looking into the persistence service, it really helps you to leverage the speed of HANA. We'll

    be looking into this in week 2 and the first two units of week 3.

    00:06:28 We have a scalable document service, also based on the CMIS standard, to actually help you

    managing unstructured data, like files.

    00:06:36 You'll learn how to use this service in week 3.

    00:06:40 We also have federated identity management via the SAP ID service or an existing on-premise

    identity provider.

    00:06:48 Also here we are leveraging a widely adopted standard, the SAML standard.

    00:06:54 What it means we will be talking about in a later unit, and deep dive into that. That's what we'll

    be looking into in week 4 of this course.

    00:07:04 We have the connectivity service, which helps you also integrating either with SAP systems or

    other systems between your cloud application,

    00:07:13 your applications somewhere in an on-premise system, or in another cloud system. Week 5 will

    show you how to use this service.

    00:07:22 You can do remote monitoring and management of your account through a Web page. We will

    be also looking into that during this course.

    00:07:31 You can create nice-looking mashups and third-party content with the SAP HANA Cloud

    Portal. We will be also showing you this in one of the units in week 6.

    00:07:41 And especially if you want to become a certified partner for developing SAP HANA Cloud

    Platform applications,

    00:07:47 there is both a partner program, helping you to build and monetize your cloud applications,

    00:07:53 and there is also the SAP Store, where you can actually offer your solution to SAP customers.

    00:08:00 Last but not least, the SAP HANA Cloud Platform runs on world-class data centers around the

  • 4

    globe, meeting the highest security standards.

    00:08:08 If you want to learn more about the SAP data centers, just go to www.sapdatacenter.com and

    you will see which security standards we have there.

    00:08:18 But now, let's dig deeper into the platform.

    00:08:24 So how do you deploy on the Java Runtime of the SAP HANA Cloud Platform?

    00:08:29 You have a compute unit that resides in the cloud. This compute unit is the one that you

    purchase.

    00:08:36 For the free developer account that we will be using in this course, you get one CPU and a

    certain amount of RAM.

    00:08:43 Within this compute unit, you have a Java Virtual Machine where you actually put the

    application runtime container and where your Java EE Web application resides.

    00:08:53 We currently support Java SE 6 and 7, Tomcat 7, and are also certified for the Java EE 6 Web

    Profile.

    00:09:05 If you purchase compute units, we have different sizes that you can select, and also different

    sizes of data storage,

    00:09:11 and also different sizes of RAM that help you in building complex applications that need, for

    example, a lot of RAM.

    00:09:21 As this is a cloud service model, we provide everything also via Web interface. So you have

    proactive 24x7 system monitoring with automated alerts,

    00:09:31 so you can also create such alerts and let the system send you, for example, an e-mail if

    something specific happens with your application,

    00:09:39 a specific status of your application, or if you want to have any kinds of warnings inside your

    application that the administrator should know about.

    00:09:48 Very important: worldwide support 24x7 for accounts in the SAP HANA Cloud Platform.

    00:09:55 And you also get detailed usage metrics helping you monitor how you are using your compute

    units.

    00:10:02 The platform provides logging tools that you can configure to let you track what is going on in

    terms of traffic and what kind of messages go back and forth in your applications.

    00:10:14 And all of this, as I said, delivered via a Web-based operations console.

    00:10:22 The whole platform is pretty extensible and connectable, so we are also having other solutions

    that are also running on the SAP HANA Cloud Platform,

    00:10:30 like the SAP HANA Cloud Portal, where you actually can create Web pages. We'll be looking

    at that in a later unit of this course.

    00:10:37 We also provide to you in the platform the SAP HANA Cloud Platform mobile services, which

    we'll explain to you in one of the units in week 6 of this course.

    00:10:47 We have the SAP HANA Cloud Integration. This will not be part of this course, but this is

    mainly a system that helps you connecting and integrating different systems with each other.

    00:10:58 But we will be showing you the SAP HANA Cloud Integration OData Provisioning on the SAP

    HANA Cloud Platform, what was formerly called Gateway as a Service.

  • 5

    00:11:08 This is what you'll see in unit 2 of week 6.

    00:11:12 In this course, we'll not look into extending other SAP products with SAP HANA Cloud

    Platform.

    00:11:18 This is a broad topic and if you want to learn how to do it, I recommend you to take the

    corresponding course on openSAP.

    00:11:24 The course is called Extending SAP Products with SAP HANA Cloud Platform.

    00:11:31 So what will be the scope of this course? I already mentioned a few things. In the course, we

    will be setting up your own free developer account.

    00:11:41 We will be also setting up a development environment together so you can follow all the demos

    and also the exercises we will be doing.

    00:11:48 We will be using all SAP HANA Cloud Platform services so that you have at least the basics of

    how to use them.

    00:11:56 We will be deploying lots of applications to your account in the cloud and we will be also using

    additional features like the SAP HANA Cloud Portal,

    00:12:04 like the SAP HANA Cloud mobile services, as well as the SAP HANA Cloud Integration OData

    Provisioning.

    00:12:12 So what have you learned now in this unit? You know what the service models are in the world

    and what the benefits of them are.

    00:12:20 and you have now a very high-level overview of the SAP HANA Cloud Platform, and also know

    what kind of additional features it provides to you.

    00:12:29 In the next units, we will be going through each of the steps, from going to set up your account

    until deploying your first application in the cloud, which will be the last unit of this week.

    00:12:41 Thanks a lot for watching and listening and see you now in the next unit.

  • 6

    WEEK 1, UNIT 2

    00:00:13 Welcome to week one, unit two, of the SAP HANA Cloud Platform course. In this unit, we will

    be talking about an account and how to create an account for you on the platform. But before

    creating an account for you, let's look first into the account itself.

    00:00:29 An account on the SAP HANA Cloud Platform holds a lot of things like, for example, resources

    that can be consumed by applications. These resources are, for example, the compute units

    you need to buy. It goes from 1 to 8 cores for a CPU, as well as from 2 to 16 gigabytes for

    RAM.

    00:00:52 Another resource is the storage for your structured and unstructured data, as well as the

    bandwithmeaning the trafficon your account. And another one are the services that reside

    also as a resource in your account, like Portal, which we are looking at in week six of this

    course, Gateway as a Service, and SAP Mobile Platform, cloud version, also part of this course

    in week six.

    00:01:22 Each account also holds users that are allowed to work in the account, meaning to

    administrate it, to start applications, to stop applications, and to deploy applications.

    00:01:34 And, of course, the applications themselves that you can actually deploy and run in the

    account.

    00:01:42 The data written by the applications in the account, and such data can be, for example, lock

    information that your application creates or actually entries in your database.

    00:01:44 And then also configurations like authorizations and roles that you define for your applications

    and how users can access them.

    00:02:04 Each account is also assigned to a data center. And, most importantly, each account is also

    fully isolated, so only you have access to your account, and nobody else.

    00:2:20 Let's look now into the applications in an account. The applications are managed by the users,

    and they consume the resources of your account. You can create and consume data, consume

    the configurations that you defined also for your account, and they run in a defined data center,

    so you can decide which users consume which resources for your account.

    00:02:51 Now let's look at the account landing page. That landing page actually provides you with all the

    important links on one page. First, a link to the cockpit. We will be looking into this quite often

    during the course. A link to the community of the SAP HANA Cloud Platform, where you can

    have access to more information. We will also be looking into that later. Also a link to the

    Partner Center, in case you want to become a certified partner and sell applications to the SAP

    Store. And also a link to the SAP Store itself so that you can see what kind of applications are

    already there.

    00:03:33 We have now the introduction to the account. We will now be getting you an account for this

    course. And to go there, we go to the link account.hanatrial.ondemand.com. So let's switch to

    the browser.

    00:03:58 To get an account, this is pretty easy. You click here on the Register button, so we do it now.

    You fill in your first name, last name, your e-mail address, and a phone number. You provide a

    password for your account, of course. You acknowledge the SAP Privacy Statement, and of

    course you read through the terms and conditions of the SAP HANA Cloud Platform. So we

    just need to just scroll down. I read it before so I can accept here, accept there. And if you click

    on Register, which I won't do now because I already have an account, you will get an e-mail

    which looks similar like this screenshot I made, where you can actually activate your account.

    And once you click on this account, you just can right-click and copy and paste the link to your

    browser. Your account is activated and you can start using it.

  • 7

    00:05:00 So let's look now into the cockpit. As I said, I already have an account. So I just close this here,

    and this is my account. My trial account, where you see that I already have applications

    deployed. Meaningful names, like temp4, temp5, temp6, so I'm testing things here.

    00:05:23 You also have a link to additional services that this trial account provides for you, also for free.

    00:05:33 In the list of database schemas, you see which schemas you have created. You see currently I

    don't have any schemas here yet.

    00:05:44 In the Trust tab here, you can define trust relationships between your cloud account and

    maybe other systems that are maybe even on-premise systems. So that's what you do here.

    And we will look into this in more detail in week four of this course.

    00:06:07 Here you can manage authorizations and roles for users of your account, and also for users of

    your applications.

    00:06:18 Here you have a list of resources that your trial account has. We see here you have 1 GB of

    database space and also have one compute unit and 1 GB of data transfer.

    00:06:39 In the Account tab, you can actually also give your account another name. To keep this simple,

    I just left this here with my trial user.

    00:06:50 So that's the cockpit, which we wanted to look at.

    00:07:05 In a nutshell, it's really the central point for you to administrate all your applications in your

    account. You also have logging information available there. We will look into that in later units,

    where we will have applications running that create log entries. As well as monitoring

    informationalso looking into this later on in this course. We already saw the authorization

    management in the cockpit, as well as the resources.

    00:07:35 Another asset that you can access is the online help, which is actually the official SAP

    documentation for the SAP HANA Cloud Platform. You have lots of sample code there and

    step-by-step tutorials, so if you want to get started, it's a very good way to start here, and even

    after this course maybe to try out additional things.

    00:7:58 So let's have a look into the online help. The link is pretty easy. It's help.hana.ondemand.com.

    And if you click...I just go back again here...that's the link...because it also has links to other

    services here. We go to the SAP HANA Cloud Platform link, and here you have, as I said,

    Getting Started documentation. You have also Developer's Guide, showing you how to do

    certain tasks you want to do, like securing applications or how to do logging in applications, so

    everything documented here. And during the course, we will use this online documentation

    pretty often.

    00:08:55 Another thing we have on the cockpit is the link to the Tools. This is a link that provides you the

    tools that you need to run the SAP HANA Cloud Platform. And you will see in the page...so I

    will just show you pretty quickly...this is a central page for all Eclipse tools that you can use on

    SAP. You see here we have a tab for Cloud Tools. It tells you where to get Eclipse. It also tells

    you what the update link is for the HANA Cloud toolswe will look into this in one of the next

    unitsas well as all kinds of different applications and programs you need to run the

    application. And we will make use of each of those during this course.

    00:09:56 Last but not least, as I said, we have a link to the community, which has up-to-date information

    about the platform, so you will find announcements, for example. You will find a list of events

    there, and also can read blogs from other users. You also have access to podcasts we provide

    to you, and there are also additional tutorials on top of what is already in the official

    documentation, that help you doing things that are not documented yet in the documentation,

    or where people simply tried out new things that we didn't think of and provide their insights in

    that community.

  • 8

    00:10:36 The community is on the SAP Community Network, and you can get there if you just type

    developers.sap.com/cloud, so that's the link that I use always. And you get to this page here.

    You are redirected to SCN. And you see here it also provides a link to get your account. So this

    link goes to the account page we showed at the beginning. And here you see recent blogs, you

    see upcoming events, You have here featured content, for example. You have here, on the

    right side, tweets around this, so the official Twitter hashtag is #saphcp. A link to podcasts, and

    maybe also related content to this platform that you can look at. So a lot of resources that you

    can use to keep yourself up to date and maybe also providing, yourself, content here.

    00:11:41 And of course, there is also a forum where you can actually post questions related to the

    platform also later on after this course. So use this if you have questions after this course and

    to post these questions here and they will be responded to pretty quickly.

    00:12:04 So we went through the assets that the account page provides to you. We learned how to

    create an account. By now, if you follow the instructions you have already, your account is set

    up and waiting for you to fill it with applications.

    00:12:22 So what have we learned? We learned how to create this account and how applications work

    in the account. As I said, you already have your free account now. We went through the main

    features of the account landing page, as well as on the account cockpit, and where you can get

    additional help if you need it.

    00:12:46 So we are through. The next unit will be around the next step, setting up your development

    environment, and looking forward to seeing you there again.

  • 9

    WEEK 1, UNIT 3

    00:00:12 Hi. Welcome to week 1, unit 3 of the openSAP course Introduction to SAP HANA Cloud

    Platform. In this unit, we will learn how to set up the IDE.

    00:00:23 So what are the necessary steps we need to go through? First of all, you need to be sure to

    have Java installed on your machine.

    00:00:30 Actually, also the right version matching to the process architecture you have on your machine.

    So if you have a 64bit machine, you have to install Java 64bit.

    00:00:40 And the same is also true for Eclipse, which you also need to download and install.

    00:00:47 As a prerequisite, you should already have your free developer account registered. If you don't

    have yet, just do it.

    00:00:55 So once you have your Eclipse installed, you need also to install the Eclipse Tools for SAP

    HANA Cloud Platform.

    00:01:02 Then in the next step, you need to download also the HANA Cloud Platform SDK.

    00:01:07 And the last step, what we will do is actually also add the SAP HANA Cloud Platform server

    00:01:13 to actually run local deployment as well as deployment on your free developer account on the

    cloud.

    00:01:21 So to download Eclipse, you need to actually get Eclipse for Java EE Developers. So that's

    important to know.

    00:01:31 So if you see Eclipse, the Eclipse download page, please be sure that you select the Eclipse

    IDE for Java EE Developers. I put here the mouse over that entry.

    00:01:44 Select one of the supported releases.

    00:01:47 It should again match to the process architecture you have. So if you have a Windows 64bit,

    please also install the Windows 64bit Eclipse IDE for Java EE Developers.

    00:01:58 And then last but not least, install it on your machine.

    00:02:02 And then in the next step, you install the Eclipse tools, you download and set up the SDK,

    00:02:08 and then as a very last step, prepare the IDE for deployment.

    00:02:15 So we will start first with Java. So I will switch over to my command line here, to my terminal.

    00:02:22 And to be sure I have Java installed, I just type in here java version.

    00:02:31 And if you get a meaningful outputI see here I have Java version 1.6 installed on my

    machineeverything worked out fine.

    00:02:38 You also see here I have a 64bit Java installed, so it matches to the architecture of my

    machine here.

    00:02:46 In a second step, we go now to the page we already know, hanatrial.ondemand.com. Or

    account.hanatrial.ondemand.com.

    00:02:57 Let me increase the size so you can see it better.

    00:03:01 Here is the link. account.hanatrial.ondemand.com.

    00:03:05 And if you click here on the Tools linkthat's what I will do nowyou will see the page for SAP

  • 10

    Development Tools for Eclipse opens up.

    00:03:15 We click on Cloud and here you see now the link for Eclipse.

    00:03:22 So we just click there and you already see here now currently the Luna release from Eclipse is

    out. That's the one which is provided to you by default.

    00:03:35 And then what you need to do to select the Eclipse for your machine. So in my case, I have a

    Mac OS.

    00:03:43 And you see also here there is also a Mac OS 32bit and 64bit. And then you download it. Of

    course, I already did it in advance.

    00:03:53 So I switch over to my Eclipse directory and open up Eclipse.

    00:04:01 So it starts now. It asks me for the workspace. I have entered here workspace /opensap.

    00:04:09 And I will just use this as default so that I'm not asked again to provide this. I click here on OK.

    00:04:18 And now Eclipse shows up and opens up.

    00:04:23 So that's how Eclipse starts. The next thing we need to do now according to our plan is install

    the Eclipse Tools for HANA Cloud Platform.

    00:04:34 If you are working behind a proxy, you need to be sure that the Eclipse can go out into the

    Internet.

    00:04:41 Just go on your Windows machine under Window Preferences. If you have a Mac machine you

    go under Eclipse Preferences. And here we look under the General tab.

    00:04:54 In the General Tab under Network Connections. And you see here I put the Active Provider to

    Manual and provide the proxy that I have to use.

    00:05:05 For HTTP it's proxy on port 8080. And the same also for HTTPS.

    00:05:12 If you don't have any proxy, please select Direct or Native. So just play around in case you

    don't know actually if you are working behind a proxy or not.

    00:05:22 But in most cases if you are working, for example, from home, you don't have a proxy, so just

    select Direct and you should be ready to go.

    00:05:30 If you are changing locations or working on this between home and work,

    00:05:36 also don't forget to switch your network connections in Eclipse wherever you are so it matches

    to the local infrastructure you have.

    00:05:45 In my case, the manual proxy is fine. I apply that and I click on OK.

    00:05:51 Now I go to the Help menu and click on Install New Software.

    00:05:58 Now I need to provide here the link to where the actual plug-ins are. And how do I get that link?

    I go back to the Development Tools here.

    00:06:15 And you see here for Eclipse Luna. That's actually Eclipse I'm currently using. This is the URL.

    00:06:21 So I just right-click and say Copy Link Address. I do that.

    00:06:27 I go back to my Eclipse and paste it in here, into this field. So I just paste it.

    00:06:34 And you already see here the HANA Cloud Platform Tools and the HANA Tools. We will install

    both.

  • 11

    00:06:43 We click on Next.

    00:06:46 Okay, and now it tells us which packages will be installed. Then you need to accept the license

    agreement that you need to read through.

    00:06:56 You click on Finish.

    00:06:59 And now it will install all the plug-ins that are necessary.

    00:07:04 So it's fetching the HANA Cloud Platform Tools as well as the HANA Tools, which also allow

    you to do HANA native development.

    00:07:14 While this is being fetched and installed, let's just quickly also go to the SDK that we need to

    provide here.

    00:07:23 So that's what you also find under tools.hana.ondemand.com.

    00:07:29 Under the Cloud tab here, you see here the three SDKs that we support.

    00:07:35 For this course, we will take the Java EE 6 Web Profile you find here. So that's this link here on

    the right.

    00:07:46 Of course, again, to spare some time, I've already downloaded it and unzipped it.

    00:07:53 Let me just quickly see how the installation is going. It's still installing.

    00:07:57 Going to the SDK. As I said, I already downloaded it and you see here that's the downloaded

    file. And I unzipped it.

    00:08:07 And here now you find, for example, the API definition for the SDK.

    00:08:15 You find here also the javadoc, the documentation, the license text.

    00:08:21 Under Samples, you will find quite some sample projects that you can use, which we will also

    be using throughout this course.

    00:08:31 Let me just check quickly how installation is going on Eclipse side. Okay, still installing

    software.

    00:08:39 And last but not least, in the SDK under Tools, you will find also the Console Client

    00:08:48 that we will also be using later on when we want, for example, to deploy applications, when we

    want to stop applications.

    00:08:58 So we will learn that also in the next units.

    00:09:03 So going back to our Eclipse to see if it's already finished. So it looks good.

    00:09:10 Security warning...yes, we are okay because this is coming from the HANA Cloud Platform

    Tools side.

    00:09:16 It installs now the missing software. Takes a little bit.

    00:09:23 Meanwhile, let's go back to our SDK folder to see if there is anything else we have missed.

    00:09:34 You find here also under the Tools directory, under the readme.txt, some useful information

    that we will be also looking at later on in this course,

    00:09:47 for example, regarding proxy settings if you want to use the Console Client. We will be looking

    into that later on.

  • 12

    00:09:53 But just for you to know that also in the directory in the SDK, you find useful information like, for

    example here, another readme for the SDK also providing some

    00:10:05 useful information for you if you want to get started. Also explaining the system structure of the

    SDK. So you can look into that too.

    00:10:16 So meanwhile, our Eclipse should be ready. Yes, it is. So we want it to restart.

    00:10:24 Now Eclipse restarts again. We will not be asked where the workspace is because

    00:10:32 we already said we won't provide the information anymore, so Eclipse knows it.

    00:10:37 So something is happening here on my machine. Lot of stuff going on.

    00:10:43 Okay. Let's wait a few seconds. Okay, there is starts.

    00:10:52 Again, the spinning wheel.

    00:10:58 Maybe let's go back to our slides meanwhile to see how far we have gotten in what we wanted

    to show.

    00:11:06 So we have checked that Java is installed. We downloaded and installed Eclipse.

    00:11:15 We have the Eclipse tools now installed. We also downloaded the SDK.

    00:11:21 And the missing part now is actually to add the SAP HANA Cloud Platform server so that we

    have already prepared it for the next units.

    00:11:31 Meanwhile, here it is. Eclipse has finished.

    00:11:34 And we see now already here some information related to the HANA Cloud Platform like how

    to develop and deploy cloud applications.

    00:11:41 Actually, we will not be looking into that right now, so we click here on the Workbench. So we

    get there and the first thing I do is just

    00:11:50 close the outline here at the right and also the task list, so I have more space to show you what

    I want to show.

    00:12:00 Let's now check here under the Servers tab. So down under the Servers tab, we click here on

    No servers are available.

    00:12:11 Be sure that you are also on the Java EE perspective. So that's important.

    00:12:16 So we click now on this link and if everything worked out fine and you installed everything

    properly, you should now see this tab called SAP.

    00:12:26 And under SAP, you have now four entries where the first three are the entries for local

    deployment and development.

    00:12:38 You see those are the three profiles we support from Java. And the last one is actually the one

    which you actually use for deployment to the cloud.

    00:12:51 As we said at the beginning, we will be looking into the Java EE 6 Web Profile server, so that's

    what we select here.

    00:12:58 We click on the first entry. It also says localhost here underneath. We click on Next.

    00:13:05 The next thing we were asked is now to provide the folder for the Java EE 6 Web Profile SDK,

    00:13:13 so we go exactly there where we have installed it. So I put it in here. I provide the link to the

  • 13

    actual folder, so that's the folder.

    00:13:24 Iclick on Open.

    00:13:31 Oops. What did I do here? I selected...did I select Java Web Tomcat SDK?

    00:13:40 Oh, I selected the wrong SDK. Good. So you need to check that too, of course. So let me see.

    I have also another.

    00:13:51 The other SDK is under my machine.

    00:13:59 Okay, it's under MyTools and here I have the right SDK. That's the one.

    00:14:08 Okay, so you see the tool also checks if you selected the right SDK matching to the sever type

    you have selected in here.

    00:14:18 So that's good that this is checked. So we click on Next and now you see here the port 8080.

    00:14:25 In case this port doesn't show up, it means that maybe you have other services up and running

    on your machine which are reserving already this port.

    00:14:34 So you can do two things. Either you just take the other HTTP port that the HANA Cloud

    Platform provides to you

    00:14:42 or you stop the other application that is running on your machine and then just restart again the

    creation of this new server and you should be able to use the HTTP port 8080 again.

    00:14:54 Click on Next. In case you already have an application that you would like to deploy, you can

    do it here. We don't have anything yet. That's okay.

    00:15:03 Now you click on Finish. And important to know, here at the very bottom of the Eclipse, you

    see that something is going on.

    00:15:13 It's installing the runtime, meaning it's copying now what is necessary here for your local

    deployment to your local machine,

    00:15:22 to this server here on your machine. And now it's ready.

    00:15:28 The Java EE 6 Web Profile server is installed. That's mainly it.

    00:15:35 So let's maybe give you an additional hint. So as you see, things can go wrong, but that's no

    problem.

    00:15:42 You can always find some helpful answers to your questions in the forum or, if you want, I also

    have created a course guide for this course.

    00:15:54 You just go to scn.sap.com/docs/DOC-53459.

    00:16:03 That's the document I've created for you and you can see then here links to the various weeks.

    00:16:12 Just click there and you will be provided with some hints if you run into issues like, for example,

    00:16:21 how to install Java, how to maybe assign other ports to your server.

    00:16:30 So just for you to know that there is always help here for you during this course. So no big deal

    if you run into issues.

    00:16:38 Let's go back to our presentation. We installed Eclipse.

    00:16:45 We prepared Eclipse and installed the HANA Cloud Platform Tools

  • 14

    00:16:48 and the HANA Tools, so we can do both HANA native development as well as Java

    development.

    00:16:55 And we actually also looked into the SDK, which actually connects your Eclipse with your

    account,

    00:17:03 provides some sample code, and also contains the Console Client that we will be looking at

    later on in this course.

    00:17:10 So what have you learned?

    00:17:13 You have learned how to install Eclipse and how to set up Eclipse for the HANA Cloud

    Platform

    00:17:20 and also how Eclipse is connected with the SDK, so that was the last part we did here when

    we added the server.

    00:17:29 And what the SAP HANA Cloud Platform SDK is good for.

    00:17:34 That's it for this unit. Thanks a lot and see you in the next unit. Bye-bye.

  • 15

    WEEK 1, UNIT 4

    00:00:00:00 Welcome to week 1 unit 4 in the SAP HANA Cloud Platform course.

    00:00:00:18 In this unit, we will be talking about the complete development environment we will be using

    throughout this course.

    00:00:00:28 The development environment we will be using will be mainly running on the Java runtime, so

    we will be using that. Throughout the course we will be also touching on the HANA instances

    with our SAP HANA Studio,

    00:00:00:44 but that's in a different unit. But as I said, we will be mainly looking into Java runtime, and for

    that, we already installed our Eclipse IDE

    00:00:00:56 with the HANA Cloud Platform tools of Eclipse, and we also downloaded the SDK with the

    console client, sample code and the offline documentation.

    00:00:01:08 So when to use what? So the Eclipse IDE should mainly be used for developing and testing.

    00:00:01:16 So also throughout this course, this will be our main development tool that we will be using.

    As we heard, it's based on the Eclipse standard,

    00:00:01:30 and using the Eclipse plug-ins we installed in the SDK. But the IDE will be our main platform

    to use.

    00:00:01:41 And we can actually also adapt this IDE to our needs. So I will be showing you how you can

    do that now for this course.

    00:00:01:52 Please take this just as a proposal. I will be giving you the tools to modify the look and feel of

    your Eclipse IDE, but at the end, it's actually you who will be using it all the time.

    00:00:02:10 So you can hear my proposals, see if it matches to your needs, if it doesn't, just adapt. And I

    will show you how to do that, so that at the end, you can really use the Eclipse IDE as a very

    quick and effective tool to test and develop your applications.

    00:00:02:29 During the exercises, try to use the perspective you'll use most, and simply add additional

    views that you miss, so that everything runs smoothly and you can reach everything with just

    a few clicks.

    00:00:02:45 Because it really makes also a difference if you have, for example, a big screen or a small

    screen. So it really depends on what you like and what you need most.

    00:00:02:56 The development environment provides you also a means to deploy applications, both in the

    local environment and in the cloud, and run them in debug mode.

    00:00:03:10 So we will not be seeing that in this unit, but you can do this in Eclipse, and accessing the log

    files, for example, again, you can see this in Eclipse or you can also see that in your account

    cockpit.

    00:00:03:28 We will have a look at it later. And the console client is actually a very powerful tool.

    00:00:03:37 Delivered together with the SDK, it should be used whenever you want to use or deploy

    applications in a productive environment.

    00:00:03:50 During this course, we will be using the trial landscape, where you can actually try out things

    and develop your small applications, but once you like it and you start thinking about creating

    productive applications that you want to put on a productive account of the SAP HANA Cloud

    Platform,

    00:00:04:09 you should be really using the console client, because it gives you much more freedom, much

  • 16

    more flexibility in deploying your applications.

    00:00:04:19 And during the course, you will get some hints how also to do that.

    00:00:04:28 To make this even more effective on the console client, there is also a means to use your

    most frequent parameters in a so-called Properties file.

    00:00:04:39 And I will also show you how to do that. And the main idea is that you put things, for example,

    like your account name and like your user on the SAP HANA Cloud Platform in one file

    together with some other information like, for example, the proxy settings.

    00:00:04:56 And then whenever you call the console client, you provide it with the Properties file, and then

    add whatever you need to add to the command,

    00:00:05:10 and then you have to type less. So let's have a look into that right now. So we'll switch over to

    our SDK and open the Tools directory in the terminal.

    00:00:05:27 So I just did that, it's here. And let's look into the list of files.

    00:00:05:43 So we have here the Neo command, you know how to call it, neo.sh, and we can have now a

    list of all available commands.

    00:00:05:57 And to actually create this Properties file that you can use now, for example, to deploy

    applications, where you need to provide your user, your trial name, and so on, there is in the

    Help, that's actually the link that you just saw in the slides.

    00:00:06:14 And the Help, you will see here how you can actually set up your cloud console client. If you

    go here to this link using console client commands.

    00:00:06:30 Here is an example for such a Properties file, how it could look like. So you see here, Account

    =, and then you put your account name,

    00:00:06:40 or here Application, you put the name of the application you want to deploy, the user on your

    trial account, the host:

    00:00:06:52 if you are on the trial, you don't use hana.ondemand.com, but rather hanatrial.ondemand.com.

    And you can put much more parameters in here that the neo console client should use.

    00:00:07:09 Everything in the file, and then you can just use the command line much easier, because it will

    take some time to type in everything down, and if you do it more often, it's kind of annoying to

    type in every time your user and your account name, or the host, right.

    00:00:07:27 You can see it here. If you look into the directory of the tools in your SDK,

    00:00:07:36 you will also find here a Samples folder, and that Samples folder it's not the one with all the

    code samples, which is one level above so that Samples folder provides you for example

    with sample properties files

    00:00:07:50 that you can use to have a look how it works, and then just adapt it to your needs, modify it,

    create a new one, and use that instead.

    00:00:08:01 Now let's go to Eclipse. So for the course, you should, as I said, try to make the environment

    as comfortable for you as possible.

    00:00:08:14 So what we see here is already an adapted so-called perspective in Eclipse. You are missing

    two views that are normally here on the right:

    00:00:08:28 The Outline and Task view. I removed them, because I thought for the course, this is not

    necessary. And I always like to have here in this perspective this is a Java EE perspective

    additional views.

  • 17

    00:00:08:44 So in Eclipse, you see here different perspectives that you can switch in between. So let's just

    open another perspective, the debug perspective, and add it to our Eclipse.

    00:00:08:57 You see now here I have two tabs that I can switch now between: The Java EE tab that we

    were just now at the beginning, and in addition, the debug view that helps us to debug our

    code better.

    00:00:09:14 So you see the complete development environment looks different now.

    00:00:09:24 I will just leave this as it is, because we will find out later on if we need to modify something.

    Let's switch back to our Java EE perspective and add some additional views.

    00:00:09:35 Again, this is just how I like always to have my development environment. You might find

    other things interesting, or necessary. So I always like to have the server logs here also as a

    view.

    00:00:09:50 I also like to have the just type in here problems sorry, I'll make this bigger, so that you

    can see it; so the Problems view,

    00:00:10:03 that I add. And I also would like to add the console,

    00:00:10:15 which normally comes up automatically if you start deploying an application, but nevertheless,

    I want to have it from the very beginning.

    00:00:10:24 So the Console view, which shows you information about how deployments went, what a

    deployment is currently doing, if it was successful or not successful, error messages; you will

    find it all here in the console.

    00:00:10:39 And another one that I want to see is the Problems view, which we will be also looking at,

    because we will also face some problems during this course.

    00:00:10:56 It's part of the course to tackle issues and problems, and solve them, and for that it's actually

    pretty useful to see here also a list of problems that pop up when you are developing.

    00:00:11:10 So, I have now my Eclipse IDE the way I would like to have it during the course. At a certain

    point in time, if you want to add additional perspectives, if you find them useful, just add them.

    00:00:11:26 If you feel you don't want them any more, you can always just right-click such a perspective

    and close it, and then it goes away. So I can do it here for the debug, for example.

    00:00:11:36 I click on Close, and now it's gone. And if you want to add it again, just go here to the Open

    Perspective menu, click on Other, and then you just take the one that you like.

    00:00:11:59 So we were talking about logging information. So you can see here, now I added this Server

    Logs view, and you will also find the same link to that view also in each of the SAP HANA

    Cloud servers,

    00:00:12:18 so both the local environment and also the environment in the cloud. You also have a link

    here to the server logs, so if you double-click, it will jump there and show you the current logs

    that you can access.

    00:00:12:31 And if you double-click it, you can open it up and see what messages are inside. So

    everything in your Eclipse. But of course you can also access these log files in the cockpit.

    00:00:12:44 So I just switch to the cockpit of my trial account. So whenever you have applications

    currently we haven't one yet. Oh, no, we have one, the Welcome application...

    00:00:13:00 Oh, OK, the session expired. We just reload the page no problem. You see here the

    Welcome application has a tab called Logging, and you see here the logging files there are

  • 18

    none.

    00:00:13:17 So the reason why you actually saw here the trace is actually because this is a local

    environment, and the account is actually here on my cloud account.

    00:00:13:31 And here, I don't have any log files yet. So whenever you are deploying applications to your

    cloud account, you will find them here.

    00:00:13:54 So, what have we learned in this unit? So I showed you a little bit how you can use your

    Eclipse, and how you can set it up so that it fits to your needs during this course, and maybe

    also after that.

    00:00:14:07 You know how you can switch on the debugging perspective, and how you also can debug

    codes of your applications.

    00:00:14:22 And how you also can access the log files of your applications, both in your Eclipse

    environment as well as on your account cockpit.

    00:00:14:33 And last but not least, also how you can use the console client effectively, if you want to use it

    more often, by using the Properties file.

    00:00:14:44 So, this is the end of unit 4. And in unit 5, we will finally deploy our first application to the

    cloud. Thanks a lot.

  • 19

    WEEK 1, UNIT 5

    00:00:12 Hi and welcome to week, 1 unit 5 of the openSAP course Introduction to SAP HANA Cloud

    Platform.

    00:00:19 In this unit, we will finally be deploying our first application to the cloud.

    00:00:25 So what are our tasks? We will be using the sample code in the SDK folder and deploy it

    locally.

    00:00:34 Then we will actually learn how to start, stop, and publish an application, and actually do also

    the same to our account in the cloud.

    00:00:44 We will be looking into log files and how to read them how to debug.

    00:00:51 So our first application will be a Hello World application that you find in the samples folder. It's

    called Hello World. It's a Java servlet

    00:01:00 that will be actually just writing down Hello World in your browser.

    00:01:05 And we will do that with some clicks, a few clicks, on our Eclipse. And we will do that right

    away.

    00:01:12 So we switch here now to our Eclipse environment.

    00:01:17 Before we do anything else, let's just Eclipse that whenever it opens up an application in a

    browser it should not use the

    00:01:25 built-in browser of Eclipse, but rather an external one.

    00:01:30 So on a Windows machine, you can do that under Window Preferences. On Mac it's under

    Eclipse Preferences.

    00:01:37 And you find it under the tab General > Web Browser.

    00:01:45 And here you can click instead of Use internal web browser, click on external web browser.

    00:01:51 You click here on New and select your application. So I will just select my Google Chrome.

    00:02:01 I will provide a name for it, Chrome. Saying OK. Click on OK here and select Chrome and then

    Apply the changes.And from that moment on,

    00:02:10 whenever you run an application on the server, it opens up the application on a Chrome

    window.

    00:02:17 So we did that. Now let's import the project.

    00:02:22 So we right-click here in the Project Explorer and click on Import >Import.

    00:02:31 Now we...let me position it correctly so you can see it.

    00:02:36 Now we click on General > Existing Projects into Workspace. Click on Next.

    00:02:46 Now we select the actual root directory of our application. So I already have it open here.

    That's sdk-2.48.

    00:02:57 I go to the Samples folder and under the Samples folder, you have a folder called hello-world.

    We click on Open.

    00:03:07 Don't forget to select here to Copy projects into workspace so that a copy is created from the

  • 20

    Samples folder into your local workspace.

    00:03:17 Otherwise, if you do changes and mess stuff up, you always have a clean copy in the Samples

    folder. So don't forget to put that tick in here.

    00:03:28 We click here on Finish and the application is there.

    00:03:33 And what we do now to make it run, just right-click on the project.

    00:03:40 Right-click on hello-world. Click on Run As > Run on Server.

    00:03:47 Now it will provide you with a list of servers. We already created one server in unit 3, so that's

    the Jave EE 6 Web Profile Server.

    00:03:58 We select that. We click on Next.

    00:04:01 We already have the application here on the right side which means that this application will be

    deployed now to our local environment. We click on Finish.

    00:04:11 And now we see here in the Console view that stuff is happening, and we see here the

    browser opens up and we have our Hello World!

    00:04:21 So you find it under the address localhost:8080 (that's the port we are using) and then /hello-

    world/.

    00:04:32 Let's look now into the source code itself.

    00:04:35 So I open up the directory here. hello-world >Java Resources >src and then, under the

    package, the servlet.

    00:04:46 And if we increase the size here, we see here that it prints out under the HttpServletResponse

    a simple Hello World!

    00:04:58 So I could also change this and say Hello openSAP team!

    00:05:05 and save the change. Click here on the Save button or just click on Ctrl+S or Command+S,

    depending on what operating system you are using.

    00:05:14 Now it's saved and you see here underneath that the text changed from Synchronized to

    Republish, meaning that

    00:05:24 the server detected that your local copy is different from the local deployed application.

    00:05:31 So what you need to do is right-click again here on the server and click on Publish,

    00:05:38 meaning that the changes you have done will be published again.

    00:05:43 Once this is done, the application is again now on Started, Synchronized state.

    00:05:51 So it's started and synchronized. And if we go back now to our browser and reload the page,

    there it is. It shows now Hello openSAP team!

    00:06:01 So we did now a deployment here.

    00:06:05 If you would like now also to debug this, this is pretty easy. So you just double-click on a line

    here.

    00:06:15 So you double-click here on this gray area, on the line before it prints out the text.

    00:06:22 And then you tell the server down here...I just right-click on it again to Restart in Debug mode.

  • 21

    00:06:32 So I do that. It restarts in debug mode.

    00:06:36 So you see her again on the console that stuff is happening.

    00:06:41 Ideally, you would switch now to the Debug perspective so that you have a better overview for

    debugging.

    00:06:50 If we go back now to our browser and reload again...this can take a little bit until the debugger

    is really up and running.

    00:07:01 We see here on the console that things are still ramping up.

    00:07:09 So this might take a little bit. Let's try again. Not yet.

    00:07:17 In just a few seconds. So that happens sometimes that it might take a little bit more time.

    00:07:26 Okay. Initialized enterprise container. Let's see.

    00:07:30 Okay, so it's initialized and we see that the debugger detects that the application has been

    called. And now it stopped exactly here.

    00:07:41 And now if you want, if you hover over a variable, like here on an object like the

    serialVersionUID,

    00:07:48 you see here the content of it and of course you could also take, for example, the

    00:07:54 response and then actually look into the response object and see what is inside.

    00:08:00 So that's what you can then use to debug your application.

    00:08:05 If you are done with whatever you wanted to check, you just click here on Step Over or you

    press the F6 key

    00:08:16 and it goes to the next step. You see it goes one line below.

    00:08:21 And if you are ready, you just click here on Resume so that the application resumes its

    functionality.

    00:08:31 You see here we are again here at the Hello openSAP team! and we are outside of the debug

    now.

    00:08:39 If we want, we can now call this again, you see, and we are now debugging again. And you

    can also detect here in the browser, at the very bottom,

    00:08:47 that the browser is waiting for the local host. You can see it here at the very bottom and I'm not

    sure if I can show you, make it really look good.

    00:08:56 Okay, I just give up. So it says here Waiting for localhost. This is a sign for you that the

    browser is still waiting for the application.

    00:09:04 We just click on Resume and that's it.

    00:09:07 So I stop the application here in the debug mode.

    00:09:11 If I switch over again to the Java EE perspective, you can also see in the list of servers that the

    server is actually stopped.

    00:09:20 So I can now start again in normal mode and then I can use the application again in non-debug

    mode, in the regular mode that it should be used.

    00:09:31 So that's it for the local deployment. Now let's do the deployment to the cloud.

  • 22

    00:09:39 It actually works in a similar way. Okay, I just told the application to start again, so it will do it.

    00:09:49 But no problem. Just right-click here and say New > Server.

    00:09:54 But one thing we forgot, which is actually pretty useful so you don't have to type in your

    credentials.

    00:09:59 Let's look first into our Eclipse preferences. Again, on Windows machines, Windows

    Preferences. On Mac machines, Eclipse Preferences.

    00:10:09 I go there and you should change under Server, you will find an entry called SAP HANA Cloud

    Platform down here.

    00:10:22 And here you should actually provide all the details so that you don't have to type them in

    every time you are deploying to the cloud.

    00:10:31 On the Landscape host, type hanatrial.ondemand.com.

    00:10:37 So that's actually the landscape for your free developer account.

    00:10:42 Don't type hanatrail, which happens quite often. That's not the right thing.

    Hanatrial.ondemand.com.

    00:10:53 You select your SDK location. That's the one that we also used here for the samples.

    00:11:01 Now provide your account name. If you have forgotten your account name, no problem. You

    just go to your cockpit

    00:11:10 and you will find your account name here at the top left.

    00:11:14 You get that from the HANA Cloud Platform landing page, hanatrial.ondemand.com via the link

    cockpit.

    00:11:21 So we just copy this over here and we paste it in here.

    00:11:28 The user name, that's actually the same thing without the trial at the end.

    00:11:34 So these are the entries you need to enter.

    00:11:42 Hanatrial.ondemand.com, the SDK location, account name, and user name.

    00:11:47 You apply these changes and now if you want to actually deploy your application to the cloud,

    it's much easier.

    00:11:54 You just go down here again under the Servers view, click into the empty space here, say

    New> Server.

    00:12:04 And now instead of selecting the Java EE 6 Web Profile Server that we did before, you select

    the server type SAP HANA Cloud Platform.

    00:12:13 And you already see the landscape host has already been preset to the right host that we

    defined just a few seconds ago. We click on Next.

    00:12:23 Yes, I allow Eclipse to connect to the Internet.

    00:12:30 Now I will give the application a name. I will call it opensapw1u5.

    00:12:38 The runtime I select, instead of Automatic, Java EE 6 Web Profile because that's the SDK I've

    used.

    00:12:45 The account name is already provided here together with the user name and the password for

  • 23

    your account.

    00:12:52 It happens quite often that people forget the passwords or don't know the passwords because

    they are SAP employees and logged in by a single sign-on.

    00:13:00 If that's the case, no problem again. Just go to the openSAP course guide for the repetition of

    this course.

    00:13:10 Here is the link: scn.sap.com/docs/DOC-53459.

    00:13:18 You click here on the guide for week 1.

    00:13:23 And if you go to the table of contents for unit 5, Deploying the First Application,

    00:13:28 you already see under Common Issues what to do if you have connection issues with

    authentication errors and so on.

    00:13:39 Pretty well described here how to overcome this in case you face this issue.

    00:13:45 In case you don't, type in your password here, click on Next.

    00:13:50 Let me type in the password just to be sure it's not wrongly written here.

    00:13:58 Okay, click on Next. Oops. Now the runtime needs to be set again properly. Java EE 6 Web

    Profile, account name, user name. Click on Next.

    00:14:09 We add now the hello-world application over here. Click on Finish.

    00:14:18 And now the application is published to the server. So let's go down here and see what

    happened.

    00:14:28 So you should see now hello-world here underneath. If you don't see anything, you might have

    done something wrong, so repeat this again.

    00:14:37 And we see now the status is here on Stopped. What do we need to do?

    00:14:41 We just click on Publish and now the application is really published to your account in the

    cloud.

    00:14:55 You see here now it's Synchronized. It's still on Stopped.

    00:14:59 And now we simply tell the application...we right-click on it, on the server, click on Start, and

    now the application will be starting.

    00:15:09 Okay. That's a very good error message. So in my account, apparently, there is already an

    application up and running.

    00:15:18 There is a restriction with the free developer account on the trial landscape.

    00:15:23 You can only have one application in the status Started, meaning that I already have an

    application up and running, so let's switch to my account,

    00:15:33 to my account cockpit, to the list of my Java applications. Of course, this has timed out.

    00:15:42 Okay, so here it is. I already have an application up and running. It's called benefits. I'll just

    stop it.

    00:15:48 Say OK.

    00:15:50 So it takes a little bit until the application is stopped, but once it's stopped,

  • 24

    00:15:56 I can go back again. You see here it's now yellow. It's stopping.

    00:16:03 I go to my account here, again to my server, and click on Start again.

    00:16:10 So now it's starting. let's see also in our cockpit.

    00:16:17 If I just click on here, we see now that our application opensapw1u5 is started. We click on that

    entry.

    00:16:26 We see, underneath, the log information which currently is not visible yet because the

    application is just about to start.

    00:16:39 But when it's started, you will find here some log files.

    00:16:43 Underneath, you find the application URL, which is also not yet complete because

    00:16:49 the application container is still being started together with the Java Virtual Machine.

    00:16:57 But once this is done, we will see here the complete URL, meaning that the hello-world will

    also show up here.

    00:17:06 You see down here the processes. So the process for your application here.

    00:17:14 In our free developer accounts, there is only one process that can be started. So I just click on

    this and you can see also

    00:17:22 some metrics and the health status of your Java Virtual Machine which actually contains the

    application you are running.

    00:17:34 If we go back again to our application...I click on this...we see that the URL has changed.

    There it is. It also says hello-world.

    00:17:45 And now here also the state has switched from Starting to Started, meaning that if I click on

    here on this link,

    00:17:54 it also says now Hello openSAP team! So exactly the same application we had on our local

    development, now also up and running in the cloud.

    00:18:04 Okay, so the same way you debugged in your local development you can also debug in the

    cloud.

    00:18:12 If you want to learn more about how to do it, just go to the HANA Cloud Platform official

    documentation.

    00:18:22 It's help.hana.ondemand.com. You go to the HANA Cloud Platform documentation, click on

    Java Development >Developer's Guide > Debugging Applications

    00:18:32 and then Debugging Applications on the Cloud. And it will actually describe the procedure how

    you actually do it.

    00:18:41 So last thing to see is the server logs. I already showed here in your cockpit how to do that.

    00:18:47 You simply can click on, for example, the default trace here,

    00:18:53 click on this Show icon and then it will provide you with information. Currently there is not much

    that has been logged.

    00:19:03 You can actually do the same also here from Eclipse. So just double-click on the entry for your

    server, double-click on the...

    00:19:15 okay, there is an issue here with my account apparently. So not sure what that is.

  • 25

    00:19:23 But apparently...maybe it's because there is nothing inside. Let me try another time.

    00:19:30 No, doesn't work. But nevertheless, if something is going on then on your application, you will

    see that the server logs will show up here.

    00:19:39 And you can also do the same for the local server here.

    00:19:44 Apparently some stuff already happened because we also switched on the debugger. So you

    can also then look into the event log, for example,

    00:19:53 and see what happened, as I said, in the same way it works also for the deployment in the

    cloud.

    00:20:04 Okay, going back to our presentation.

    00:20:09 What have you learned in this unit?

    00:20:11 You have learned how to use the sample applications from the SDK.

    00:20:15 We also learned how to deploy an application on our local environment and to our free

    developer account in the cloud

    00:20:24 and also how to use the account cockpit.

    00:20:27 That's all for this unit. Thanks a lot. Wishing you good luck for your weekly assignment and see

    you next week. Bye-bye.

  • www.sap.com

    2014 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 SEs 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.