Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 5.62 KB

File metadata and controls

42 lines (28 loc) · 5.62 KB

Exercise 2 - Create an SAP Cloud Application Programming Model Project for SAP HANA Cloud

In this exercise we will use the wizard for the SAP Cloud Application Programming Model to create a project in SAP Business Application Studio that will also support SAP HANA Cloud.

Perform all the steps in 👉 tutorial: Create an SAP Cloud Application Programming Model Project for SAP HANA Cloud

Summary

At the end of this tutorial you have your dev space, the basic CAP project and have configured source control for this project.

Questions for Discussion

  1. What is the value of the dev space in the SAP Business Application Studio? To help with this discussion point consider the prerequisites section for not using the SAP Business Application Studio.

    Answer The dev space in SAP Business Application Studio is a pre-configured development environment tailored for specific scenarios, such as SAP Fiori, SAP HANA, and more. It provides all the necessary tools, extensions, and configurations required for development, reducing setup time and ensuring consistency across different development environments.

  2. Why do you think it was necessary to login to Cloud Foundry? HANA Cloud itself isn't actually running in Cloud Foundry nor does it use Cloud Foundry for technical connections. But it's important to understand HDI (HANA Deployment Infrastructure) containers and how they are controlled via Cloud Foundry service instances.

    Answer Logging into Cloud Foundry is necessary because HDI containers, which are used for managing database artifacts in HANA Cloud, can be controlled via Cloud Foundry service instances regardless of if the HANA instance is deployed into Cloud Foundry or not (it's not in our case). This integration allows for better management and deployment of database artifacts within the SAP ecosystem.

  3. What's the purpose of the mta.yaml file?

    Answer The mta.yaml file is used to define the structure and components of a multi-target application (MTA). It specifies the modules, resources, and their relationships, enabling the deployment of complex applications across different environments and services in a consistent and automated manner.

    • In the context of CAP (Cloud Application Programming), HANA, and Cloud Foundry BTP applications, the mta.yaml file helps in bundling different components like database modules, service modules, and UI modules into a single deployable unit. This ensures that all parts of the application are deployed together and can interact seamlessly.
  4. Who can explain what NPM is and how and why it is used?

    Answer NPM (Node Package Manager) is a package manager for JavaScript, primarily used to manage dependencies for Node.js projects. During CAP (Cloud Application Programming) and HANA development, NPM is used to install and manage libraries and tools required for building, testing, and deploying applications. It simplifies the process of integrating third-party modules and ensures that all dependencies are up-to-date and compatible.

    • One important package is @sap/cds-dk, which provides the core tools and libraries for developing CAP applications, including commands for project initialization, building, and deployment.
    • Another important package is @sap/hdi-deploy, which is used to deploy database artifacts to HANA databases. It helps in managing the deployment of HDI containers and ensures that all database objects are correctly created and maintained.
  5. Version Control with Git. How familiar is everyone with Git? Any ABAP developers in the room (if so we should talk). What's the reason/impact of using local Git repository as we did in this tutorial?

    Answer Using a local Git repository allows developers to track changes to their code, collaborate with others, and maintain a history of their project. It provides version control, enabling developers to revert to previous versions if needed. In this tutorial, using a local Git repository helps in managing the CAP project efficiently, ensuring that changes are documented and can be shared or deployed consistently.

    • In a real project, moving to a central Git repository such as GitHub is important for better collaboration, backup, and access control. A central repository allows multiple developers to work on the same project simultaneously, merge changes, and resolve conflicts. It also provides a backup of the codebase and ensures that the latest version of the code is always accessible to the team.

Further Study

Next

Continue to 👉 Exercise 3 - Create Database Artifacts Using Core Data Services (CDS) for SAP HANA Cloud