Hi, I am Denys van Kempen from SAP’s Partner Innovation Lab and the SAP HANA Academy.
In this video tutorial, we are going to cover how to configure and set up the developer
tools for the SAP Business Technnology Platform, in short BTP, for the ABAP environment.
This video was recorded in July 2021. For the latest video tutorials on the topic,
please check the playlist. See also the description below of the video
on the SAP HANA Academy YouTube channel for additional information and resources.
ok I am connected here to the BTP Trial environment.
When you sign up, you will receive a pre-configured environment with many services already set
up. Here we are going to start from scratch, to
show what needs to be configured and how this is done.
As there are already many tutorials out there, which explain in detail each step,
we will be doing this in a slightly faster pace,
ok new subaccount,
you can create as many as you want give it a name
select the provider: Azure or AWS pick your region: US or Europe and a subdomain
name this will be part of the url, and needs to
be unique in the data center, create
this will take ten, twenty seconds enter the subaccount
and note the entitlements enable cloud foundry
you can change the display name, for in the SAP BTP cockpit, and org name, a Cloud Foundy
concept, if you want, and create
takes a bit longer, 30 seconds maybe
ok. so now we have a BTP trial global account,
SAP created for us, a commercial entity managed by SAP, and which we need to extend from time
to time, we have BTP subaccount, called trial here,
which we created ourselves, hosted by AWS in the Europe region, with dvk as subdomain,
I am using my initials here, you can use any string you want,
for this subaccount we have enabled a Cloud Foundry environment, also called dvk,
and now we need to create a space, another Cloud Foundry concept,
which I am going to call dev
Let’s go up one level, to our global account In the menu select Boosters,
and select Prepare an account for ABAP trial Click Start or select the tile to open an
information page, which explains that we are getting a shared
service environment with links to additional resouces, the SAP
community, learning journeys, and tutorials. Click start to start the booster
Takes about a minute to create an ABAP service instance and a service
key, Going back to our subaccount, we can see that
an ABAP environment has been added with a shared service plan.
So basically, we now have two BTP environments: a Cloud Foundry one for our own use, to host
services and applications, and a shared ABAP one, for ABAP objects;
Technically, the ABAP environement is also hosted in a Cloud Foundry environment but
this is an implementation detail, nothing we have to worry about.
ok, the environment is set up; let’s continue with the tools.
Let’s return to the BTP Trial home page Normally, you would access or launch the SAP
Business Application Studio from here, This will have been set up for you by SAP
when the trial environment is created However, as we created our own subaccount,
this still needs to be done, and hence a “check your trial account” page is displayed.
Let’s return to the trial account Service assignments
search studio we should see appstudio as avaiable service
listed entity assignments
select your subaccount, configure entitlements
add service plan search studio
select the trial plan add service plan
and save if we then navigate to our subaccount. we
should see it listed under entitlements but not yet under isubscriptions
select service marketplace search studio
select the tile create
and this will set this up for us, technically, hosted with Kubernetes, so this
takes a little bit of time, but not much, and we have our dedicated web-hosted development
environment Now listed under subscriptions
we can go to the application from here subaccount, services and instances
or return back home and access appstudio from there, same thing
you can of course bookmark the URL Next, we need to create a dev space
leaving the default template SAP Fiori selected Give it any name you want
takes a minute or so, little less enter the space
and open a folder under projects
very well, next,
navigate to the SAP Development Tools website, tools.hana.ondemand.com
ABAP and here we can find the procedure to install
the ABAP Development Tools, ADT, very easy,
install the latest version of Eclipse for your operating system,
click next, next, next, install Then, under the Help menu on macOS or Preferences
on Windows, select install new software add tools.hana.ondemand.com as source
select ABAP Development Tools, and install Eclipse will restart and we are done
Then we need to create a new ABAP Cloud Development project (menu File, New)
or directly from the project explorer view SAP BTP Cloud Foundry environment
Next Region, in our case, we created our BTP subaccount
in Europe Provide Email and password of your BTP trial
global account Select the Cloud Foundry org
space and service instance,
as a reminder, here we have the Cloud Foundry org name, space
and service instance name Next,
Let’s pause the recording briefly for a second
Fetch or create Service Instance’s Service key with name SAP_ADT
A service key to connect to the ABAP environment is created
(you may recall that there was one created also by the booster)
Now we need to log on to the BTP ABAP environment, This will reuse your credentials, after which
you can close the web page Next,
Here we can provide a project name, and favorite package,
which will then appear in our project explorer when we briefly switch to the BTP cockpit,
ABAP environment, we can see both service keys listed
SAP_ADT and default key OK; we are done now but to show this in action,
I will quickly go through the steps of the tutorial: develop a Fiori app using ABAP Restful
Application Programming, which you can access on the SAP Developers web site, the link is
in the description below First tutorials explains the programming model
Next, we create a table and add a couple of rows
which we can expose as CDS-based data model through some ABAP objects
This is all done in the ABAP Development Tool, the Eclipse full client
from where we will pick it up and continue using the Business Application Studio
Ok. First, create an ABAP package,
ZTRAVEL_APP with suffix, using my intitials again,
remember this is a shared environment, and this is a popular tutorial
so make sure to avoid any name clashes add to favorites
and create a transport request next, we are going to create another ABAP
repository object database table this time
give it a name and description add to the transport request
and Finish Paste in the sample code from the tutorial
update the triple xxx with your suffix save
and activate Create a new ABAP class
Name Description
Next Transport Request, Finish
Paste in the code sample Update the suffix
Save Activate (F3)
Run as ABAP app (F9) Console message: 3 travel entries inserted
successfully Run as ABAP app again (F8)
and you should see the entries very well, let’s close some tabs
new ABAP repository objects
data definition Name
Description: data model for travel Transport Request, Finish
Paste in the code sample Update the suffix
Save Activate
new ABAP repository objects
data definition Name
Description: projection view for travel Transport Request, Finish
Paste in the code sample Update the suffix
Save Activate
Expand the CDS, core data services, folder where we can see the data model and projection
view we just created select the projection view
and from the context menu, right-click, select new service definition
Name Description
Transport Request, Finish Paste in the code sample
Update the suffix Save
Activate Expand Business Services, Service Defintion
and from the context menu, right-click, select new service binding
Name Description
The binding type is OData V2 Transport Request, Finish
Activate and publish
this takes a while select TravelProcessor
Preview which opens a Fiori Elements app
Go and here we have our 3 rows back again,
very well, now back to SAP Business Application Studio
Find command CF Login to Cloud Foundry
Enter the API endpoint e-mail address
password org
and space Find command
Fiori Open Application Generator List Report Object Page
Select data source: connect to a system the system is our ABAP trial environment
you can select ABAP environment on SAP BTP and have the service name detected
service: select the name of the service definition Z UI,
the last ABAP repository object we created Main entity
TravelProcessor Enter the project attributes
the module name app title
add deployment configuration yes add Fiori Launchpad configuration yes
advanced options no deployment configuration
target and destination are already populated we only need to provide package name and transport
request which we can get from
switching back to Eclipse from the package properties
finally add the launchpad config semantic object and action, plus a name for
the tile and finish
takes a little while here we hove our app
let’s run the module locally make sure the pop-up blocker is disabled
and then here we our Fiori app, List Report Object Page, with the data coming from the
ABAP environment awesome
everything works ok
the objective was to show you how you can create an ABAP environment on the SAP Business
Technology Platform how to install ABAP Development Tools, ADT,
and connect to the environment and how to subscibe to the Business Application
Studio and make the same connection, so that you can develop ABAP repository objects
in Eclipse, for the back-nd and a Fiori Elements app in App Studio as
front-end, the UI and make this all work seamlessly together
If you enjoyed the show, give us a like. Don’t forget to subscribe.
Denys van Kempen, SAP HANA Academy / Partner Innovation Lab.
Thanks for watching.