Watch this video to learn about the runtime structure of the full-stack application.
At design time, in the SAP Business Application Studio, an MTA project is created.
The database content of the MTA is defined using the db folder also called as SAP HANA database module.
This module contains the design-time definitions of all the objects to be created in the database, for example:
- Domain Models (Persistence).cds
- Tables and Views(.hdbtable and .hdbview)
- Calculation Views(.hdbcalculationview)
- Procedures (.hdbprocedure)
A minimal SAP HANA database module contains:
- An src folder, made to store the design time definitions of the database objects.
A package.json file for configuration for the MTA project is required for example, to set the version and the options of the deploy program. In case of CAP projects this file is shared by all three modules.
Additionally a data folder is required in case the data has to be provided by files (.csv). The system identifies the files based on its placement under datafolder under dbfolder and generates the .hdbtabledata files for deployment.
A service of type HANA (technical name com.sap.xs.hdi-container) needs to exist for the HDI container to be accessible from Cloud Foundry. When you create a new SAP HANA database module, a service is also added by default to the mta.yaml file, together with the configuration required for the service to be accessible by the module.
When the module is built, a service instance (of type HANA) is created in Cloud Foundry. This service instance is connected to the HDI container that is created in the SAP HANA database.