Welcome to this series of hands on
tutorials from the SAP HANA Academy I'm Philip Mugglestone
in this series. We're covering SAP Graph
in this video tutorial we're gonna get started
from the perspective of an application developer,
we want to be able to create a client or client applications
Now there are many different ways that you can do that
and it's up to you where you want to host them but
as some of the examples I'm going to show you in
the next set of videos involve
deploying the application to the SAP Business Technology Platform
there will need to do a little bit of set up first,
it will save me putting it at the beginning of each of those video tutorials so what
we're going to need to do is to
set up the SAP BTP, Cloud Foundry environment for our sub account within
the SAP Business Technology Platform so you can see
here I'm in the SAP BTP cockpit and
I'm in my global account and the sub account that we created previously.
So what I'm going to do
is I'm going to enable the SAP BTP, Cloud Foundry environment
can see that's an option that we've
got down here so click on enable SAP BTP, Cloud Foundry runtime
and then we'll get a number of different options.
Now I would certainly recommend that you try to keep
your instance name and org name really straightforward and simple,
I'm just going to go with the same as the sub account because it is a 1 to 1 mapping
with the sub account
and these things are gonna get used in URL and stuff later
so it really makes sense to keep them as simple and straightforward
as you can.
So let's hit create
and once we've created the environment,
what we also need to create is one or more spaces.
So I'm gonna go to create space
and I'll give a space name for example DEV and I'm going to assign my
user as the manager and developer in that space and of course you can assign
the roles to other people as well.
Now what we'll also need to do is set up some entitlements
for this sub account so that
we can actually deploy applications to SAP BTP, Cloud Foundry runtime
So if you go to entitlements,
choose configure
add service plans.
One of the things we'll need to have is
some SAP BTP, Cloud Foundry runtime basically is
memory that you can use
when you deploy an application,
you'll need some of that whatever technology you're using for the application,
So
select memory will add that service plan
and what we can also do is add some tooling.
Now, one of the tools we could use is the SAP Business Application Studio
and there are different plans.
I'm going to go with the free plan in this example, you do standard edition,
if you're working in productive environment,
SAP Business Application Studio will make it easier
for us to develop applications
in particular because most of the different tools will need
are going to be preinstalled so we'll add that service plan as well.
Now just going down to the runtime, if you scroll down, you can see here,
if you want to increase the number of units the number of gig of RAM then
of course you can do that here based on what your needs are going to be
and you can come back and change this anytime.
So let's hit safe
now, once your entitlements are saved,
then we can actually go ahead and start actually making services available,
for example with SAP Business Application Studio
So we'll go to services and instances and subscriptions
and we'll create and basically we're going to subscribe
to business applications studio so we can search on studio
and we can choose whichever plan we want to use in
that case we we already gave entitlements for the free plan.
So let's create
and you'll see that SAP Business Application Studio
is in our list of subscriptions
so you need to wait until the status becomes subscribed so in
green and then we're gonna set
up who can actually use the SAP Business Application Studio
So we need to go to security and
users and then for whatever business users you want to
be able to use SAP Business Application Studio and select myself here.
We'll go to role collections
and we're going to assign a role collections
and you need to assign one of these SAP Business Application Studio ones.
I'll set myself up as a developer in this case
and I'll assign role collection
so I should now be able to go and launch
SAP Business Application Studio so we'll go back
to our instances and subscriptions
and then we can click to actually launch once it's loaded,
then we'll need to create a workspace.
So let's create a dev space
give it whatever name you want, I'll call it dev
and then you can choose what kind of application
I would recommend you use full stack cloud application.
We're going to be using that because it basically contains a
number of predefined extensions such as the capabilities will be using,
it includes the MTA tools etcetera.
So basically most of the stuff you're gonna need is going to be pre installed.
If you use the full stack cloud application,
let's go ahead and create our dev space
and watch the status,
it will be starting and at some point it will go green and say running
status is now running so we can click on the name of our dev workspace to launch it.
Now, what we'll do first is open a folder, so let's choose open folder
and we want to open up our projects folder
and click open
and we can close the welcome dialog.
Now we're going to want to
interact with the SAP BTP, Cloud Foundry runtime environment in
SAP BTP from SAP Business Application Studio So we'll need
to actually log in to do that
so we can go to view
and then find command
and you should find in the cf section,
it's got log into SAP BTP, Cloud Foundry runtime
So let's go ahead and do that, log in.
It's gonna prompt you for the endpoint that you're going to use.
Now, if you're not sure, you can always go back to the overview of the sub account
you want to connect to
and here you will find
the SAP BTP, Cloud Foundry runtime API endpoint. So it's that value there.
If you're running studio in the same
sub accounts as you want to connect to, then normally it will default to the right one,
so let's
hit, enter
and then we'll need to put in our credentials
and once we're logged in we'll then need
to select the SAP BTP, Cloud Foundry runtime organization and space.
So let's select the one we've got,
we've only got one, so it's pretty straightforward choice.
Now there's one other thing that we'll want to do before we actually get going,
we're going to be using some yeoman
jumpstart generators made available from the SAP HANA Academy
to help ease you into the process of creating new applications
to basically get you up and running very very
quickly with some examples that work and best practice.
So we need to install those
so we can go to view
and then find command
and then search on
wizard
and I open the template wizard
and you'll see that there are a number of different generators already there.
These are the standard ones that come from SAP but
what we're gonna do is install some from the SAP HANA Academy
so choose,
explore and install.
Hit. Okay,
and then we can search search on SAP HANA Academy and
you'll see there are a number of different generators,
we want to install two of them, the one that ends with cap and the one that ends with
mta
will be using both of those in upcoming video tutorials.
So let's install both
so they're both now installed.
And if we just close that window,
go back to our template wizard here
and scroll down.
Should now see that we've got these two generators here.
We should be able to now go ahead and start using them
now. One final thing to look at is just as a developer.
The way you're going to authenticate
into application is very,
very important when you're working with
graph because that authentication may get propagated
all the way through to the land of business systems at the end.
So just to go back to
graph.sap
and then go to the getting started
and scroll down here, you can see some really, really important information
are basically on the type of workflows you can do in
terms of how your client application is going to work.
For example, will there be a user present during data access? If not,
then you're gonna be basically using a kind of headless approach.
You'll need to use client credentials
to access SAP Graph
and that means you'll probably need tech
users to access the back end systems.
However,
if you're going to have authorization in your
application and someone's going to log into it,
then you can use the user authentication approach,
in which case you can then propagate that user identity.
For example, the email all the way back into the LoB line of business systems.
So you've got different choices of how you go about doing that.
It's very important you need to be thinking of that from the outset
because it actually defines how you're
going to configure the destinations you need
and it defines how you're going to set up your client applications.
So in this video tutorial we've seen how
we can get started for developing applications.
We've
set up the SAP BTP, Cloud Foundry runtime.
We've created a space, we've set up the entitlements, memory.
We've launched SAP Business Application Studio
We've logged into SAP BTP, Cloud Foundry runtime
and we've also got the two generators installed.
So in the next video tutorials we can actually
start using them and building out our client applications.
You can find more video tutorials on our Youtube channel
if you'd like to be informed as soon as
new video tutorials are published then please subscribe.
Thanks for watching