Prerequisites
For the full execution of this exercise, you need to have the following software installed on your laptop:
Software | Version | Type |
---|---|---|
Cloud Foundry CLI | latest | application |
Steps
In case you don't have it already, create your own Pay-As-You-Go account in the SAP BTP.
In your web browser, open https://www.sap.com/products/free-trials.html.
In the SAP Software Trials page, choose Log On (near the top right corner of the page). Login with your SAP user, in case you don't have one, register a new user for free.
Choose SAP Business Technology Platform.
For the Pay-As-You-Go for SAP Business Technology Platform plan, choose Add to Chart.
If the Add Company Details page appears, choose Purchase as an Individual. Enter your personal details. Choose Continue.
In the Configure Your Solution page, for the Pay-As-You-Go for SAP Business Technology Platform (8007848) solution, choose Check Out.
Enter your credit card information (it won't be charged if you use free services only), choose Submit.
Choose Continue to Checkout Review.
Choose Place Order.
You immediately receive a mail with title SAP Store: Order request received.
After some hours, you receive two mails titled SAP Store: Your order is now fully processed and Welcome to SAP Business Technology Platform.
After some more time, you receive a further Welcome to SAP Business Technology Platform mail including your SAP BTP Cockpit URL and your SAP ID User. Note the URL for future use. The URL will look something like https://cockpit.eu20.hana.ondemand.com. Open the URL and acess your global account in the SAP BTP Cockpit.
You may also receive a mail with title Your personal key to the SAP ecosystem, that contains a link to complete your information in the https://accounts.sap.com web site.
In the SAP Discovery Center, retrieve information about price and regional availability of the services you need. Based on that identify the ideal SAP BTP region for you to work.
For the execution of the following exercises, we need two services:
- SAP Business Application Studio
- Cloud Foundry Runtime
In your web browser, open https://discovery-center.cloud.sap.
Choose Service Catalog
Search for the two required services, review the service description.
Switch to the Pricing tab, choose the Pay-As-You_Go service model and check the available service plans. Both of the services have a Free plan and a Standard plan (that is not free of charge). For the need of our exercises the Free plans will be sufficient.
Check the regional availability of the free services. For example the following locations seem to fit the need:
Code snippetExpandMicrosoft Azure: Australia (Sydney), Europe (Netherlands), Japan (Tokyo), Singapore, US East (VA), US West (WA)
Based on your location, choose your preferred region. For example, I'm located in Europe so I'll choose Microsoft Azure: Europe (Netherlands).
In the SAP BTP Cockpit, create a Subaccount named training, located in your region of choice.
Open the SAP BTP Cockpit using the corresponding URL you received when you registered for the Pay-As-You-Go for SAP Business Technology Platform solution, for example https://cockpit.eu10.hana.ondemand.com.
In the Account Explorer tab, choose Create → Subaccount
In the Create Subaccount window, enter the following values, then choose Create.
Field Value Display Name training Subdomain [leave the default proposal] Region [enter your region of choice] Parent [leave the default proposal]
In the training subaccount, add entitlements and create the following services:
Service Plan SAP Business Application Studio free Cloud Foundry Runtime free In the Account Explorer tab, click on the training subaccount.
In the Subaccount: trainingpage, navigate to the Entitlements tab, choose Configure Entitlements
For every one of the previous service plans, choose Add Service Plans, then search and add the required service and plan.
Choose Save.
Navigate to the Services → Instances and Subscriptions tab.
For every one of the previous service plans, choose Create, search the required service and plan. Choose Create
In Cloud Foundry, create a space with name dev, to deploy future applications.
Navigate to the Overview tab.
Choose Create Space.
In the Space Name field, enter dev.
Choose Create.
To your user, assign roles to access the SAP Business Application Studio
Navigate to the Security → Users tab.
Select your own user. In the Role Collections section, choose Assign Role Collection.
Check the Business_Application_Studio_Developer role collection. Choose Assign Role Collection.
Open the Business Application Studio, create a development space of type SAP Cloud Business Application, with name training.
Navigate to the Services → Instances and Subscriptions tab.
Click on the SAP Business Application studioapplication.
In the studio, choose Create Dev Space.
In the Dev Space name, enter training.
In the kind of application, choose Full Stack Cloud Application
Choose Create Dev Space.
Once the space is running, click on its name to open it.
Using the Cloud Foundry CLI, login with your e-mail and password, target the dev space.
in SAP BTP Cockpit, navigate to the Overview tab. In the Cloud Foundry Environment section, read the API Endpoint (for example https://api.cf.eu20.hana.ondemand.com) and conserve the value for future use.
In SAP Business Application Studio, open a Terminal (Termial → New Terminal) and run the following commands (replace <<API Endpoint>> with the Cloud Foundry Endpoint you previously noted).
On login, enter your SAP BTP e-mail and password.
Display the list of available buildpacks.
In the Terminal, enter the following command:
The list of available buildpacks is displayed.