Welcome to this series of hands-on tutorials from the SAP HANA Academy.
I'm Philip Mugglestone.
In this series, we're covering the SAP Business Technology Platform.
In this video tutorial, we're going to get started with SAP Build Apps.
So the first thing we'll need is a subaccount.
Now I've got my global account here.
We'll need to create a subaccount for SAP Build Apps in a data center that's supported.
So we can go to SAP Discovery Center and the Services
and search on SAP Build Apps.
We can see a tile for it here.
And then in the Pricing section, we can then see which regions are supported.
So I'm going to use US East VA.
So let's go back and create a new subaccount.
We'll give it a name and a unique subdomain.
And then for the region, I'm going to choose US East VA.
And then hit Create.
Once the onboarding is complete, we can click on the tile.
And what we need to do is check our entitlements.
You need to make sure that you've got an entitlement for SAP Cloud Identity Services.
Now normally, the default one should be there.
If it's not, then you would need to go into Configure Entitlements
and then find the one for SAP Cloud Identity Services, Default Plan, and add it.
And you may also need to go into Services and Service Marketplace
to actually create an instance effectively to subscribe to SAP Cloud Identity Services and the Default Plan.
However, it's already there for me with this new subaccount, so we should be good to go.
So what we can do to get started with SAP Build Apps is actually go and use a booster.
Now we do this from the global account level.
We can see we've got boosters.
And I'm going to search on Build.
And we've got one called Get Started with SAP Build Apps.
So let's select it and we'll hit Start.
Now the booster will check some prerequisites,
make sure we've got the right entitlements and authorizations.
We can hit Next.
And we'll see that we can then choose what plan we're going to use for SAP Build Apps and also the SAP Launchpad.
I'm going to go with the free plan in both of those.
We can see which subaccount.
Now if you've got more than one subaccount in your global account, then you can select it here.
It's going to create a Cloud Foundry organization and space.
I can just maybe tweak the org and space names that I want to have.
Then I can hit Next.
So this is where we define our users, effectively our administrators and developers.
Now your email of the person you're using at the moment will be created as an administrator and developer,
but you can add additional emails here and they'll be configured automatically for you.
And it's going to do that using a custom identity provider.
Effectively this is the SAP Cloud Identity Services that we just saw a moment ago.
In some cases it will be set up by default with your subaccount.
If you didn't have it, then it's something you will have created explicitly.
So let's go ahead and hit Next.
Finally, we can do a quick review.
Everything looks good.
So now let's hit Finish and it will actually go ahead and build out our subaccount with all of this configuration.
And we can see each step in that process as it's moving forward.
So the booster is now completed.
So we can navigate to the new subaccount.
And if we have a look, we'll see, for example, in Security and Role Collections,
we've got SAP Build Apps Administrator and Developer that have been created.
And if we look at Users, we'll see that we've got actually our own user in the local default identity provider.
But also we've got our user in this custom CIS provider.
And if we select that, we're going to see that we've been assigned the Administrator and Developer Role Collections.
And in fact, the whole trust configuration has been configured for us.
But this was all done by the booster.
You can see it here. It's using our CIS tenant.
And in fact, that's the one that's going to be set up for log on.
And the default identity provider has been deactivated for log on.
So we're good to go.
In fact, if we just go to Services, Instances and Subscriptions, we can see we've got SAP Build Apps.
So we can go ahead and we can launch it.
At this point, we'll need to authenticate using the credentials for that custom CIS and continue.
And now we've landed in the lobby of SAP Build Apps.
So it's from here that we can then, for example, go ahead and create a new project or an application.
So let's choose to build an application.
We'll make a web or mobile application.
We can give that a name and hit Create.
Now, as part of our application, we're going to want to access some data that's coming from an SAP back end system.
For example, SAP S/4HANA Cloud product master data.
So what we'll need to do is to make sure we've got a destination set up in our business technology platform sub account that the SAP Build Apps can actually refer to and access.
So we'll just go back to our sub account and we'll go to connectivity destinations.
And what we'll do is create a new destination.
Now we can give it a name, for example, s4-product.
Now we'll need a URL for that.
Now to make things easy, we can go to the SAP API Business Hub and use a sandbox.
So it's easy for you to follow along.
So let's go and choose SAP S/4HANA Cloud APIs, OData v2, and then we'll search on product.
And we find Product Master A2X.
And if we go to the configuration details, we can see here is the sandbox URL.
So I'm going to copy that and paste it in to my destination.
We're going to need to create three additional properties.
Now, because we're working with the sandbox, we're going to need to use something called the URL.headers.apikey.
This is how we'll authenticate into the sandbox.
So we'll need to go back to SAP API Business Hub.
We'll just make sure that we're logged in and then we can show our API key and we can copy key and close.
And then we can paste it in here.
Now we're also going to need to add a couple of other properties that are specific to SAP Build Apps.
And they're Booleans basically.
We'll need to say HTML5.DynamicDestination.
We'll set it to true and another one, which is AppGyverEnabled.
And again, we'll set that to true.
When we've done all that, we can then save.
Of course, you would have full enterprise authentication, etc.
when you're accessing a real live LOB system.
So now we've got a destination, we can go back to SAP Build Apps and we can start to actually build out our application.
Now, as we're going to be using Business Technology Platform, we'll need to set up authentication.
So we'll choose the Auth tab here.
We'll enable authentication and we'll do that for SAP BTP.
If you want to get rid of this introductory message at the bottom,
what you simply need to do is go to help and say, I know everything and then it will disappear.
So we've done the authentication. Once we've done that, we then want to access a data source.
So we can click on the data tab and we can add an integration.
And then we're going to integrate to an SAP BTP destination.
And you can see that we've got that destination we just created listed here.
So let's select it. And it's now connecting to SAP Business Technology Platform.
In fact, we can even browse the data that's available. So we can actually get some of the data out.
Looks good. So let's install integration and then we'll need to enable data entity.
And you can do that for any number of these entities. Once you've done that, maybe you want to save.
Now we can go ahead and actually use it. So we'll go to the UI canvas.
The best thing is to use the basic list, but it's not there by default.
So I'm going to search on basic list and I'm going to install it.
And then we can simply drag and drop the basic list onto our canvas.
And then we can configure it to use that data source. So configure.
We get a list of the different data sources available. So we've got A_Product.
And then we'll need to actually choose what fields we want to see where.
So for example, product is going to be our ID. We can also make that, for example, the label.
We can use the product type, maybe in the content.
And we can put the last changed by user, for example, as the title.
We'll also need to configure the authentication. So we'll go to properties and for authentication,
object with properties, and then we're going to choose the option public.
And this will work when we actually want to go through to SAP Business Technology Platform.
So hit save and then save and exit and then save for the overall project.
And now we're ready to test it. So we can go to launch and preview your app.
We get the preview portal. We can open a web preview and we see our project.
Let's open it. So we see we're getting information from the different product master data actually shown in our application.
So in this video tutorial, we've seen how we can get started using SAP Build Apps.
We've actually created a sub account. We've used the booster to configure everything.
Then we've launched and created our project. And of course, we configured the integration with SAP BTP and we configured our different data sources.
If you want to access the documentation for SAP Build Apps, then that's quite easy.
You can go to help.sap.com/docs/ and then in uppercase BUILD_APPS.
And then you'll get all the information you need, the full reference guide for SAP Build Apps.
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.