Add the package.json file to the root folder of the project (in BAS), as shown in the below screenshot.This package.json instructs the system to prepare the design time HANA artifacts in the form of hdbtable and hdbview for tables and views respectively.
The files need to be added at the same level as mta.yaml, as shown in the below screenshot.This defines the target path where the cds artifacts will be deployed.
Import CDS files at the same level as src folder, as shown below.Highlighted are the existing .cds files and their definition provided below.
Add/change the package.json file under the db folder, as shown below.
Add the build.js file under the src folder, as shown below.
Execute CDS build by opening a terminal in the project as shown below and execute the cds build command.
Once the CDS build is successful, the corresponding objects (hdbtables and hdbviews) will be generated under the gen folder.
After generating the file under the gen folder, deploy them into the database using the deployment option in the SAP HANA projects as shown below.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
18 | |
17 | |
13 | |
12 | |
9 | |
9 | |
9 | |
8 | |
8 | |
7 |