Building a CAP App with Fiori Integration – Part 1: Environment & HANA Cloud Setup

Estimated read time 9 min read

In this blog series we are going to see how to create a Basic CAPM Application from scratch through BTP Trial Account and Integrate it with Fiori. 

–> The First Part of this series will explain all the Pre-Requisites to be done before creating CAP Application. 

–> Second Part of this series will explain how to create CAP Application and Integrate it with Fiori.

Cloud Based Applications may look complex from outside but when blocks are perfectly aligned even a beginner can build a powerful CAP application using BAS. Let’s dive in and start arranging those blocks from the ground up.

Tools Required: BAS, HANA Cloud Central

At end of this series we can able to successfully run a CAP Application in Fiori Generated App and able to create entries in HANA Cloud Central based DB from the Fiori App. 

1.  Create a BTP Trial Account/Use existing Global Account for the Development Process. Access to your SubAccount as below from Account Explorer -> SubAccounts. 

2. Now get into Sub Account and Navigate to Instances and Subscriptions as below and then click Create Button. 

3. Under Services tab -> Select SAP HANA Cloud & in Plan select Tools/hana-cloud which makes service compatible for shareable instance. 

Note: If SAP HANA Cloud is not showing under services tab then add it from Entitlements->Add service Plans.

4. After Creation, the SAP HANA Cloud Central tool will be added to subscription as below along with Business Application Studio. Note: Incase if BAS is not added then add that as well from Create Button. 

5. Once the HANA Cloud and BAS set up is done, then navigate to Security->Users and assign these Roles.

Roles Required :

Note: These roles should be assigned to the user and with that HANA Cloud can be accessed.

Before moving into next point lets have a quick overview on what is SAP HANA Cloud Central and BAS. 

SAP HANA Cloud Central – It manages SAP HANA Cloud instances within the SAP Business Technology Platform (BTP). It acts as a centralized dashboard to create, monitor, and maintain both SAP HANA database instances and Data Lake instances.

SAP BAS – SAP Business Application Studio is a cloud-based Integrated Development Environment (IDE) designed specifically to build and extend SAP applications.

Basically SAP HANA Cloud Central helps to manage data through cloud instances and BAS helps in building data. We can decide how the data should look/maintained from BAS.  

Now let’s continue with the Pre-Requisites;

6. As a next step, navigate to Cloud Foundry->Spaces and ensure if space dev is available. If that is not there then create dev space using Create space Button. This Space is really important as it acts as a deployment target from CAP where code is deployed and executed.

7. Navigate to HANA Cloud and click on Create Instance. Again, Creation of HANA Cloud Instance is as important as creation of dev space in cloud foundruy. It acts as the database-as-a-service (DBaaS) where application’s data is permanently stored. HANA Cloud instance also contains HDI Containers which act as a bridge between design-time code from BAS into run-time database objects like tables and views.

8. On Type section select Instance configuration as Configure Manually ( Select other options if you want to configure instance in different way ) and Instance type as SAP HANA Database as we are creating Instance for HANA DB. If Data Lake is expected then select Data lake instead of HANA DB. 

9. In section SAP HANA Database General, Cloud foundry tab to be navigated for filling instance related details as the deployment happens for Cloud Foundry. But it is disabled by default. Henceforth user should select Sign in to cloud Foundry Environment and after sign in the Cloud Foundry tab will be enabled. In that tab fill the details as below. 

10. Post filling the important section as above, navigate to other sections where Connection Details and Advanced settings needs to be mentioned. For a Minimalistic App execution these tabs are not required and henceforth I’ve skipped it. It needs to be filled based on Business expectations. 

11. Enable Data lake if required and click on create instance as below. 

12. Once above process is done, Test Instance will be created for SAP HANA Cloud central as below and it acts as DB for the Developments made from CAP Project. 

13. Now SAP HANA Cloud is all set, Let’s Navigate to BAS and create Dev Space. Get back to your subaccount. Navigate Instances and Subscriptions -> Business Application Studio. Click on create Dev space.

14. Define Dev space name and select Full Stack cloud Application option as below. 

15. With that Dev space will be created in BAS. 

From here, let’s continue on Part: 2 where full stack CAP Application will be built and Deployed/Integrated with SAP HANA Cloud. 

What we did till now.

-> Created Trial Account

-> Enabled necessary subscriptions and Roles 

-> Set up SAP HANA Cloud Central

-> Created Instance and ensured Dev space is available

-> Set up BAS Dev space. 

PART: 2 Link – Stay Tuned…

 

​ In this blog series we are going to see how to create a Basic CAPM Application from scratch through BTP Trial Account and Integrate it with Fiori. –> The First Part of this series will explain all the Pre-Requisites to be done before creating CAP Application. –> Second Part of this series will explain how to create CAP Application and Integrate it with Fiori.Cloud Based Applications may look complex from outside but when blocks are perfectly aligned even a beginner can build a powerful CAP application using BAS. Let’s dive in and start arranging those blocks from the ground up.Tools Required: BAS, HANA Cloud CentralAt end of this series we can able to successfully run a CAP Application in Fiori Generated App and able to create entries in HANA Cloud Central based DB from the Fiori App. 1.  Create a BTP Trial Account/Use existing Global Account for the Development Process. Access to your SubAccount as below from Account Explorer -> SubAccounts. 2. Now get into Sub Account and Navigate to Instances and Subscriptions as below and then click Create Button. 3. Under Services tab -> Select SAP HANA Cloud & in Plan select Tools/hana-cloud which makes service compatible for shareable instance. Note: If SAP HANA Cloud is not showing under services tab then add it from Entitlements->Add service Plans.4. After Creation, the SAP HANA Cloud Central tool will be added to subscription as below along with Business Application Studio. Note: Incase if BAS is not added then add that as well from Create Button. 5. Once the HANA Cloud and BAS set up is done, then navigate to Security->Users and assign these Roles.Roles Required :Note: These roles should be assigned to the user and with that HANA Cloud can be accessed.Before moving into next point lets have a quick overview on what is SAP HANA Cloud Central and BAS. SAP HANA Cloud Central – It manages SAP HANA Cloud instances within the SAP Business Technology Platform (BTP). It acts as a centralized dashboard to create, monitor, and maintain both SAP HANA database instances and Data Lake instances.SAP BAS – SAP Business Application Studio is a cloud-based Integrated Development Environment (IDE) designed specifically to build and extend SAP applications.Basically SAP HANA Cloud Central helps to manage data through cloud instances and BAS helps in building data. We can decide how the data should look/maintained from BAS.  Now let’s continue with the Pre-Requisites;6. As a next step, navigate to Cloud Foundry->Spaces and ensure if space dev is available. If that is not there then create dev space using Create space Button. This Space is really important as it acts as a deployment target from CAP where code is deployed and executed.7. Navigate to HANA Cloud and click on Create Instance. Again, Creation of HANA Cloud Instance is as important as creation of dev space in cloud foundruy. It acts as the database-as-a-service (DBaaS) where application’s data is permanently stored. HANA Cloud instance also contains HDI Containers which act as a bridge between design-time code from BAS into run-time database objects like tables and views.8. On Type section select Instance configuration as Configure Manually ( Select other options if you want to configure instance in different way ) and Instance type as SAP HANA Database as we are creating Instance for HANA DB. If Data Lake is expected then select Data lake instead of HANA DB. 9. In section SAP HANA Database General, Cloud foundry tab to be navigated for filling instance related details as the deployment happens for Cloud Foundry. But it is disabled by default. Henceforth user should select Sign in to cloud Foundry Environment and after sign in the Cloud Foundry tab will be enabled. In that tab fill the details as below. 10. Post filling the important section as above, navigate to other sections where Connection Details and Advanced settings needs to be mentioned. For a Minimalistic App execution these tabs are not required and henceforth I’ve skipped it. It needs to be filled based on Business expectations. 11. Enable Data lake if required and click on create instance as below. 12. Once above process is done, Test Instance will be created for SAP HANA Cloud central as below and it acts as DB for the Developments made from CAP Project. 13. Now SAP HANA Cloud is all set, Let’s Navigate to BAS and create Dev Space. Get back to your subaccount. Navigate Instances and Subscriptions -> Business Application Studio. Click on create Dev space.14. Define Dev space name and select Full Stack cloud Application option as below. 15. With that Dev space will be created in BAS. From here, let’s continue on Part: 2 where full stack CAP Application will be built and Deployed/Integrated with SAP HANA Cloud. What we did till now.-> Created Trial Account-> Enabled necessary subscriptions and Roles -> Set up SAP HANA Cloud Central-> Created Instance and ensured Dev space is available-> Set up BAS Dev space. PART: 2 Link – Stay Tuned…   Read More Technology Blog Posts by Members articles 

#SAP

#SAPTechnologyblog

You May Also Like

More From Author