Prepare for SAP BTP Development
- How to create an account for SAP BTP
- How to configure Cloud Foundry in your SAP BTP subaccount
- How to check and assign entitlements
- Prepare Your Development Environment for CAP
- Before you start with this tutorial, you have two options:
- Step 1
To earn your badge for the whole mission, you will need to mark all steps in a tutorial as done, including any optional ones that you may have skipped because they are not relevant for you.
You need an SAP BTP account to deploy the services and applications.
In general, you have a choice of the following options:
Trial: (recommended) Use a trial account if you just want to try out things and don’t want to use any of the parts of this tutorial productively. The usage is free of cost and all the services that you need for this tutorial get automatically assigned to your trial account.
When running the tutorial with a trial account, please have in mind the following considerations:
- Choose host region
cf-us10when creating a new trial account. This will ensure that all services required throughout the tutorial are available to your account.
- If you use an existing trial account, make sure the host region is different from
cf-ap21. Otherwise, some services required throughout the tutorial might be missing from your account. To check the host region for your account, choose About from the dropdown under your user in the top right corner of the SAP BTP cockpit.
Live: There are multiple live landscapes available in different data centers around the globe. Live landscapes are intended for productive usage and development projects.
- Choose host region
- Step 3
If you choose to create an account on Live, you have to select a number of services that you need to subscribe to, for example, an SAP HANA database. For each service, there are so-called
entitlements, which are basically the service plans and the number of units that you want from each service. When you create an account, you need to provide these also.
What is the term used for service assignments to your account?
- Step 4
Enter your Global Account. If you are using a trial account, choose Go To Your Trial Account.
Choose Account Explorer in the left navigation pane.
Choose Create → Subaccount.
To fill the New Subaccount dialog, enter a Display Name.
Use a short name for your project and add the prefix for the landscape, for example:
<project name>-cf-us10. Don’t select the checkbox Neo!
Enter a subdomain.
Only valid HTTP domain characters are allowed.
Wait for the completion of the subaccount creation.
Choose the tile with your new subaccount.
- Step 5
This creates a Cloud Foundry (CF) Org in your subaccount. There’s always one Cloud Foundry org per subaccount. Later on, when you log on to Cloud Foundry, it asks you which Cloud Foundry org you want to log on to. For any development in you subaccount, you need to choose this org for your subaccount.
Choose Enable Cloud Foundry.
Enter a Cloud Foundry Org Name and choose OK (suggestion: use
SAP_as prefix, for example:
(Optional) In the left navigation pane under the section Cloud Foundry, choose Org Members and add users for your new account. Your own user should already be there. You can add other users if needed and assign a role to them.
On the left-hand pane under Security, choose Administrators and add the required security administrators. Again, your user should be-filled. You can add other users if needed.
- Step 6
Next to Cloud Foundry orgs there are also Spaces. Each Cloud Foundry org can have 0 to n spaces, you create just one here.
Open the subaccount page in SAP BTP cockpit.
Choose Spaces in the left pane under the section Cloud Foundry.
Choose Create Space.
Enter a space name.
If different sub projects exist in the org, use
<sub project name>-<stage name>, otherwise use
<stage name>; where stage name is the release stage, for example:
- Step 7
Open the Spaces overview in SAP BTP cockpit. You can just choose the tile for the space that was created.
Choose Members in the left navigation pane.
(Optional) Choose Add Members to add all required users, again your own user should already be part of the list.
(Optional) Add a distribution list of your
CFDeploymenttechnical user as Space Manager if you have one.
- Step 8
In this section, you assign a portion of the entitlements that you’ve bought for your global account to the individual subaccounts. In this example, you have only one subaccount. However, if you have 3 subaccounts, for example, and have bought 100 units of the HTML5 service, you could assign 50 units to the first subaccount, 20 to the second, and the remaining 30 to the third subaccount.
The following services with their service plans and entitlements are required for the different tutorial modules and will be needed throughout the tutorial.
Service Plan Amount Unit Tutorial Cloud Foundry runtime
4 GB Deploy Your Multi-Target Application (MTA) SAP Application Logging service
1 instances Deploy Your Multi-Target Application (MTA) SAP HANA Schemas & HDI Containers
1 instances Deploy Your Multi-Target Application (MTA) SAP HANA Cloud
1 instances Set Up the SAP HANA Cloud Service Launchpad Service
1 active users Add the SAP Launchpad Service SAP Event Mesh
1 instances Set Up Your CAP Application for Eventing
The services mentioned below are Utility Services, no entitlement needed
Service Plan Amount Unit Tutorial SAP HTML5 Application Repository service
100 MB Add the SAP Launchpad Service SAP Authorization and Trust Management service
1 instances Deploy Your Multi-Target Application (MTA)
In your subaccount, choose Entitlements in the left-hand pane.
Choose Configure Entitlements.
Choose Add Service Plans.
Go through the Entitlements according to the table above and check/add the required plans for each of them.
Choose the + or - symbol to change the quota for the services according to the table.
In case you face a problem when creating a service instance or subscribing to an application later in the tutorial, please make sure you’ve added all entitlements listed in the table above.
- Step 9