0% found this document useful (0 votes)
119 views

SAP CAP Start To End

Uploaded by

baji.sapsd555
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
119 views

SAP CAP Start To End

Uploaded by

baji.sapsd555
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Normal Pre-requisites (Includes creation of BTP Free Trial Account):

https://github.com/SAP-samples/cap-hana-exercises-
codejam/blob/main/prerequisites.md#normal-prerequisites-sap-business-application-studi
o

As a part of pre-requisites, you would have already created a BTP Free trial sub
account with US East as region. Please ensure that US East is the region for the
sub account before you proceed.

From the url https://cockpit.hanatrial.ondemand.com/trial/#/home/trial , click


on “Go To Your Trial Account” button, to see the below page

Start the exercises from CAP CodeJam github repo:


https://github.com/SAP-samples/cap-hana-exercises-codejam

● You will be executing from Exercises 1 to 8 as shown under


“Requirements” section in the README file. Exercise 8 is optional.
● For file names, function names you will be creating during the exercises,
it is suggested to copy and paste from the tutorial to avoid typos and
spending time to debug when it fails to work as expected.
Exercise 1.1 - Deploy SAP HANA Cloud
https://developers.sap.com/tutorials/hana-cloud-deploying.html

● At this point, you may login with your Universal Id(a.k.a SAP Community
Id) as it allows you to track your progress and gives you visual cues
displaying the current completion status. This is the same login id that
you used to register for this event.

Create Database: Provision an Instance of SAP HANA Cloud, SAP HANA


Database
https://developers.sap.com/tutorials/hana-cloud-mission-trial-3.html

1. For steps 3 to 6, perform the exercises under the “Free Tier/Trial” tab.

2. Step 6: Enable the SAP HANA Cloud, data lake (optional)


● This is an optional step which can be skipped.
● The subsequent steps screenshot shows both SAP HANA Cloud and
HANA Data Lake Instance created, but it can be ignored since Data Lake
creation is an optional step.

3. After Step 9: Knowledge Check, the “Next Steps” tutorial “Tools to Manage
and Access the SAP HANA Cloud, SAP HANA Database” is for Information
only and it is advised to return back to the GitHub page(shown in
screenshot) Step 2: Create Database and perform the additional instructions
from Nos. 1 to 8.
Exercise 1.2 - Set Up SAP Business Application Studio for
Development
https://github.com/SAP-samples/cap-hana-exercises-
codejam/blob/main/exercises/ex1/README.md#exercise-12-set-up-sap-business-
application-studio-for-development

● Choose “SAP BTP Free Trial” path

Exercise 2 - Create an SAP Cloud Application Programming Model


Project for SAP HANA Cloud
https://developers.sap.com/tutorials/hana-cloud-cap-create-project.html

● At Step 3, while creating the CAP Project, it is recommended to stick to


the project name “MyHANAApp” provided in the tutorial.
● At Step 7 - Perform your first commit, after committing the code, need
not worry about Publishing to the repo, as remote repo is not setup for
these exercises.

Exercise 6 – Create Calculation View and Expose via CAP (SAP HANA
Cloud)
https://developers.sap.com/tutorials/hana-cloud-cap-calc-view.html
● At Step 9, after running the “cds watch --profile hybrid” command(to run
App without App router), there is a mention about running the App with
App router on Port 5000, which indicates to run this following command
o cds bind --exec -- npm start --prefix app

Exercise 8 - Deploy CAP with SAP HANA Cloud project as MTA

● During Step 3: Deploy your application to SAP BTP, Cloud Foundry


runtime, if you notice an error like so in the UI,

You can deploy from the terminal with this command

o cf deploy MyHANAApp_1.0.0.mtar -f

The End

You might also like